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

UIPFU-87 - Fix User Search Modal pagination issue. #256

Merged
merged 5 commits into from
Apr 23, 2024

Conversation

Terala-Priyanka
Copy link
Contributor

@Terala-Priyanka Terala-Priyanka commented Apr 22, 2024

UIPFU-87 - Fix User Search Modal pagination issue.

The fix includes :-
-> displaying load more button when filtered data > 100.
-> showing correct filtered data count in sub-header (below User Search Results heading).

Screencast

search.user.modal.mp4

Unit tests

Test cases were not covered initially.
We will gradually migrate unit tests in this module to Jest/RTL .

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.

@Terala-Priyanka Terala-Priyanka marked this pull request as draft April 22, 2024 10:47
Copy link

github-actions bot commented Apr 22, 2024

Jest Unit Test Statistics

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

Results for commit e8d2397. ± Comparison against base commit 23b5d88.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 22, 2024

BigTest Unit Test Statistics

17 tests  ±0   17 ✔️ ±0   1s ⏱️ -1s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ±0 

Results for commit e8d2397. ± Comparison against base commit 23b5d88.

♻️ This comment has been updated with latest results.

@manvendra-s-rathore manvendra-s-rathore changed the title UIPFU-87 - fix pagination issue UIPFU-87 - Fix User Search Modal pagination issue. Apr 22, 2024
@manvendra-s-rathore manvendra-s-rathore marked this pull request as ready for review April 22, 2024 14:47
@manvendra-s-rathore manvendra-s-rathore requested a review from a team April 22, 2024 14:49
@manvendra-s-rathore
Copy link
Contributor

Hey @folio-org/fe-tl-reviewers , can someone please review this PR on priority. Its urgent for Q bugfest.

src/UserSearchContainer.js Outdated Show resolved Hide resolved
Copy link
Contributor

@artem-blazhko artem-blazhko left a comment

Choose a reason for hiding this comment

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

Could you cover new functionality by tests?

src/UserSearchContainer.js Outdated Show resolved Hide resolved
src/UserSearchContainer.js Outdated Show resolved Hide resolved
src/UserSearchContainer.js Outdated Show resolved Hide resolved
@artem-blazhko artem-blazhko requested a review from a team April 22, 2024 15:59
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@manvendra-s-rathore
Copy link
Contributor

manvendra-s-rathore commented Apr 22, 2024

Could you cover new functionality by tests?

Hey @artem-blazhko, we have a tech debt to cover the test cases - UIPFU-78

@artem-blazhko artem-blazhko requested a review from a team April 22, 2024 17:10
@manvendra-s-rathore manvendra-s-rathore merged commit b603158 into master Apr 23, 2024
5 of 6 checks passed
manvendra-s-rathore added a commit that referenced this pull request May 3, 2024
* UIPFU-87 - fix pagination issue

* fix unassign filter pagination

* remove console log

* fix unassigned filter pagination

* resolve review comments

---------

Co-authored-by: manvendra-s-rathore <[email protected]>
manvendra-s-rathore added a commit that referenced this pull request May 3, 2024
* Release v7.1.0 (#255)

* UIPFU-87 - Fix User Search Modal pagination issue. (#256)

* UIPFU-87 - fix pagination issue

* fix unassign filter pagination

* remove console log

* fix unassigned filter pagination

* resolve review comments

---------

Co-authored-by: manvendra-s-rathore <[email protected]>

* Release v7.1.1

* Update CHANGELOG.md

---------

Co-authored-by: Priyanka Terala <[email protected]>
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.

4 participants