Update Container Registry cleanup policies time to match Pajamas standards
Problem
When viewing the container registry cleanup policies (project
> settings
> packages and registries
), the time shown is not matching Pajamas standards:
Solution
Update the way the time displays in the UI to match Pajamas standards to show in absolute date format.
Now | Desired end result |
---|---|
2022-08-16T15:24:20Z |
Aug 16, 2022, 15:24 |
Implementation guide
- Update
app/assets/javascripts/packages_and_registries/settings/project/components/expiration_run_text.vue
to show the formatted date using https://docs.gitlab.com/ee/development/fe_guide/date_and_time.html#formatting - When the project has been created a while ago, the next scheduled date can be a date in the past. In this scenario show the default
NOT_SCHEDULED_POLICY_TEXT
. This can be checked usingisInPast
from~/lib/utils/datetime_utility
.
Edited by Rahul Chanila