Only display active versions in context menu submenu
The attached patch removes completed versions from the issues context menu. If a project has some 20 completed versions, this list starts to get awfully long.
#1 Updated by Paul Rivier over 8 years ago
Version are desactivated when they are :
- passed and completed
- manually (need an additionnal property to be manually switched on Versions)
But for sure, being able to keep the version dropdown menu clean it a very important thing.
Thank you for this patch.
#2 Updated by Brad Beattie over 8 years ago
Yeah, I see what you're saying. I just took the code that was being used to hide versions from the project roadmap page for consistency. One is changed, both should be, y'know? In that sense, what you're proposing is a separate feature request. Related, but separate.
#4 Updated by Brad Beattie over 8 years ago
Jean-Philippe Lang wrote:
I've commented on that proposal. Ultimately, I don't think it impacts this patch issue much. Currently, the way versions are being detected as closed isn't by a boolean, but by whether the issues in the version are all closed. All I've done in this patch is added that code to the context menu.
If the method of detecting closed status changes, then this patch could change too, yeah?
#5 Updated by Jean-Philippe Lang over 8 years ago
IMHO, there's no reason to filter completed versions in the context menu and not in the 'Target version' drop down list on the issue form. I understand this can be a problem when you have lots of versions. But before changing this behaviour (not being able to assign an issue to a completed version) I think it would be better to explicitly mark versions as completed.