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

V.1.search.add sorting #20

Closed
wants to merge 8 commits into from
Closed

V.1.search.add sorting #20

wants to merge 8 commits into from

Conversation

hmalik129
Copy link
Collaborator

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.

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
@randyhoulahan randyhoulahan force-pushed the v.1.search.add-sorting branch 3 times, most recently from f8e2ff6 to 1eeb749 Compare September 15, 2021 13:10
@randyhoulahan randyhoulahan changed the base branch from master to v.1 September 15, 2021 13:10
@randyhoulahan
Copy link
Member

randyhoulahan commented Sep 15, 2021

I rebased your work onto branch v.1 instead of master. You4 work will be merged into v.1. The draft PR only shows your work now since v.1.

Screen Shot 2021-09-15 at 9 11 10 AM
Screen Shot 2021-09-15 at 9 12 14 AM
Screen Shot 2021-09-15 at 9 10 32 AM

Copy link
Member

@randyhoulahan randyhoulahan left a 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()
Copy link
Member

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 }
Copy link
Member

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.

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.

2 participants