Skip to content

Conversation

@fhennig
Copy link
Contributor

@fhennig fhennig commented Dec 17, 2025

BREAKING Change: the useNewEndpoint flag on the mutations-over-time component has been removed. The new endpoint (which you got previously by setting the setting to true) 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.

  • Removes the useNewEndpoint flag. The new endpoint will now become the default.
  • querying:
    • Remove old code related to the mutations-over-time computation
    • Remove Query object (because that was only needed to pass through the worker)
    • Put queryDatesInDataset into its own file.
  • Delete code related to the web worker

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.
  • The implemented feature is covered by an appropriate test.

For reference:

@fhennig fhennig self-assigned this Dec 17, 2025
@vercel
Copy link

vercel bot commented Dec 17, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
dashboard-components Error Error Dec 18, 2025 9:40am

@github-actions
Copy link
Contributor

There is no change in the changelog. This PR will not produce a new releasable version.

@fhennig fhennig added the update-snapshots Update playwright snapshots label Dec 18, 2025
@github-actions github-actions bot removed the update-snapshots Update playwright snapshots label Dec 18, 2025
@fhennig fhennig added the update-snapshots Update playwright snapshots label Dec 18, 2025
@github-actions github-actions bot removed the update-snapshots Update playwright snapshots label Dec 18, 2025
};
}, [granularity, lapis, lapisDateField, lapisFilter, sequenceType, displayMutations, useNewEndpoint]);

const { data, error, isLoading } = useWebWorker<MutationOverTimeWorkerResponse>(
Copy link
Collaborator

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 = {
Copy link
Collaborator

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?

Copy link
Collaborator

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.

Copy link
Collaborator

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.

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.

3 participants