You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove Milestones filter if there are no milestones #421
When there are no milestones the filter in issues and PRs listing page in a repo still have a filter for milestones which is not useful at all. There's just one option which just shows all issues/PRs with no milestones which are basically every issue/PR.
I think this would reduce clutter for projects not using milestones and not change anything if you're using milestones.
Reacted by Jonas Gierer, Łukasz Kliś, Hugo Gruson, fregante and Jeroen van Warmerdam
I took a stab at this, but the milestone list isn't loaded until you attempt to filter on it. Is there another way we can determine if they're using milestones outside of what's in the list and if not, do we want to call the list all the time just to remove it?
Activity
sindresorhus commentedon May 19, 2017
👍
busches commentedon May 23, 2017
I took a stab at this, but the milestone list isn't loaded until you attempt to filter on it. Is there another way we can determine if they're using milestones outside of what's in the list and if not, do we want to call the list all the time just to remove it?
busches@920554d
sindresorhus commentedon May 23, 2017
@busches Use
MutationObserver.busches commentedon May 24, 2017
@sindresorhus that seems clunky though. I'd click on
Milestonesand then it'd load the list, it has no milestones, and we'd immediately remove it?sindresorhus commentedon May 24, 2017
Ok, I misunderstood how it worked.
fregante commentedon Nov 15, 2018
This requires a fetch to the API to check if a project has any Milestones. Is it worth it?
yakov116 commentedon Nov 15, 2018
@bfred-it

I think only if its not your not part of the repo becauseThought were talking about assigning a milestone