-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
fix(annotation): Address regression from #24694 #24874
fix(annotation): Address regression from #24694 #24874
Conversation
@@ -93,7 +93,6 @@ describe('AnnotationLayer type guards', () => { | |||
}, | |||
]; | |||
const recordAnnotationResult: RecordAnnotationResult = { | |||
columns: ['col1', 'col2'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LOL. The columns
here should be the same columns as the records
which is the output of the conversion of a Pandas DataFrame to a dictionary, i.e., this should have read,
columns: ['a', 'b']
8845aba
to
8e0ed3b
Compare
Codecov Report
@@ Coverage Diff @@
## master #24874 +/- ##
==========================================
- Coverage 69.00% 69.00% -0.01%
==========================================
Files 1904 1906 +2
Lines 74107 74141 +34
Branches 8194 8208 +14
==========================================
+ Hits 51140 51161 +21
- Misses 20848 20859 +11
- Partials 2119 2121 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
SUMMARY
This PR fixes a regression introduced in #24694. Specifically previously the legacy
TableViz
returned both the records and the columns associated with the records, however per here the new formulation only returned the records resulting in the annotation layer being deemed invalid by the frontend.Rather than also explicitly including the column names (which is also redundant as the names are included in the records) this PR simply removes them as they're superfluous and not used by the frontend anywhere.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
CI and ran an end-to-end test locally.
ADDITIONAL INFORMATION