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 bug in copying multi-dataset Coordinate Grid tiles. #2432

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

bgoldowsky
Copy link
Contributor

Fixes bug where after copying a Geometry tile, not all linked datasets were being displayed.

Changes the return value of getLinkedPointsData, which was previously a hash indexed by the providerId of each linked SharedDataSet. After a tile copy operation, the newly-created SharedDataSet copies have no providerId any more, so this was being indexed by undefined.

Change this to using the SharedDataSet id as the hash key, and include the providerId in each point's properties.

It can't be index by provider ID since copied datasets don't have any provider tile.
Copy link

codecov bot commented Nov 13, 2024

Codecov Report

Attention: Patch coverage is 80.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 86.34%. Comparing base (adcd063) to head (41ad218).

Files with missing lines Patch % Lines
src/models/tiles/geometry/geometry-content.ts 71.42% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2432      +/-   ##
==========================================
- Coverage   86.36%   86.34%   -0.02%     
==========================================
  Files         746      746              
  Lines       38659    38663       +4     
  Branches     9868     9871       +3     
==========================================
- Hits        33388    33385       -3     
- Misses       4972     4979       +7     
  Partials      299      299              
Flag Coverage Δ
cypress-regression 78.28% <88.88%> (-0.03%) ⬇️
cypress-smoke 28.46% <22.22%> (-0.01%) ⬇️
jest 48.73% <0.00%> (-0.01%) ⬇️

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.

Copy link

cypress bot commented Nov 13, 2024

collaborative-learning    Run #14130

Run Properties:  status check passed Passed #14130  •  git commit 41ad218857: Change return value of getLinkedPointsData
Project collaborative-learning
Branch Review 188559155-copy-multi-dataset-grids
Run status status check passed Passed #14130
Run duration 15m 24s
Commit git commit 41ad218857: Change return value of getLinkedPointsData
Committer Boris Goldowsky
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 3
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 117
View all changes introduced in this branch ↗︎

@bgoldowsky bgoldowsky marked this pull request as ready for review November 13, 2024 18:56
Copy link
Member

@scytacki scytacki left a comment

Choose a reason for hiding this comment

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

Seems good to me.
It is nice that no migration of data is necessary since it looks like all of the data is figured out dynamically from the linked datasets. Yay!

@bgoldowsky bgoldowsky merged commit a6d5c58 into master Nov 14, 2024
17 of 19 checks passed
@bgoldowsky bgoldowsky deleted the 188559155-copy-multi-dataset-grids branch November 14, 2024 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants