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

fix: DH-16463: isEqual returns false for layouts with undefined and missing props in panelState #1783

Merged
merged 2 commits into from
Feb 8, 2024

Conversation

vbabich
Copy link
Collaborator

@vbabich vbabich commented Feb 8, 2024

LayoutUtils.isEqual gives a false negative when we compare a dehydrated layout having any undefined property with the same layout passed through JSON.serialize/JSON.parse, because all undefined properties get deleted when serialized.

Fixes DH-16463

@vbabich vbabich self-assigned this Feb 8, 2024
@vbabich vbabich changed the title Fix: isEqual returns false for layouts with undefined and missing props in panelState Fix: DH-16463: isEqual returns false for layouts with undefined and missing props in panelState Feb 8, 2024
@vbabich vbabich requested a review from mofojed February 8, 2024 01:05
@vbabich vbabich changed the title Fix: DH-16463: isEqual returns false for layouts with undefined and missing props in panelState fix: DH-16463: isEqual returns false for layouts with undefined and missing props in panelState Feb 8, 2024
Copy link

codecov bot commented Feb 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (51e60c5) 46.05% compared to head (6b44f94) 46.07%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1783      +/-   ##
==========================================
+ Coverage   46.05%   46.07%   +0.02%     
==========================================
  Files         628      628              
  Lines       37781    37781              
  Branches     9516     9516              
==========================================
+ Hits        17401    17409       +8     
+ Misses      20325    20317       -8     
  Partials       55       55              
Flag Coverage Δ
unit 46.07% <100.00%> (+0.02%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vbabich vbabich enabled auto-merge (squash) February 8, 2024 01:24
@vbabich vbabich merged commit e90b627 into deephaven:main Feb 8, 2024
6 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants