Fix formatting of date for clear status on super sidebar
What does this MR do and why?
- Fixes issue with super sidebar for editing user status for Firefox/Safari.
- DRYs up the fetching of the user status
- Fixes the AR relationship inference and then fixes the tests to reset the relation since delete is used in blanking the status
note: no changelog since super sidebar is behind a feature flag
Screenshots or screen recordings
on firefox
before | after |
---|---|
How to set up and validate locally
- Enable the invite modal
Feature.enable(:super_sidebar_nav)
- Enable
New navigation
toggle under the user dropdown. - Set user status in chrome with a clear after date.
- Switch to Firefox.
- Go to edit the previously set user status.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #392870 (closed)
Edited by Doug Stull