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

feat: add monthly rotation option #3243

Merged
merged 40 commits into from
Sep 13, 2023
Merged

feat: add monthly rotation option #3243

merged 40 commits into from
Sep 13, 2023

Conversation

allending313
Copy link
Collaborator

@allending313 allending313 commented Aug 22, 2023

  • Identified the issue which this PR solves.
  • Read the CONTRIBUTING document.
  • Code builds clean without any errors or warnings.
  • Added appropriate tests for any new functionality.
  • All new and existing tests passed.
  • Added comments in the code, where necessary.
  • Ran make check to catch common errors. Fixed any that came up.

Description:
Currently, we have daily, weekly, and hourly rotations. It would be nice if we can have a monthly on-call rotation. For Ex: 1st of every month.
Added support for monthly rotations where rotations start at the beginning of every month and end at the end of the month.
This PR is for the backend component of this feature.

Which issue(s) this PR fixes:
#3196

Describe any introduced API changes:
Introduce new monthly rotation type

Other changes:
The smoketest for a monthly rotation has to fast-forward time more than the 30-day session expiration; The harness has been updated to handle refreshing its session.

Copy link
Member

@mastercactapus mastercactapus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since rotations have a "start time" which can include a date, we should discuss how that will work and how to document it

graphql2/schema.graphql Outdated Show resolved Hide resolved
migrate/migrations/20170530135027-schedule-rotation.sql Outdated Show resolved Hide resolved
Forfold
Forfold previously approved these changes Aug 31, 2023
Forfold
Forfold previously approved these changes Sep 5, 2023
test/smoke/harness/harness.go Outdated Show resolved Hide resolved
devtools/pgmocktime/mocker.go Outdated Show resolved Hide resolved
graphql2/schema.graphql Show resolved Hide resolved
graphql2/schema.graphql Outdated Show resolved Hide resolved
test/smoke/harness/graphql.go Outdated Show resolved Hide resolved
graphql2/graphqlapp/rotation.go Outdated Show resolved Hide resolved
test/smoke/harness/graphql.go Outdated Show resolved Hide resolved
test/smoke/harness/graphql.go Show resolved Hide resolved
@github-actions github-actions bot added size/xl and removed size/l labels Sep 11, 2023
@github-actions github-actions bot added size/l and removed size/xl labels Sep 11, 2023
mastercactapus
mastercactapus previously approved these changes Sep 12, 2023
Forfold
Forfold previously approved these changes Sep 12, 2023
Forfold
Forfold previously approved these changes Sep 13, 2023
@allending313 allending313 merged commit 9d75a88 into master Sep 13, 2023
6 checks passed
@allending313 allending313 deleted the feat/monthly-rotation branch September 13, 2023 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants