Skip to content

Commit

Permalink
Merge branch 'refs/heads/master' into UIBULKED-538-fix-2
Browse files Browse the repository at this point in the history
  • Loading branch information
vashjs committed Nov 13, 2024
2 parents 352dd68 + cbbcd8a commit b077d07
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 12 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## In progress
* [UIBULKED-540](https://folio-org.atlassian.net/browse/UIBULKED-540) Update identifiers names for Item record.
* [UIPQB-126](https://folio-org.atlassian.net/browse/UIPQB-126) Use tenant timezone for building queries (adds use of permission `configuration.entries.collection.get`).
* [UIBULKED-582](https://folio-org.atlassian.net/browse/UIBULKED-582) Temporarily remove error handling from publish-coordinator related logic.

## [4.2.0](https://github.com/folio-org/ui-bulk-edit/tree/v4.2.0) (2024-10-31)

Expand Down
4 changes: 0 additions & 4 deletions src/hooks/api/useEscCommon.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import { useNamespace } from '@folio/stripes/core';
import { useQuery } from 'react-query';
import { usePublishCoordinator } from '../usePublishCoordinator';
import { useErrorMessages } from '../useErrorMessages';

const DEFAULT_DATA = {};

export const useEscCommon = (key, url, tenants, mapResponse, options = {}) => {
const [namespace] = useNamespace({ key });
const { initPublicationRequest } = usePublishCoordinator(namespace);
const { showErrorMessage } = useErrorMessages();

const { data = DEFAULT_DATA, isFetching } = useQuery({
queryKey: [namespace, tenants],
Expand All @@ -23,8 +21,6 @@ export const useEscCommon = (key, url, tenants, mapResponse, options = {}) => {
keepPreviousData: true,
cacheTime: Infinity,
staleTime: Infinity,
onError: showErrorMessage,
onSuccess: showErrorMessage,
...options
});

Expand Down
4 changes: 0 additions & 4 deletions src/hooks/api/useLocationEsc.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import { useNamespace } from '@folio/stripes/core';
import { useQuery } from 'react-query';
import { usePublishCoordinator } from '../usePublishCoordinator';
import { useErrorMessages } from '../useErrorMessages';

const DEFAULT_DATA = {};

export const useLocationEsc = (tenants, options = {}) => {
const [namespace] = useNamespace({ key: 'locationsEsc' });
const { initPublicationRequest } = usePublishCoordinator(namespace);
const { showErrorMessage } = useErrorMessages();

const { data = DEFAULT_DATA, isFetching } = useQuery({
queryKey: [namespace, tenants],
Expand All @@ -21,8 +19,6 @@ export const useLocationEsc = (tenants, options = {}) => {
return publicationResults;
},
keepPreviousData: true,
onError: showErrorMessage,
onSuccess: showErrorMessage,
...options
});

Expand Down
4 changes: 0 additions & 4 deletions src/hooks/api/useNoteEsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@ import { useNamespace } from '@folio/stripes/core';

import { getMappedAndSortedNotes } from '../../utils/helpers';
import { PUBLISH_COORDINATOR_STATUSES_METHODS, usePublishCoordinator } from '../usePublishCoordinator';
import { useErrorMessages } from '../useErrorMessages';

const DEFAULT_DATA = {};

export const useNotesEsc = ({ namespaceKey, tenants, type, categoryId, url, noteKey, optionType, parameterKey, options = {} }) => {
const [namespace] = useNamespace({ key: namespaceKey });
const { initPublicationRequest } = usePublishCoordinator(namespace);
const { formatMessage } = useIntl();
const { showErrorMessage } = useErrorMessages();

const { data = DEFAULT_DATA, isFetching } = useQuery({
queryKey: [namespace, tenants, url, type],
Expand All @@ -29,8 +27,6 @@ export const useNotesEsc = ({ namespaceKey, tenants, type, categoryId, url, note
keepPreviousData: true,
cacheTime: Infinity,
staleTime: Infinity,
onError: showErrorMessage,
onSuccess: showErrorMessage,
...options
});

Expand Down

0 comments on commit b077d07

Please sign in to comment.