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-1902: Fetch parent and child sub instances in one query #1621

Merged
merged 4 commits into from
Mar 9, 2022

Conversation

mkuklis
Copy link
Contributor

@mkuklis mkuklis commented Mar 8, 2022

https://issues.folio.org/browse/UIIN-1902

Previous implementation created a separate fetch request for every child and parent attached to the given instance object.
This was causing issues under chrome on window.

This PR changes the approach and creates a single request for all sub instances by using a query in a for of (id==X OR id==Y ...)

@github-actions
Copy link

github-actions bot commented Mar 8, 2022

Jest Unit Test Statistics

    1 files  ±0    53 suites  ±0   2m 23s ⏱️ +2s
169 tests ±0  169 ✔️ ±0  0 💤 ±0  0 ±0 
173 runs  ±0  173 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit 5eae2fc. ± Comparison against base commit 6c1b77d.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Mar 8, 2022

BigTest Unit Test Statistics

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

Results for commit 5eae2fc. ± Comparison against base commit 6c1b77d.

♻️ This comment has been updated with latest results.

@sonarcloud
Copy link

sonarcloud bot commented Mar 9, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell B 1 Code Smell

83.3% 83.3% Coverage
0.0% 0.0% Duplication

@mkuklis mkuklis requested a review from Baroquem March 9, 2022 20:02
Copy link
Contributor

@Baroquem Baroquem left a comment

Choose a reason for hiding this comment

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

Hooray!

@mkuklis mkuklis merged commit 136d28a into master Mar 9, 2022
@zburke zburke deleted the UIIN-1902 branch January 11, 2023 18:24
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