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

BEDS 868/mock seed #1032

Merged
merged 4 commits into from
Oct 24, 2024
Merged

BEDS 868/mock seed #1032

merged 4 commits into from
Oct 24, 2024

Conversation

LuccaBitfly
Copy link
Contributor

  • refactor: pass and use context everywhere
  • refactor: move context keys to types pkg
  • feat: store dashboard id in context in archiving middleware
  • feat: implement mock_seed query param

- avoids fetching from db twice when calling `handleDashboardId` both in archiving middleware and the actual handler

See: BEDS-868
- allows for passind a seed when the is_mocked flag is being used, which will cause deterministic mocked data.
- useful for some auth sensitive endpoints which rely on fetched data staying the same

See: BEDS-868
@LuccaBitfly LuccaBitfly merged commit 9a18133 into staging Oct 24, 2024
3 checks passed
@LuccaBitfly LuccaBitfly deleted the BEDS-868/mock-seed branch October 24, 2024 08:46
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.

1 participant