Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display upcoming end-of-life dates for dependencies #45

Merged
merged 3 commits into from
Sep 18, 2024

Conversation

danlivings-dxw
Copy link
Contributor

Dependencies are considered to be near the end of their life when there is less than one year of support remaining.

In this case, the second capsule used to display the latest version of the dependency has been expanded to provide a timescale for this deadline in a relative format, with an icon as a secondary visual indicator:

  • bxs-hourglass () is used when the end-of-life date is upcoming
  • bxs-hourglass-bottom () is used when the end-of-life date has passed.

Example of an end-of-life dependency and a dependency with an upcoming end-of-life date:
image

Example of dependencies with updates but with more than a year of support remaining, which are visually unchanged:
image

This dependency introduces multiple utility functions for manipulating
and presenting dates which will be helpful for presenting things such as
the time left before support ends for a dependency or the age of an
issue.

This is the most popular dependency for date utilities and has no
downstream dependencies, and given that code that manipulates dates
and/or time are notoriously prone to gotchas, it seems like a good
candidate for inclusion despite our preference to minimise dependencies
for this project in general.
This will search a list of release cycles to get the end-of-life date
for the cycle that best matches the dependency version.
Dependencies are considered to be near the end of their life when there
is less than one year of support remaining.

In this case, the second capsule used to display the latest version of
the dependency has been expanded to provide a timescale for this
deadline in a relative format, with an icon as a secondary visual
indicator:
- `bxs-hourglass` is used when the end-of-life date is upcoming
- `bxs-hourglass-bottom` is used when the end-of-life date has passed.
@danlivings-dxw danlivings-dxw force-pushed the feature/display-incoming-end-of-life-details branch from 5c47225 to 7e152d1 Compare September 17, 2024 15:52
@danlivings-dxw danlivings-dxw linked an issue Sep 17, 2024 that may be closed by this pull request
Copy link
Contributor

@richpjames richpjames left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR looks good, well presented and tested.
I wonder if showing end of life as 'soon' when there is a whole year of support left is too much but it's just a guess and something that would be best answered by users.

@danlivings-dxw
Copy link
Contributor Author

@richpjames I agree that a year is a bit excessive but I thought I'd err on the side of caution as it may be useful to know what's on the horizon that doesn't need immediate action.

@danlivings-dxw danlivings-dxw merged commit 7c55d1f into main Sep 18, 2024
3 checks passed
@danlivings-dxw danlivings-dxw deleted the feature/display-incoming-end-of-life-details branch September 18, 2024 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display upcoming end-of-life information for dependencies
2 participants