Skip to content

Fix custom column deletion#336

Merged
mofojed merged 1 commit intodeephaven:mainfrom
mofojed:fix-custom-columns
Dec 8, 2021
Merged

Fix custom column deletion#336
mofojed merged 1 commit intodeephaven:mainfrom
mofojed:fix-custom-columns

Conversation

@mofojed
Copy link
Member

@mofojed mofojed commented Dec 7, 2021

API changed custom columns to an object, but they can (and should) be stringified for saving.

Fix for Enterprise https://deephaven.atlassian.net/browse/DH-11906

API changed custom columns to an object, but they can (and should) be stringified for saving.
@mofojed mofojed added the bug Something isn't working label Dec 7, 2021
@mofojed mofojed added this to the December 2021 milestone Dec 7, 2021
@mofojed mofojed requested a review from vbabich December 7, 2021 21:49
@mofojed mofojed self-assigned this Dec 7, 2021
@codecov
Copy link

codecov bot commented Dec 7, 2021

Codecov Report

Merging #336 (ccbafb1) into main (fadd327) will decrease coverage by 22.04%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##             main     #336       +/-   ##
===========================================
- Coverage   39.69%   17.64%   -22.05%     
===========================================
  Files         328       21      -307     
  Lines       23275     3729    -19546     
  Branches     4956      942     -4014     
===========================================
- Hits         9238      658     -8580     
+ Misses      13615     2818    -10797     
+ Partials      422      253      -169     
Flag Coverage Δ
unit 17.64% <0.00%> (-22.05%) ⬇️

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

Impacted Files Coverage Δ
packages/iris-grid/src/IrisGrid.jsx 28.85% <0.00%> (-2.84%) ⬇️
packages/iris-grid/src/DateUtils.js 1.69% <0.00%> (-89.07%) ⬇️
packages/iris-grid/src/Formatter.js 17.07% <0.00%> (-73.63%) ⬇️
packages/iris-grid/src/AdvancedFilterCreator.jsx 2.03% <0.00%> (-66.20%) ⬇️
packages/iris-grid/src/TableUtils.js 1.99% <0.00%> (-64.30%) ⬇️
packages/iris-grid/src/IrisGridCopyHandler.jsx 27.56% <0.00%> (-58.24%) ⬇️
...ckages/iris-grid/src/IrisGridPartitionSelector.jsx 5.00% <0.00%> (-37.23%) ⬇️
packages/iris-grid/src/IrisGridUtils.js 11.16% <0.00%> (-36.22%) ⬇️
...ges/iris-grid/src/sidebar/AdvancedSettingsMenu.tsx 16.66% <0.00%> (-16.67%) ⬇️
...es/iris-grid/src/sidebar/SelectDistinctBuilder.jsx 6.00% <0.00%> (-15.67%) ⬇️
... and 319 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fadd327...ccbafb1. Read the comment docs.

const { columns, customColumns: oldCustomColumns } = model;
const { columns } = model;
const oldCustomColumns = model.customColumns.map(
customColumn => `${customColumn}`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice, I didn't know we can serialize custom columns like this!

@mofojed mofojed merged commit 2f1b8c5 into deephaven:main Dec 8, 2021
@mofojed mofojed deleted the fix-custom-columns branch December 8, 2021 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants