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

Bugfix: Correctly sort re-ordered columns #1096

Merged
merged 9 commits into from
Nov 16, 2023

Conversation

ashbaldry
Copy link
Contributor

The re-ordered column order isn't sent server-side, so have added the column names to the DT options. This gets passed into the server-side parameters in columns$[[col_id]]$name (adding it to data instead caused errors)

This PR should resolve #534 , #921 and #1069

@CLAassistant
Copy link

CLAassistant commented Nov 15, 2023

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@yihui yihui left a comment

Choose a reason for hiding this comment

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

Clever! I didn't know that column names would be sent to the server side. Thank you so much! I'll tweak the PR a little bit and merge.

@yihui yihui self-assigned this Nov 15, 2023
@yihui
Copy link
Member

yihui commented Nov 16, 2023

It turns out that sorting is easier to fix, and it took me quite a while to figure out how to fix searching, thanks to your guidance.

I think this PR is ready to go now.

@yihui yihui merged commit b42dd91 into rstudio:main Nov 16, 2023
10 checks passed
@ashbaldry ashbaldry deleted the bufix/col-reorder-sort branch November 16, 2023 09:11
@ashbaldry
Copy link
Contributor Author

Glad I could help! Didn't realise that the search was also not working when re-ordered

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