position management ¶
March 2021, in support of CATS 117, 118, 124, 126 and some previous work, position management was overhauled.
Changes ¶
- ‘active’ flag introduced
- ‘deleted’ moved to use laravel soft deletes
- ‘private’ concept removed
- position edit uses verte color picker vue component
- events PositionDeleted and PositionRestored added
Events added to accomodate future listener behaviour without needing to modify any of this block of work.
Example: Notification to admins about position being soft deleted or restored.
note ¶
‘verte’ was removed in favor of default type=’color’ input
april 2021 ¶
CATS-110 - a few remaining checks for ‘cancel’ position name were removed from some builder methods. The ‘cancel’ position name string was looked for in multiple areas in queries and code, and had been skinnied down some in the past few months. This effort should be removing the last traces. The word ‘Cancel’ still exists in some spots, but is referencing ‘shift change’ types, not position names.
to do ¶
in future, remove is_private from database table altogether. removing in this same block of work may have caused unanticipated issues, but the is_private should not be being used at all after this section of work. after a short audit in production, we can slate is_private removal for future push.