Search by name feature for namespace, flag

Hi team,

I am trying to implement a search by name feature for some entities such as namespace, flag, segment, etc. However, I am not very familiar with the source code. Could you please provide me with some advice? This will help me create a PR for this feature.

Thank you!

Hey @jett02100.

Could you please share a bit more about your idea? Do you want to change Flipt UI or API? What is your use-case?

Flipt UI has a searchbox if table contains 10 or more items. Here is an example how it looks.

The UI also has the command mode and we want to improve it . Your idea may be the great addition there.

1 Like

Hi erka,

I understand. So the search and pagination feature are being handled by the UI side instead of the API, specifically using ReactTable. I have found the relevant code.
The first time I used it, I thought that Flipt did not have search feature. I researched the API code but only got the paging part, not the search and sort.

Additionally, this is not the core feature, so handling it by ReachTable might reduce costs.

Thank you for your answer.

Hey @jett02100

Actually, pagination is part of the current API. For example, List Flags has it. It is flexible and UI could fetch all the flags with one call. Sorting hasn’t been added to API as there is no demand for it.

Happy to help!