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

Do no reset Tabulator if DataFrame indexes are unchanged #5436

Merged
merged 2 commits into from Aug 25, 2023

Conversation

philippjfr
Copy link
Member

Right now when a user updates the value of a table we reset a bunch of settings because effectively anything about the data might have changed. However a) a user can reset these themselves and b) as long as the settings are valid then not resetting shouldn't cause any issues. Here we make an initial conservative change in this direction and avoid resetting the expanded property as long as the indexes of the DataFrame being displayed are unchanged.

@codecov
Copy link

codecov bot commented Aug 24, 2023

Codecov Report

Merging #5436 (567638b) into main (b08976c) will decrease coverage by 10.68%.
The diff coverage is 87.50%.

@@             Coverage Diff             @@
##             main    #5436       +/-   ##
===========================================
- Coverage   83.29%   72.61%   -10.68%     
===========================================
  Files         274      274               
  Lines       40010    40016        +6     
===========================================
- Hits        33326    29059     -4267     
- Misses       6684    10957     +4273     
Flag Coverage Δ
ui-tests ?
unitexamples-tests 72.61% <87.50%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
panel/widgets/tables.py 87.54% <87.50%> (-1.35%) ⬇️

... and 64 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@philippjfr philippjfr merged commit 905a44b into main Aug 25, 2023
10 of 15 checks passed
@philippjfr philippjfr deleted the no_children_reset branch August 25, 2023 09:47
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.

None yet

1 participant