Skip to content

Update release block footer to show suitable created and released dates

What does this MR do and why?

This MR addresses #423731 to always show the released_at and created_at date of a release in the release footer.

  • Update release block footer to show suitable created and released dates
  • Refactor and clean up the calculation of dates and descriptions

Changelog: changed

Screenshots or screen recordings

Description Before After
Release overview sorted by created Bildschirmfoto_2023-10-03_um_18.36.46 Bildschirmfoto_2023-10-03_um_18.39.44
Release overview sorted by released Bildschirmfoto_2023-10-03_um_18.38.36 Bildschirmfoto_2023-10-03_um_18.39.46
Release details page Bildschirmfoto_2023-10-03_um_18.40.43 Bildschirmfoto_2023-10-03_um_18.40.20

How to set up and validate locally

  1. Navigate to Release Page on a repository such as http://127.0.0.1:3000/jashkenas/Underscore/-/releases
  2. Create one or more release(s) with different release dates (in the past, today and in the future)
  3. Check release footer on the releases overview and details page

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports