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

UIIN-3106: Add 'linked-data' interface to 'optionalOkapiInterfaces' #2702

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pkjacob
Copy link
Contributor

@pkjacob pkjacob commented Dec 18, 2024

Purpose

Inventory UI makes API call to the following API in linked-data module
GET linked-data/inventory-instance/:{id}/import-supported

Per stripes documentation, the optional interfaces that UI module uses should be declared in optionalOkapiInterfaces section of package.json file.

Purpose of this PR is to update optionalOkapiInterfaces section of the package.json with the following
"linked-data": "1.0"

Copy link

github-actions bot commented Dec 18, 2024

Jest Unit Test Statistics

       1 files  ±0     255 suites  ±0   15m 25s ⏱️ -8s
1 023 tests ±0  1 021 ✔️ ±0  2 💤 ±0  0 ±0 
1 030 runs  ±0  1 028 ✔️ ±0  2 💤 ±0  0 ±0 

Results for commit 6d8ce52. ± Comparison against base commit 0b447d0.

♻️ This comment has been updated with latest results.

Copy link
Member

@zburke zburke left a comment

Choose a reason for hiding this comment

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

LGTM, though it's worth noting that the function leveraging this endpoint in ViewInstance.js is missing <IfInterface> protection, so it's nice that you're adding this declaration in package.json to include it in the module descriptor, but practically speaking the access is still unchecked and this is effectively a required interface.

Copy link
Contributor

@BogdanDenis BogdanDenis left a comment

Choose a reason for hiding this comment

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

Please add an entry in CHANGELOG

@pkjacob
Copy link
Contributor Author

pkjacob commented Dec 19, 2024

@BogdanDenis Change log added.

@pkjacob pkjacob requested a review from BogdanDenis December 20, 2024 12:34
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.

3 participants