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

Add search for objects list, #228

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

mike-petrov
Copy link
Contributor

closes #211

Signed-off-by: Mikhail Petrov mike@nspcc.ru

Signed-off-by: Mikhail Petrov <mike@nspcc.ru>
@mike-petrov
Copy link
Contributor Author

mike-petrov commented Sep 18, 2024

few moments:

  1. Pagination does not work correctly because every time offset parameter is changed a different list of objects is returned. ex offset=0 and offset=10:
Screenshot 2024-09-18 at 23 12 19 Screenshot 2024-09-18 at 23 12 24
  1. Did I choose the right filter for search MatchCommonPrefix? It only works from the beginning of the object name and also it only works with FileName, but if you have FilePath attribute you see it like a name:
image

@tatiana-nspcc @roman-khimov

@tatiana-nspcc
Copy link

  1. Pagination does not work correctly because every time offset parameter is changed a different list of objects is returned. ex offset=0 and offset=10:

Yep, unfortunately, there is no sorting in the search request, so the result with offset is pretty random.

  1. Did I choose the right filter for search MatchCommonPrefix

I don't think we have any other option here, just the prefix.

Copy link
Member

@roman-khimov roman-khimov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just a part of #211 in fact. It's OK to have it, but I'd like to see more functionality exposed. The request language is rather rich, we can search by combination of attributes, we can do numeric matches and all of this should be available to users as well. They can add custom attributes right in the panel, so they should be able to make use of them. Specify "color=black" and "color=white", then get all those black cats via search (not name-based).

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

Successfully merging this pull request may close these issues.

Search
3 participants