-
Notifications
You must be signed in to change notification settings - Fork 45
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
Fix/discovery load order wrong #1676
base: master
Are you sure you want to change the base?
Conversation
45dba3f
to
8011096
Compare
Adds "cache" to save response from the all studies batch so we can ignore the response from the smaller batch request in cases where the all studies batch returns before the smaller batch.
8011096
to
70794fc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am open to other ideas.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this can also be done at
data-portal/src/Discovery/index.tsx
Line 140 in 70794fc
let studiesToSet; |
rawStudies
and studies
. If studies
already exists and the length of rawStudies
is less then studies
, means the larger batch has already been processed and we should stop processing further but to return instead.This way we can potentially skip some steps downstream.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why, but studies
is always null in that fetchRawStudies callback. I think the scope of the callback function is still holding the old component's studies
You can see this behavior here: demo/logging-studies
But yeah, the studies prop is always null during the fetchRawStudies request and callback :(
Please find the ci env pod logs here |
Please find the detailed integration test report here Please find the ci env pod logs here |
Please find the detailed integration test report here Please find the ci env pod logs here |
Link to JIRA ticket if there is one:
New Features
Breaking Changes
Bug Fixes
Improvements
Dependency updates
Deployment changes