-
Notifications
You must be signed in to change notification settings - Fork 4
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
V.1.search.add sorting #20
Conversation
1. Issue rendering updated selection to webpage
Issue to fix: When sorting by 'date created', does not display all actions dating from the beginning, displays only a couple months back
Issue: Still unable to apply sort to all actions. Sort applies to rows of actions per page (i.e. 10 per page) instead of all at once
Issue: Only updates the rows displayed on the page at a time. Not the entire length of rows
f8e2ff6
to
1eeb749
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work. Please review my comments for any changes needed.
Now you need to trigger a brand new query first page of infinite scroll when sort property is selected. The some styling on the sort select.
} | ||
|
||
function updateSortSearchQuery(){ | ||
resetSearchParams() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If someone chose a filter first then wanted to sort, would resetSearchParams remove it?
|
||
|
||
return s | ||
return sortPropertyName? { [`meta.${sortPropertyName}`]: -1 }: { 'meta.modifiedOn': -1, 'meta.createdOn': -1 } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hmalik129 please review this line and if you have any questions on what is happening let me know.
In progress Implementation.
Issue: Unable to get the query send properly for "s".
The problem is that to create the path, I am not sure if I am to add the sorting path in "filter-to-schema-property-map.js" & "index.js" and retrieve path from there OR code the pathway within the "query.js" which i currently have done but am unable to make it work.