Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Add utc_offset query parameters to submission/rate and submission/heatmap endpoints #302

Merged
merged 3 commits into from
Jan 4, 2022

Conversation

TimJentzsch
Copy link
Contributor

Relevant issue: Closes #301

Description:

This allows the client to specify the UTC offset in seconds, which can be used to localize the results.
I tried to do this client-side on Buttercup, but for the rate we don't have enough info to do it and for heatmap it doesn't work for time zones like +01:30.
So moving this functionality to the server side makes sense for us (and might be beneficial for third-party clients or our other bots).

Checklist:

  • Code Quality
  • Pep-8
  • Tests (if applicable)
  • Success Criteria Met
  • Inline Documentation
  • Wiki Documentation (if applicable)

@TimJentzsch TimJentzsch requested a review from a team as a code owner January 4, 2022 20:00
@TimJentzsch TimJentzsch merged commit bc56ec8 into master Jan 4, 2022
@TimJentzsch TimJentzsch deleted the 301-utc-offset branch January 4, 2022 20:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add optional UTC offset to /submission/heatmap and /submission/rate endpoints
2 participants