Skip to content

Remove Milestones filter if there are no milestones #421

Closed

Description

@hkdobrev

image

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.

Activity

  1. sindresorhus commented on May 19, 2017

    @sindresorhus
    Member

    👍

  2. busches commented on May 23, 2017

    @busches
    Member

    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

  3. sindresorhus commented on May 23, 2017

    @sindresorhus
    Member

    @busches Use MutationObserver.

  4. busches commented on May 24, 2017

    @busches
    Member

    @sindresorhus that seems clunky though. I'd click on Milestones and then it'd load the list, it has no milestones, and we'd immediately remove it?

  5. sindresorhus commented on May 24, 2017

    @sindresorhus
    Member

    Ok, I misunderstood how it worked.

  6. fregante commented on Nov 15, 2018

    @fregante
    Member

    This requires a fetch to the API to check if a project has any Milestones. Is it worth it?

  7. yakov116 commented on Nov 15, 2018

    @yakov116
    Member

    @bfred-it I think only if its not your not part of the repo because
    image
    Thought were talking about assigning a milestone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions