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

UI req 990 add dropdown for item service point #1108

Closed

Conversation

rgupta-nla
Copy link
Contributor

Purpose

https://issues.folio.org/browse/UIREQ-989
To populate the drop down the (ServicePoint) code will need to be used, this allows the already existing service point code to be leveraged.

User must have the view request permission. Users: View requests, this should also limit them to their assigned service point/s. (This may need to be updated to suit general open source) This does match the generic permission in snapshot.

Approach

The request list is filtered in the backend based on the item selected in Primary Service Point name dropdown in the ui.

image

Refs

Screenshots

Pre-Merge Checklist

Before merging this PR, please go through the following list and take appropriate actions.

  • I've added appropriate record to the CHANGELOG.md
  • Does this PR meet or exceed the expected quality standards?
    • Code coverage on new code is 80% or greater
    • Duplications on new code is 3% or less
    • There are no major code smells or security issues
  • Does this introduce breaking changes?
    • If any API-related changes - okapi interfaces and permissions are reviewed/changed correspondingly
    • There are no breaking changes in this PR.

If there are breaking changes, please STOP and consider the following:

  • What other modules will these changes impact?
  • Do JIRAs exist to update the impacted modules?
    • If not, please create them
    • Do they contain the appropriate level of detail? Which endpoints/schemas changed, etc.
    • Do they have all they appropriate links to blocked/related issues?
  • Are the JIRAs under active development?
    • If not, contact the project's PO and make sure they're aware of the urgency.
  • Do PRs exist for these changes?
    • If so, have they been approved?

Ideally all of the PRs involved in breaking changes would be merged in the same day to avoid breaking the folio-testing environment. Communication is paramount if that is to be achieved, especially as the number of intermodule and inter-team dependencies increase.

While it's helpful for reviewers to help identify potential problems, ensuring that it's safe to merge is ultimately the responsibility of the PR assignee.

@github-actions
Copy link

github-actions bot commented Sep 28, 2023

Jest Unit Test Statistics

    1 files  ±0    50 suites  +1   1m 7s ⏱️ -4s
562 tests +5  560 ✔️ +5  2 💤 ±0  0 ±0 
563 runs  +5  561 ✔️ +5  2 💤 ±0  0 ±0 

Results for commit 665d892. ± Comparison against base commit 7fd0b5f.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Sep 28, 2023

BigTest Unit Test Statistics

0 tests  ±0   0 ✔️ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ±0 

Results for commit 665d892. ± Comparison against base commit 7fd0b5f.

♻️ This comment has been updated with latest results.

@@ -221,6 +221,7 @@ export const requestFilterTypes = {
REQUEST_STATUS: 'requestStatus',
REQUEST_LEVELS: 'requestLevels',
PICKUP_SERVICE_POINT: 'pickupServicePoints',
EffLocation_SERVICE_POINT: 'effectiveLocationPrimaryServicePoint',

Choose a reason for hiding this comment

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

Should this be an all-caps constant name to match the other types?

displayClearButton={!isEmpty(activeValues)}
id={name}
header={FilterAccordionHeader}
label="Effective Location Primary Service Point Name"
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please move label text to translation?
Could you please clarify label (current text not consistency)?

} from '@folio/jest-config-stripes/testing-library/react';
import userEvent from '@folio/jest-config-stripes/testing-library/user-event';

import '__mock__';
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please remove?

@@ -161,6 +161,7 @@
"item.status.orderClosed": "Order closed",
"item.status.restricted": "Restricted",
"title.information": "Title information",
"requests.itemEffectiveLocationPrimaryServicePointName": "Effective Location Primary Service Point Name",
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please clarify text (current text not consistency)?

@Dmitriy-Litvinenko
Copy link
Contributor

Could you please resolve conflict and fix feedback?

@Dmitriy-Litvinenko
Copy link
Contributor

We close current pull request. Pull request long time without any updates, need rebase and etc. If needed can be reopened.

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