Display time until next package cleanup
What does this MR do and why?
Package & registry project settings: Adds a message showing the time until the next scheduled cleanup when present.
Do not display any message if nextRunAt
time is not set. Upon submission refetch the settings query and update message.
issue: #379028 / #378342 and discussion confirming the logic.
After further discussion we decided its good to show a different message when cleanup policy is ready to be executed.
Screenshots or screen recordings
When cleanup policy is set, shows highlighted message.
When cleanup policy is ready to be executed, shows different message
How to set up and validate locally
- Visit Project > Settings > Packages and registries page
- If highlighted message does not appear then policy has not been set.
- Choose a value from the
Number of duplicate assets to keep
select and clickSave changes
- The highlighted message should now appear with duration for cleanup.
- To test message which informs cleanup policy is ready to be executed change the
update
function to:update: (data) => { return { ...data.project?.packagesCleanupPolicy, nextRunAt: new Date().toISOString(), } || {}; },
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.
Edited by Rahul Chanila