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

create default search string filter for new entity list endpoint #855

Closed
sennierer opened this issue May 17, 2024 · 1 comment · Fixed by #969 or #940
Closed

create default search string filter for new entity list endpoint #855

sennierer opened this issue May 17, 2024 · 1 comment · Fixed by #969 or #940
Assignees

Comments

@sennierer
Copy link
Collaborator

in relation to #850 and corresponding PR #851
Using the get_entity_classes utility function we could inspect the classes and - using sub-queries and annotations - concatenate all charfields in one field, which we could then use to create a basic label filter for the entities list endpoint. This would allow to without changing anything have a basic search entities endpoint.

@b1rger
Copy link
Contributor

b1rger commented May 17, 2024

Something similar is being done in

def generate_search_filter(model, query, fields_to_search=None):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants