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

Search sources list by source name #6395

Open
hbd opened this issue Sep 23, 2021 · 0 comments
Open

Search sources list by source name #6395

hbd opened this issue Sep 23, 2021 · 0 comments
Labels
frozen Not being actively worked on team/platform-move type/enhancement New feature or request

Comments

@hbd
Copy link

hbd commented Sep 23, 2021

Tell us about the problem you're trying to solve

The /api/v1/sources/list endpoint works great, but is an inefficient way to find a source if you're searching for sources(s) with specific name(s). Currently, there is not a way to search for a source by name.

The feature is a nice-to-have to prevent clients from needing to iterate through the whole list of sources to find a source or group of sources.

Describe the solution you’d like

We could use something like:

/api/v1/sources/list?name=myName

or even use a contains:

/api/v1/sources/list?nameContains=myName

Which would return a list of sources the specified name or containing the name. This would reduce the client workload, because they'd no longer need to iterate through the whole list of sources.

Describe the alternative you’ve considered or used

Currently, I'm looping through the whole list to find a source by name.

Are you willing to submit a PR?

Yes. If we decide this is something we want, I'll happily make the PR.

@hbd hbd added the type/enhancement New feature or request label Sep 23, 2021
@bleonard bleonard added the frozen Not being actively worked on label Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frozen Not being actively worked on team/platform-move type/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants