-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add monthly rotation option (#3243)
* add monthly rotation feat * update db-schema * revert migration update, create new migration * update models.go * update monthly start/end to be datetime-from-start-of-month * update monthly rotation logic * make db-schema && make generate * fix ts error * add monthly rotation smoke test * fix rotation tests * refactor smoke test * refactor shiftLengthHours to shiftLength * fix webhook expansion when slack is disabled (#3264) * dev: add local db url to dev setup guide (#3266) * add local db url to dev setup guide * clarify no pass * Bump react-redux from 8.1.1 to 8.1.2 (#3269) Bumps [react-redux](https://github.com/reduxjs/react-redux) from 8.1.1 to 8.1.2. - [Release notes](https://github.com/reduxjs/react-redux/releases) - [Changelog](https://github.com/reduxjs/react-redux/blob/master/CHANGELOG.md) - [Commits](reduxjs/react-redux@v8.1.1...v8.1.2) --- updated-dependencies: - dependency-name: react-redux dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump eslint-plugin-import from 2.27.5 to 2.28.1 (#3268) Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.27.5 to 2.28.1. - [Release notes](https://github.com/import-js/eslint-plugin-import/releases) - [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md) - [Commits](import-js/eslint-plugin-import@v2.27.5...v2.28.1) --- updated-dependencies: - dependency-name: eslint-plugin-import dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/checkout from 3 to 4 (#3267) Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * preserve field/type information when parsing ISODuration (#3272) * add monthly rotation feat * update db-schema * revert migration update, create new migration * update monthly rotation logic * make db-schema && make generate * refactor monthly rotation api * fix rotation test * move new migration to the end * cleanup CalcRotationHandoffTimes and fix missing Start * add missing validation and fix error * fix deprecation warning * polish * revert whitespace change (will fail on CI otherwise) * fix schema.sql out of date * add comments to new rotation logic * minor fixes for clarity * revert timeFormat test corrections * fix page crash if rotation is monthly --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: AllenDing <Allen.Ding@target.com> Co-authored-by: Nathaniel Caza <mastercactapus@gmail.com> Co-authored-by: Nathaniel Cook <nathanieljcook@outlook.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
96090f2
commit 9d75a88
Showing
17 changed files
with
410 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-- +migrate Up notransaction | ||
ALTER TYPE enum_rotation_type ADD VALUE IF NOT EXISTS 'monthly'; | ||
|
||
-- +migrate Down | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.