Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use context to filter list command #56

Open
LukasFritzeDev opened this issue Sep 10, 2023 · 2 comments
Open

Use context to filter list command #56

LukasFritzeDev opened this issue Sep 10, 2023 · 2 comments

Comments

@LukasFritzeDev
Copy link
Contributor

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.

@LukasFritzeDev LukasFritzeDev added the enhancement New feature or request label Sep 10, 2023
@martin-helmich
Copy link
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.

@LukasFritzeDev
Copy link
Contributor Author

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

@martin-helmich martin-helmich removed the enhancement New feature or request label Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants