Skip to content
This repository has been archived by the owner on Feb 28, 2021. It is now read-only.

Filter project list by org or user #432

Open
MeBrei opened this issue May 7, 2020 · 5 comments
Open

Filter project list by org or user #432

MeBrei opened this issue May 7, 2020 · 5 comments

Comments

@MeBrei
Copy link
Contributor

MeBrei commented May 7, 2020

In upstream, we want to show all projects registered under an org or user. Currently we use the list_org_projects function to get all projects and then filter by the org id. Then an additional call is needed to get Project to retrieve the project id as well.

Once #389 is in place it would be practical to have a registry endpoint for getting projects under an org or user directly.

@xla
Copy link
Contributor

xla commented May 7, 2020

Ideally it would be two separate client methods.

@NunoAlexandre
Copy link
Contributor

Ideally it would be two separate client methods.

So that you can have different handling lanes in the upstream or for some other reason? From our side, it would be fine to have a single method.

@geigerzaehler
Copy link

geigerzaehler commented May 7, 2020

To get all projects for an org you can also fetch the org, look at the project names registered with that org, and then fetch the project by names. Would that work for you?

@NunoAlexandre

This comment has been minimized.

@xla
Copy link
Contributor

xla commented May 7, 2020

To get all projects for an org you can also fetch the org, look at the project names registered with that org, and then fetch the project by names. Would that work for you?

Technically yes, for ergonomics it would be better to assume we only have the id of the org/user and what to fetch the projects for them.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants