Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(crew): add prpagation of event change to event reducer
While the attendances, duties and events features are otherwise separate, upstream changes to attendances and duties must be propagated to the events list and therefore agenda feed. Events are: - A duty is created (CreateSuccess). - A duty is destroyed (DestroySuccess). - An attendance is updated (UpdateSuccess). Changes: - Modules - Add DurationModule - Encapsulate DurationComponent and DurationPipe. These are used together in duties and attendances - Pipes - DurationPipe - Refactor. The original code threw an error when called as I used deprecated syntax. See linked GitHub issue for more information. - Update calling references. - Builders - CalendarEventbuilder - Add ID getters for attendance and duty records. EventEffects use these getters. - Update internal refernces to use these. - Effects/Reducers - Add EventEffects - Forward propagate appropriate attendance and duty changes to the events refucer. - Add tests for all affected code. See: moment/moment#1048 (comment) Closes: d4h/decisions-project#4472
- Loading branch information
Showing
6 changed files
with
68 additions
and
8 deletions.
There are no files selected for viewing
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
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
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