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

[Bug Fix] Fix styling with filters in tabulator #5110

Merged
merged 3 commits into from
Jun 15, 2023

Conversation

enismaxim1
Copy link
Contributor

@enismaxim1 enismaxim1 commented Jun 14, 2023

This PR fixes the issue identified in #5098, where Tabulator styling would not render after filtering in panel version 1.1.0.

Previously, there was a race condition causing the table to usually set styling before new data is processed into the table, meaning the table was rerendered without the requisite CSS. The solution is to reapply styling after the rerendering.

The PR also adds a test to check that styling is preserved after filtering, which passes due to the fix in this PR.

@philippjfr
Copy link
Member

pre-commit.ci autofix

@philippjfr
Copy link
Member

Thank you @enismaxim1, really appreciate the test as well.

@codecov
Copy link

codecov bot commented Jun 15, 2023

Codecov Report

Merging #5110 (7ec9c2d) into main (285db25) will increase coverage by 0.82%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #5110      +/-   ##
==========================================
+ Coverage   82.93%   83.75%   +0.82%     
==========================================
  Files         274      274              
  Lines       39133    39337     +204     
==========================================
+ Hits        32455    32948     +493     
+ Misses       6678     6389     -289     
Flag Coverage Δ
ui-tests 40.50% <100.00%> (+<0.01%) ⬆️
unitexamples-tests 73.76% <12.50%> (+1.18%) ⬆️

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

Impacted Files Coverage Δ
panel/tests/ui/widgets/test_tabulator.py 99.32% <100.00%> (+0.84%) ⬆️

... and 28 files with indirect coverage changes

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

@philippjfr
Copy link
Member

Failing tests are just flaky, will work on making those more robust shortly.

@philippjfr philippjfr merged commit 7b32a9d into holoviz:main Jun 15, 2023
13 of 15 checks passed
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

2 participants