[discourse] Search by name feature for namespace, flag #4329
-
Originally posted by jett02100 on Discourse 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! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Reply from erka on Discourse: 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. |
Beta Was this translation helpful? Give feedback.
-
Reply from jett02100 on Discourse: 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. Additionally, this is not the core feature, so handling it by ReachTable might reduce costs. Thank you for your answer. |
Beta Was this translation helpful? Give feedback.
-
Reply from erka on Discourse: 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! |
Beta Was this translation helpful? Give feedback.
Reply from erka on Discourse:
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!