Export rows as displayed with sorting applied#22
Export rows as displayed with sorting applied#22RexBarker wants to merge 1 commit intowidgetti:masterfrom
Conversation
|
Thanks for your contribution! Could you provide code and steps to reproduce the issue? |
|
Hello, The intent of the PR is to output the rows as they are displayed in the sorting order. The graphic below shows the results with the current version of the Execute in a Jupyter notebook with Step 2: Sort table by "country" column Step 3: Output the dataframe: Result: Order of the output dataframe is the same as the original data; the sorting order of the user interaction was not applied to the output Fix: As described in PR code |
|
Thank you for this description. If I try this with your PR, it doesn't work for me. The output op |
|
My appologies. I realize now that it was because in my version, I have both #23 and this PR combined (they should be combined to fully test this case). The reason why it didn't work for you is that in this version, the Here is the revised version to try when combined with #23. The appropriate flags are added in this case: |
|
@maartenbreddels : any outlook on incorporating these PRs #22, #23, #24 ? |
|
Yes, we had some work to do, which eventually landed in ipyaggrid #32 which allows us to do visual tests. This means we will not have regressions, and expected behaviour. Are you willing to try this? Basically you can rewrite your example as a test. See https://solara.dev/docs/howto/testing for the documentation. I think this feature should only be tested with the Note that this requires a new release of solara, which I plan to do soon. Otherwise you can see #32 how the dev install of solara is done. |
|
I can give that a try this week to get the tests working. A good excercise to learn as well 👍 . Thanks! |
|
If you run into issues, I'm happy to help. It will be good feedback for us if the documentation is good enough. |
|
#32 is merged, so if you rebase on master, you already have the directory structure you need setup. |
This change allows the rows to be exported as displayed in the table. This considers the following: