-
Notifications
You must be signed in to change notification settings - Fork 0
feat!(components): remove legacy mutations-over-time fetching #1059
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
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
There is no change in the changelog. This PR will not produce a new releasable version. |
5ff5131 to
0fbf3e3
Compare
4e2b378 to
eded246
Compare
| }; | ||
| }, [granularity, lapis, lapisDateField, lapisFilter, sequenceType, displayMutations, useNewEndpoint]); | ||
|
|
||
| const { data, error, isLoading } = useWebWorker<MutationOverTimeWorkerResponse>( |
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 we can also get rid of useWebWorker now.
| return dataPromise; | ||
| } | ||
|
|
||
| export type MutationOverTimeQuery = { |
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.
This type is now unused - since queryMutationsOverTimeData has quite a lot of arguments, do we want to keep using it?
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.
groupByMutation is now also unused.
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.
Don't we have the cells with the grey color anymore? If they still exist, we should add a test that shows them.
BREAKING Change: the
useNewEndpointflag on themutations-over-timecomponent has been removed. The new endpoint (which you got previously by setting the setting totrue) is now the default. The old way of computing the values is not available anymore.Summary
After we're now using the new endpoint everywhere (in all dashboards), we can proceed to make it the default, and remove all code related to the old way of computing the data. This includes removing the web worker, which simplifies the code, because it was an exception.
useNewEndpointflag. The new endpoint will now become the default.queryDatesInDatasetinto its own file.Testing
The special code for the web worker mocking has been removed. New mocks are now in place that work the same way as for other components (with fetch-mock; built-in in the Storybook). Screenshots have. been updated.
I tested this PR by using it locally in the dashboards; a quick check of the W-ASAP dashboard showed that things were still working as expected.
Screenshot
n/a
PR Checklist
All necessary documentation has been adapted.For reference: