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

UIQM-568 Remove second call to links-suggestion endpoint. Now only need to send one call to member tenant. #606

Merged
merged 3 commits into from
Oct 12, 2023

Conversation

BogdanDenis
Copy link
Contributor

Description

Remove second call to links-suggestion endpoint.
/link-suggestions endpoint for member tenant now includes suggestions from central tenant as well, so wow only need to send one call
Cleaned up tests:

  • grouped together tests by useAuthorityLinking functions
  • removed tests for cases when linking bibs in member tenant that checks that central linking suggestions are included. This is no longer needed because that is now handle on back-end side it the hook doesn't care from which tenant the link is coming from

Screenshots

chrome_mNHsssg0Bs.mp4

Issues

UIQM-568

@github-actions
Copy link

github-actions bot commented Oct 11, 2023

Jest Unit Test Statistics

    1 files  ±0    40 suites  ±0   2m 3s ⏱️ +34s
330 tests  - 8  330 ✔️  - 8  0 💤 ±0  0 ±0 
331 runs   - 8  331 ✔️  - 8  0 💤 ±0  0 ±0 

Results for commit fae9c98. ± Comparison against base commit da099ba.

♻️ This comment has been updated with latest results.

return memberSuggestedFields.map((suggestedField, index) => {
const { fields: memberSuggestedFields } = await fetchMemberLinkSuggestions(requestArgs);

return memberSuggestedFields.map((suggestedField) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

We can return memberSuggestedFields right away, no iteration is needed.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

warning The version of Java (11.0.17) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

@BogdanDenis BogdanDenis merged commit 5f784f3 into master Oct 12, 2023
4 checks passed
@BogdanDenis BogdanDenis deleted the UIQM-568 branch October 12, 2023 12:09
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.

2 participants