#2225 [RFE] Remove milestones from dropdown after milestone date
Closed: Fixed 5 years ago Opened 6 years ago by jflory7.

Summary

After a milestone's deadline passes, it should no longer be selectable in the dropdown for current issues (unless it was already assigned to a ticket).

Description

One thing that I just noticed that was confusing was that for a project I have, after a milestone deadline passes, you can still select that milestone in the dropdown. This is confusing in the context of our project (where it doesn't make sense to tag open tickets for milestones that have passed).

It would be nice to have a boolean option to hide milestones with passed deadlines from the dropdown menu in issue metadata (but still be able to view them in the roadmap if you select them there). This would be especially helpful for helping on-board new people into a project where metadata is important to keeping a project organized and tidy.

Implementation

Assume today is April 10 2017.

  1. Add milestones to project: deadline1 for 2017-01-01 and deadline2 for 2017-12-31
  2. File issue
  3. Edit metadata, select Milestones dropdown menu
  4. Only deadline2 appears

Alternate scenario:

  1. Add milestones to project: deadline1 for 2017-01-01 and deadline2 for 2017-12-31
  2. Edit existing issue that was tagged with deadline1 before its deadline passed
  3. Edit metadata, select Milestones dropdown menu
  4. deadline1 and deadline2 appears, select deadline2
  5. Update issue
  6. deadline1 is no longer selectable in the dropdown for Milestones

Hope this makes sense!


Metadata Update from @pingou:
- Issue tagged with: Issue tracker, RFE

6 years ago

One issue with this is that nothing enforces that the content of the deadline field is a date.

One can very well set a milestone: 2.0 with a deadline of future.

We could try to be smart and only consider those that we can parse into a date. Food for thoughts :)

An alternative approach is #2123 - set which milestones are active and display only those.

@pvoborni That could also work well from my POV. So long as inactive milestones are still visible in the roadmap, just not the dropdown, that would be nice.

jflory, with the current implementation, and active / inactive milestones, i think this one is done?

going to close as fixed, happy to re-open if there are still issues here.

Metadata Update from @ryanlerch:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

5 years ago

@ryanlerch Yes! This is now done and works as expected for me in pagure.io/fedora-commops. Thanks for following up.

Login to comment on this ticket.

Metadata