Skip to content

Use context to filter list command #56

Description

@LukasFritzeDev

I’ve currently set the org-id context

~ ❯ mw context get                                              

Current CLI context

--project-id   not set
--server-id    not set
--org-id       65543619-a808-4787-bf1d-×××××××

When calling mw project list all project are listed, wich includes projects from other organisations.

It would be great to have to option to filter the output by the current context org-id or server-id.

Activity

  1. martin-helmich commented on Sep 11, 2023

    @martin-helmich
    Member

    I actually thought about this before, but was unsure if this behaviour wasn't too much "magic", i.e. unexpected for the user, when you forget that you've set an org id somewhere in your context and then wonder why you're only getting a filtered subset of your data... 🤔

    Further discussion is warranted. Should we decide to build this, this behaviour should also be consistent across all "list" commands.

  2. LukasFritzeDev commented on Sep 16, 2023

    @LukasFritzeDev
    MemberAuthor

    I can see your point. If not as default behaviour, an option would be to provide an opt-in flag like --filter-context.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions