-
Notifications
You must be signed in to change notification settings - Fork 252
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
schedule/rotation: fix endtime calculation bug #254
Merged
Merged
Conversation
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
dctalbot
reviewed
Dec 5, 2019
dctalbot
approved these changes
Dec 6, 2019
m17ch
approved these changes
Dec 6, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
mastercactapus
added a commit
that referenced
this pull request
Dec 9, 2019
* handle future start time in Rotation.EndTime method * add unit test for rotation future start time * remove old redundant comments
Forfold
added a commit
that referenced
this pull request
Dec 12, 2019
* ui/overrides: show errors on user conflict (#182) * show errors on failure for user overrides * show field errors properly * remove redundant icon props * update userErrors array to be more understandable * build(deps): bump @material-ui/core from 4.6.1 to 4.7.0 in /web/src (#217) Bumps [@material-ui/core](https://github.com/mui-org/material-ui/tree/HEAD/packages/material-ui) from 4.6.1 to 4.7.0. - [Release notes](https://github.com/mui-org/material-ui/releases) - [Changelog](https://github.com/mui-org/material-ui/blob/master/CHANGELOG.md) - [Commits](https://github.com/mui-org/material-ui/commits/v4.7.0/packages/material-ui) Signed-off-by: dependabot-preview[bot] <[email protected]> * ep repeat count never negative (#228) * graphql: update gqlgen to v0.10.1 (#200) * update gqlgen * remove old alertlog.Entry interface * rename rawentry -> entry.go * update playground and set Referrer-Policy * return validation error on CM not found * set content-type on graphql requests * set content-type in cypress graphql calls * update direct deps * build(deps-dev): bump cypress-plugin-retries in /web/src (#230) Bumps [cypress-plugin-retries](https://github.com/Bkucera/cypress-plugin-retries) from 1.4.0 to 1.5.0. - [Release notes](https://github.com/Bkucera/cypress-plugin-retries/releases) - [Commits](kuceb/cypress-plugin-retries@v1.4.0...v1.5.0) Signed-off-by: dependabot-preview[bot] <[email protected]> * dev: add Makefile commands for building CI test input (#229) * add makefile commands for building test bundle * always "bundle" dist binaries * ui: remove memoize from urlParamSelector (#226) * Fix bug in schedule shifts list to begin on current day * ui: update @material-ui/lab and convert SpeedDial to hooks (#204) * upgrade @hot-loader/react-dom @material-ui/core @material-ui/icons @types/luxon connected-react-router * upgrade history luxon mdi-material-ui husky * upgrade react react-dom react-ga react-router-dom terser-webpack-plugin ts-loader typescript webpack webpack-dev-server * oops, forgot the lockfile * WIP: convert speed dial to hooks, upgrade pkg * style tooltip labels * stop reversing every actions array * update speed dial tests * combine selectors * upgrade @material-ui/lab * bundle * Revert "stop reversing every actions array" This reverts commit 41cd2fe. * remove comments of perplexion * upgrade @material-ui/lab * use the handle naming convention set by jsx-handler-names * makeStyles with obj * inline w anonymous funs * build(deps-dev): bump @babel/cli from 7.7.0 to 7.7.4 in /web/src (#234) Bumps [@babel/cli](https://github.com/babel/babel) from 7.7.0 to 7.7.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md) - [Commits](babel/babel@v7.7.0...v7.7.4) Signed-off-by: dependabot-preview[bot] <[email protected]> * alerts: create alerts for multiple services at once (#173) * don't use FormDialog for url-provided-error dialog * getServiceLabel util & unit test * add additional test cases * new create alert flow Co-Authored-By: Nathaniel Caza <[email protected]> * ui/cypress: add retry plugin for console output in CI (#233) * add retry plugin for console output in CI * add plugin for CI * smoketest/harness: ensure datagen always returns unique values (#237) * build(deps-dev): bump @babel/plugin-syntax-dynamic-import in /web/src (#236) Bumps [@babel/plugin-syntax-dynamic-import](https://github.com/babel/babel) from 7.2.0 to 7.7.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md) - [Commits](babel/babel@v7.2.0...v7.7.4) Signed-off-by: dependabot-preview[bot] <[email protected]> * build(deps-dev): bump @babel/preset-react in /web/src (#235) Bumps [@babel/preset-react](https://github.com/babel/babel) from 7.7.0 to 7.7.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md) - [Commits](babel/babel@v7.7.0...v7.7.4) Signed-off-by: dependabot-preview[bot] <[email protected]> * build(deps-dev): bump @babel/plugin-transform-runtime in /web/src (#231) Bumps [@babel/plugin-transform-runtime](https://github.com/babel/babel) from 7.6.2 to 7.7.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md) - [Commits](babel/babel@v7.6.2...v7.7.4) Signed-off-by: dependabot-preview[bot] <[email protected]> * build(deps-dev): bump raw-loader from 3.1.0 to 4.0.0 in /web/src (#240) Bumps [raw-loader](https://github.com/webpack-contrib/raw-loader) from 3.1.0 to 4.0.0. - [Release notes](https://github.com/webpack-contrib/raw-loader/releases) - [Changelog](https://github.com/webpack-contrib/raw-loader/blob/master/CHANGELOG.md) - [Commits](webpack-contrib/raw-loader@v3.1.0...v4.0.0) Signed-off-by: dependabot-preview[bot] <[email protected]> * go: linting fixes (#242) * run gofmt with -s * fix spelling mistakes * build(deps): bump connected-react-router from 6.6.0 to 6.6.1 in /web/src (#239) Bumps [connected-react-router](https://github.com/supasate/connected-react-router) from 6.6.0 to 6.6.1. - [Release notes](https://github.com/supasate/connected-react-router/releases) - [Commits](supasate/connected-react-router@v6.6.0...v6.6.1) Signed-off-by: dependabot-preview[bot] <[email protected]> * build(deps): bump mdi-material-ui from 6.8.0 to 6.9.0 in /web/src (#245) Bumps [mdi-material-ui](https://github.com/TeamWertarbyte/mdi-material-ui) from 6.8.0 to 6.9.0. - [Release notes](https://github.com/TeamWertarbyte/mdi-material-ui/releases) - [Commits](TeamWertarbyte/mdi-material-ui@v6.8.0...v6.9.0) Signed-off-by: dependabot-preview[bot] <[email protected]> * go: update direct deps (#252) * update direct deps * run tidy * build(deps): bump @material-ui/core from 4.7.0 to 4.7.1 in /web/src (#248) Bumps [@material-ui/core](https://github.com/mui-org/material-ui/tree/HEAD/packages/material-ui) from 4.7.0 to 4.7.1. - [Release notes](https://github.com/mui-org/material-ui/releases) - [Changelog](https://github.com/mui-org/material-ui/blob/master/CHANGELOG.md) - [Commits](https://github.com/mui-org/material-ui/commits/v4.7.1/packages/material-ui) Signed-off-by: dependabot-preview[bot] <[email protected]> * dependabot: config (#253) * update direct deps * run tidy * ignoring cypress 3.7.0 * build(deps-dev): bump @babel/plugin-proposal-class-properties (#255) Bumps [@babel/plugin-proposal-class-properties](https://github.com/babel/babel) from 7.7.0 to 7.7.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md) - [Commits](babel/babel@v7.7.0...v7.7.4) Signed-off-by: dependabot-preview[bot] <[email protected]> * schedule/rotation: fix endtime calculation bug (#254) * handle future start time in Rotation.EndTime method * add unit test for rotation future start time * remove old redundant comments * ui/profile: prevent adding a notification rule if there are no contact methods (#251) * Disable Add Notification Rule speed dial option if there are no Contact Methods * build(deps-dev): bump style-loader from 1.0.0 to 1.0.1 in /web/src (#256) Bumps [style-loader](https://github.com/webpack-contrib/style-loader) from 1.0.0 to 1.0.1. - [Release notes](https://github.com/webpack-contrib/style-loader/releases) - [Changelog](https://github.com/webpack-contrib/style-loader/blob/master/CHANGELOG.md) - [Commits](webpack-contrib/style-loader@v1.0.0...v1.0.1) Signed-off-by: dependabot-preview[bot] <[email protected]> * build(deps): bump github.com/spf13/viper from 1.5.0 to 1.6.1 (#258) Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.5.0 to 1.6.1. - [Release notes](https://github.com/spf13/viper/releases) - [Commits](spf13/viper@v1.5.0...v1.6.1) Signed-off-by: dependabot-preview[bot] <[email protected]> * build(deps-dev): bump eslint from 6.6.0 to 6.7.2 in /web/src (#257) Bumps [eslint](https://github.com/eslint/eslint) from 6.6.0 to 6.7.2. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](eslint/eslint@v6.6.0...v6.7.2) Signed-off-by: dependabot-preview[bot] <[email protected]> * twilio : make voice verification calls more user-friendly (#260) * pause and delays between digits * verbose message for voice verification codes * increase timeout for voice message responses * build(deps-dev): bump eslint-plugin-react in /web/src (#262) Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.16.0 to 7.17.0. - [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases) - [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md) - [Commits](jsx-eslint/eslint-plugin-react@v7.16.0...v7.17.0) Signed-off-by: dependabot-preview[bot] <[email protected]> * build(deps): bump @material-ui/lab in /web/src (#259) Bumps [@material-ui/lab](https://github.com/mui-org/material-ui/tree/HEAD/packages/material-ui-lab) from 4.0.0-alpha.33 to 4.0.0-alpha.35. - [Release notes](https://github.com/mui-org/material-ui/releases) - [Changelog](https://github.com/mui-org/material-ui/blob/master/CHANGELOG.md) - [Commits](https://github.com/mui-org/material-ui/commits/HEAD/packages/material-ui-lab) Signed-off-by: dependabot-preview[bot] <[email protected]> * ui/profile: added '+' as input adornment to phone field for contact method (#263) * added cm '+' adornment * build(deps-dev): bump file-loader from 4.3.0 to 5.0.2 in /web/src (#238) * build(deps-dev): bump file-loader from 4.3.0 to 5.0.2 in /web/src Bumps [file-loader](https://github.com/webpack-contrib/file-loader) from 4.3.0 to 5.0.2. - [Release notes](https://github.com/webpack-contrib/file-loader/releases) - [Changelog](https://github.com/webpack-contrib/file-loader/blob/master/CHANGELOG.md) - [Commits](webpack-contrib/file-loader@v4.3.0...v5.0.2) Signed-off-by: dependabot-preview[bot] <[email protected]> * build(deps-dev): bump file-loader from 4.3.0 to 5.0.2 in /web/src Bumps [file-loader](https://github.com/webpack-contrib/file-loader) from 4.3.0 to 5.0.2. - [Release notes](https://github.com/webpack-contrib/file-loader/releases) - [Changelog](https://github.com/webpack-contrib/file-loader/blob/master/CHANGELOG.md) - [Commits](webpack-contrib/file-loader@v4.3.0...v5.0.2) Signed-off-by: dependabot-preview[bot] <[email protected]> * build(deps-dev): bump file-loader from 4.3.0 to 5.0.2 in /web/src Bumps [file-loader](https://github.com/webpack-contrib/file-loader) from 4.3.0 to 5.0.2. - [Release notes](https://github.com/webpack-contrib/file-loader/releases) - [Changelog](https://github.com/webpack-contrib/file-loader/blob/master/CHANGELOG.md) - [Commits](webpack-contrib/file-loader@v4.3.0...v5.0.2) Signed-off-by: dependabot-preview[bot] <[email protected]> * require logo -> import logo * requires -> imports * cypress: use whitelist instead of preserveOnce (#268) * build(deps-dev): bump eslint-plugin-import in /web/src (#267) Bumps [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import) from 2.18.2 to 2.19.1. - [Release notes](https://github.com/benmosher/eslint-plugin-import/releases) - [Changelog](https://github.com/benmosher/eslint-plugin-import/blob/master/CHANGELOG.md) - [Commits](import-js/eslint-plugin-import@v2.18.2...v2.19.1) Signed-off-by: dependabot-preview[bot] <[email protected]> * cypress: increase timeout threshold for creating schedule (#264) * build(deps): bump luxon from 1.21.2 to 1.21.3 in /web/src (#266) Bumps [luxon](https://github.com/moment/luxon) from 1.21.2 to 1.21.3. - [Release notes](https://github.com/moment/luxon/releases) - [Changelog](https://github.com/moment/luxon/blob/master/changelog.md) - [Commits](moment/luxon@1.21.2...1.21.3) Signed-off-by: dependabot-preview[bot] <[email protected]> * build(deps-dev): bump @babel/core from 7.7.2 to 7.7.5 in /web/src (#265) Bumps [@babel/core](https://github.com/babel/babel) from 7.7.2 to 7.7.5. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md) - [Commits](babel/babel@v7.7.2...v7.7.5) Signed-off-by: dependabot-preview[bot] <[email protected]>
Forfold
added a commit
that referenced
this pull request
Dec 12, 2019
* ui/overrides: show errors on user conflict (#182) * show errors on failure for user overrides * show field errors properly * remove redundant icon props * update userErrors array to be more understandable * build(deps): bump @material-ui/core from 4.6.1 to 4.7.0 in /web/src (#217) Bumps [@material-ui/core](https://github.com/mui-org/material-ui/tree/HEAD/packages/material-ui) from 4.6.1 to 4.7.0. - [Release notes](https://github.com/mui-org/material-ui/releases) - [Changelog](https://github.com/mui-org/material-ui/blob/master/CHANGELOG.md) - [Commits](https://github.com/mui-org/material-ui/commits/v4.7.0/packages/material-ui) Signed-off-by: dependabot-preview[bot] <[email protected]> * ep repeat count never negative (#228) * graphql: update gqlgen to v0.10.1 (#200) * update gqlgen * remove old alertlog.Entry interface * rename rawentry -> entry.go * update playground and set Referrer-Policy * return validation error on CM not found * set content-type on graphql requests * set content-type in cypress graphql calls * update direct deps * build(deps-dev): bump cypress-plugin-retries in /web/src (#230) Bumps [cypress-plugin-retries](https://github.com/Bkucera/cypress-plugin-retries) from 1.4.0 to 1.5.0. - [Release notes](https://github.com/Bkucera/cypress-plugin-retries/releases) - [Commits](kuceb/cypress-plugin-retries@v1.4.0...v1.5.0) Signed-off-by: dependabot-preview[bot] <[email protected]> * dev: add Makefile commands for building CI test input (#229) * add makefile commands for building test bundle * always "bundle" dist binaries * ui: remove memoize from urlParamSelector (#226) * Fix bug in schedule shifts list to begin on current day * ui: update @material-ui/lab and convert SpeedDial to hooks (#204) * upgrade @hot-loader/react-dom @material-ui/core @material-ui/icons @types/luxon connected-react-router * upgrade history luxon mdi-material-ui husky * upgrade react react-dom react-ga react-router-dom terser-webpack-plugin ts-loader typescript webpack webpack-dev-server * oops, forgot the lockfile * WIP: convert speed dial to hooks, upgrade pkg * style tooltip labels * stop reversing every actions array * update speed dial tests * combine selectors * upgrade @material-ui/lab * bundle * Revert "stop reversing every actions array" This reverts commit 41cd2fe. * remove comments of perplexion * upgrade @material-ui/lab * use the handle naming convention set by jsx-handler-names * makeStyles with obj * inline w anonymous funs * build(deps-dev): bump @babel/cli from 7.7.0 to 7.7.4 in /web/src (#234) Bumps [@babel/cli](https://github.com/babel/babel) from 7.7.0 to 7.7.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md) - [Commits](babel/babel@v7.7.0...v7.7.4) Signed-off-by: dependabot-preview[bot] <[email protected]> * alerts: create alerts for multiple services at once (#173) * don't use FormDialog for url-provided-error dialog * getServiceLabel util & unit test * add additional test cases * new create alert flow Co-Authored-By: Nathaniel Caza <[email protected]> * ui/cypress: add retry plugin for console output in CI (#233) * add retry plugin for console output in CI * add plugin for CI * smoketest/harness: ensure datagen always returns unique values (#237) * build(deps-dev): bump @babel/plugin-syntax-dynamic-import in /web/src (#236) Bumps [@babel/plugin-syntax-dynamic-import](https://github.com/babel/babel) from 7.2.0 to 7.7.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md) - [Commits](babel/babel@v7.2.0...v7.7.4) Signed-off-by: dependabot-preview[bot] <[email protected]> * build(deps-dev): bump @babel/preset-react in /web/src (#235) Bumps [@babel/preset-react](https://github.com/babel/babel) from 7.7.0 to 7.7.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md) - [Commits](babel/babel@v7.7.0...v7.7.4) Signed-off-by: dependabot-preview[bot] <[email protected]> * build(deps-dev): bump @babel/plugin-transform-runtime in /web/src (#231) Bumps [@babel/plugin-transform-runtime](https://github.com/babel/babel) from 7.6.2 to 7.7.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md) - [Commits](babel/babel@v7.6.2...v7.7.4) Signed-off-by: dependabot-preview[bot] <[email protected]> * build(deps-dev): bump raw-loader from 3.1.0 to 4.0.0 in /web/src (#240) Bumps [raw-loader](https://github.com/webpack-contrib/raw-loader) from 3.1.0 to 4.0.0. - [Release notes](https://github.com/webpack-contrib/raw-loader/releases) - [Changelog](https://github.com/webpack-contrib/raw-loader/blob/master/CHANGELOG.md) - [Commits](webpack-contrib/raw-loader@v3.1.0...v4.0.0) Signed-off-by: dependabot-preview[bot] <[email protected]> * go: linting fixes (#242) * run gofmt with -s * fix spelling mistakes * build(deps): bump connected-react-router from 6.6.0 to 6.6.1 in /web/src (#239) Bumps [connected-react-router](https://github.com/supasate/connected-react-router) from 6.6.0 to 6.6.1. - [Release notes](https://github.com/supasate/connected-react-router/releases) - [Commits](supasate/connected-react-router@v6.6.0...v6.6.1) Signed-off-by: dependabot-preview[bot] <[email protected]> * build(deps): bump mdi-material-ui from 6.8.0 to 6.9.0 in /web/src (#245) Bumps [mdi-material-ui](https://github.com/TeamWertarbyte/mdi-material-ui) from 6.8.0 to 6.9.0. - [Release notes](https://github.com/TeamWertarbyte/mdi-material-ui/releases) - [Commits](TeamWertarbyte/mdi-material-ui@v6.8.0...v6.9.0) Signed-off-by: dependabot-preview[bot] <[email protected]> * go: update direct deps (#252) * update direct deps * run tidy * build(deps): bump @material-ui/core from 4.7.0 to 4.7.1 in /web/src (#248) Bumps [@material-ui/core](https://github.com/mui-org/material-ui/tree/HEAD/packages/material-ui) from 4.7.0 to 4.7.1. - [Release notes](https://github.com/mui-org/material-ui/releases) - [Changelog](https://github.com/mui-org/material-ui/blob/master/CHANGELOG.md) - [Commits](https://github.com/mui-org/material-ui/commits/v4.7.1/packages/material-ui) Signed-off-by: dependabot-preview[bot] <[email protected]> * dependabot: config (#253) * update direct deps * run tidy * ignoring cypress 3.7.0 * build(deps-dev): bump @babel/plugin-proposal-class-properties (#255) Bumps [@babel/plugin-proposal-class-properties](https://github.com/babel/babel) from 7.7.0 to 7.7.4. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md) - [Commits](babel/babel@v7.7.0...v7.7.4) Signed-off-by: dependabot-preview[bot] <[email protected]> * schedule/rotation: fix endtime calculation bug (#254) * handle future start time in Rotation.EndTime method * add unit test for rotation future start time * remove old redundant comments * ui/profile: prevent adding a notification rule if there are no contact methods (#251) * Disable Add Notification Rule speed dial option if there are no Contact Methods * build(deps-dev): bump style-loader from 1.0.0 to 1.0.1 in /web/src (#256) Bumps [style-loader](https://github.com/webpack-contrib/style-loader) from 1.0.0 to 1.0.1. - [Release notes](https://github.com/webpack-contrib/style-loader/releases) - [Changelog](https://github.com/webpack-contrib/style-loader/blob/master/CHANGELOG.md) - [Commits](webpack-contrib/style-loader@v1.0.0...v1.0.1) Signed-off-by: dependabot-preview[bot] <[email protected]> * build(deps): bump github.com/spf13/viper from 1.5.0 to 1.6.1 (#258) Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.5.0 to 1.6.1. - [Release notes](https://github.com/spf13/viper/releases) - [Commits](spf13/viper@v1.5.0...v1.6.1) Signed-off-by: dependabot-preview[bot] <[email protected]> * build(deps-dev): bump eslint from 6.6.0 to 6.7.2 in /web/src (#257) Bumps [eslint](https://github.com/eslint/eslint) from 6.6.0 to 6.7.2. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](eslint/eslint@v6.6.0...v6.7.2) Signed-off-by: dependabot-preview[bot] <[email protected]> * twilio : make voice verification calls more user-friendly (#260) * pause and delays between digits * verbose message for voice verification codes * increase timeout for voice message responses * build(deps-dev): bump eslint-plugin-react in /web/src (#262) Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.16.0 to 7.17.0. - [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases) - [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md) - [Commits](jsx-eslint/eslint-plugin-react@v7.16.0...v7.17.0) Signed-off-by: dependabot-preview[bot] <[email protected]> * build(deps): bump @material-ui/lab in /web/src (#259) Bumps [@material-ui/lab](https://github.com/mui-org/material-ui/tree/HEAD/packages/material-ui-lab) from 4.0.0-alpha.33 to 4.0.0-alpha.35. - [Release notes](https://github.com/mui-org/material-ui/releases) - [Changelog](https://github.com/mui-org/material-ui/blob/master/CHANGELOG.md) - [Commits](https://github.com/mui-org/material-ui/commits/HEAD/packages/material-ui-lab) Signed-off-by: dependabot-preview[bot] <[email protected]> * ui/profile: added '+' as input adornment to phone field for contact method (#263) * added cm '+' adornment * build(deps-dev): bump file-loader from 4.3.0 to 5.0.2 in /web/src (#238) * build(deps-dev): bump file-loader from 4.3.0 to 5.0.2 in /web/src Bumps [file-loader](https://github.com/webpack-contrib/file-loader) from 4.3.0 to 5.0.2. - [Release notes](https://github.com/webpack-contrib/file-loader/releases) - [Changelog](https://github.com/webpack-contrib/file-loader/blob/master/CHANGELOG.md) - [Commits](webpack-contrib/file-loader@v4.3.0...v5.0.2) Signed-off-by: dependabot-preview[bot] <[email protected]> * build(deps-dev): bump file-loader from 4.3.0 to 5.0.2 in /web/src Bumps [file-loader](https://github.com/webpack-contrib/file-loader) from 4.3.0 to 5.0.2. - [Release notes](https://github.com/webpack-contrib/file-loader/releases) - [Changelog](https://github.com/webpack-contrib/file-loader/blob/master/CHANGELOG.md) - [Commits](webpack-contrib/file-loader@v4.3.0...v5.0.2) Signed-off-by: dependabot-preview[bot] <[email protected]> * build(deps-dev): bump file-loader from 4.3.0 to 5.0.2 in /web/src Bumps [file-loader](https://github.com/webpack-contrib/file-loader) from 4.3.0 to 5.0.2. - [Release notes](https://github.com/webpack-contrib/file-loader/releases) - [Changelog](https://github.com/webpack-contrib/file-loader/blob/master/CHANGELOG.md) - [Commits](webpack-contrib/file-loader@v4.3.0...v5.0.2) Signed-off-by: dependabot-preview[bot] <[email protected]> * require logo -> import logo * requires -> imports * cypress: use whitelist instead of preserveOnce (#268) * build(deps-dev): bump eslint-plugin-import in /web/src (#267) Bumps [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import) from 2.18.2 to 2.19.1. - [Release notes](https://github.com/benmosher/eslint-plugin-import/releases) - [Changelog](https://github.com/benmosher/eslint-plugin-import/blob/master/CHANGELOG.md) - [Commits](import-js/eslint-plugin-import@v2.18.2...v2.19.1) Signed-off-by: dependabot-preview[bot] <[email protected]> * cypress: increase timeout threshold for creating schedule (#264) * build(deps): bump luxon from 1.21.2 to 1.21.3 in /web/src (#266) Bumps [luxon](https://github.com/moment/luxon) from 1.21.2 to 1.21.3. - [Release notes](https://github.com/moment/luxon/releases) - [Changelog](https://github.com/moment/luxon/blob/master/changelog.md) - [Commits](moment/luxon@1.21.2...1.21.3) Signed-off-by: dependabot-preview[bot] <[email protected]> * build(deps-dev): bump @babel/core from 7.7.2 to 7.7.5 in /web/src (#265) Bumps [@babel/core](https://github.com/babel/babel) from 7.7.2 to 7.7.5. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md) - [Commits](babel/babel@v7.7.2...v7.7.5) Signed-off-by: dependabot-preview[bot] <[email protected]> * admin: provide URLs and copy links from the admin page (#243) * public URL is now marked as such * add hints for known sections * fix duplicate declaration
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
make check
to catch common errors. Fixed any that came up.Description:
This PR fixes a bug in
Rotation.EndTime
that would return an incorrect value causing an infinite loop in some cases.Additional Info:
When it comes to rotations we use a single timestamp and timezone to denote when the "rotating" begins.
For weekly and daily this is how a rotation at 8 pm keeps its meaning across timezone boundaries. Additionally, changing the timezone of the rotation won't "lose its place" because it's evaluated as "what time was it, at this moment, in that timezone".
When dealing with rotations we have one method that does most of the heavy lifting
EndTime
. It takes a single argument,t
, any timestamp, and will output the time at which a rotation shift would be over, for whatever shift is active att
.There is also a
StartTime
method, which just calculates theEndTime
and subtracts 1 shift from it.When calculating schedules for who is on-call at any given time, there is a method that uses this, named
UserID
, which takes a timestampt
and returns the user who would be active at that time.To do this, it will walk the rotation forward or backward to find the correct shift. It will advance the rotation until
EndTime
is aftert
or roll it back untilStartTime
is beforet
.The loop bug found was that if the rotations configured
Start
time is after thet
argument toEndTime
, it will return theStart
value.When mixed with the on-call code, that meant that the
EndTime
would be in the future, and theStartTime
would always be 1 shift length behindEndTime
. This caused theUserID
method to infinitely "rollback" the rotation since every time it rolled back it would actually get the same value.Viewing a schedule where an assigned rotation's
Start
value is > 1 shift length past the current time would cause it to loop infinitely.