-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Labels
L2A task suitable for someone who is comfortable implementing features.A task suitable for someone who is comfortable implementing features.
Description
The FilterQuery function, found in /schema/filter.go has had its code commented out for a little while now, since its original functionality did not work as intended.
This function should be rewritten to do the following:
- Take in a generic type to filter a query by (currently this is denoted by F)
- Take in a gin context (currently denoted c)
- Use reflection to read the field tags of type
F - Filter out any parameters given in
cthat do not match a field inFwith the tagqueryable
Keep in mind that this will also need to check for fields in nested structs, since queries using dot notation (i.e. academic_session.name) are allowed!
These changes will coincide with a separate issue to add the queryable tag to type fields where appropriate.
Metadata
Metadata
Assignees
Labels
L2A task suitable for someone who is comfortable implementing features.A task suitable for someone who is comfortable implementing features.