Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*DO NOT MERGE* UIIN-3162 *BREAKING* Use browse 1.5 interface that provides new Call Number Browse endpoints. #2698

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

BogdanDenis
Copy link
Contributor

@BogdanDenis BogdanDenis commented Dec 17, 2024

Description

BREAKING Use browse 1.5 interface that provides new Call Number Browse endpoints.

Related PRs

folio-org/stripes-inventory-components#104

Issues

UIIN-3162

Copy link

github-actions bot commented Dec 17, 2024

Jest Unit Test Statistics

       1 files  ±0     255 suites  ±0   14m 45s ⏱️ +15s
1 024 tests ±0  1 021 ✔️  - 1  2 💤 ±0  1 +1 
1 031 runs  ±0  1 028 ✔️  - 1  2 💤 ±0  1 +1 

For more details on these failures, see this check.

Results for commit e751d08. ± Comparison against base commit ebc566d.

♻️ This comment has been updated with latest results.

@BogdanDenis BogdanDenis requested review from mariia-aloshyna and a team December 18, 2024 10:26
@BogdanDenis BogdanDenis changed the title UIIN-3162 *BREAKING* Use browse 1.5 interface that provides new Call Number Browse endpoints. *DO NOT MERGE* UIIN-3162 *BREAKING* Use browse 1.5 interface that provides new Call Number Browse endpoints. Dec 19, 2024
@@ -16,7 +16,7 @@ const useSearchForShadowInstanceTenants = ({ instanceId } = {}) => {

const { isLoading, data = {} } = useQuery({
queryKey: [namespace, consortium, instanceId],
queryFn: () => ky.get('search/instances/facets',
queryFn: () => ky.get('search/call-numbers/facets',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this necessary for useSearchForShadowInstanceTenants?

Comment on lines 120 to 122
qindex: queryIndexes.ITEM_NORMALIZED_CALL_NUMBERS,
query: fullCallNumber,
segment: segments.items,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is repeating, let's move it to a variable, like classificationOption.

Comment on lines +141 to +144
const fullCallNumber = getFullCallNumber(r);

if (r?.totalRecords) {
return getTargetRecord(fullCallNumber, r, ...commonTargetRecordArgs);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should <MissedMatchItem query={r.fullCallNumber} /> also be changed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants