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

unify handling of v2 documents #1606

Merged
merged 2 commits into from
Nov 12, 2024
Merged

unify handling of v2 documents #1606

merged 2 commits into from
Nov 12, 2024

Conversation

scytacki
Copy link
Member

@scytacki scytacki commented Nov 8, 2024

  • the codap3 and codap file extensions are now treated the same by the drop code. It is the content of the file that matters
  • remove unnecessary createCodapDocument call when a new document was created by the close option which was doing a lot of duplicate work
  • importV2Document now just returns the v3 document instance, which allows it to run synchronously
  • handleCFMEvent now returns a promise when it does asynchronous things to help with testing

- the codap3 and codap file extensions are now treated the same by the drop code. It is the content of the file that matters
- remove unnecessary createCodapDocument call when a new document was created by the close option which was doing a lot of duplicate work
- importV2Document now just returns the v3 document instance, which allows it to run synchronously
- handleCFMEvent now returns a promise when it does asynchronous things to help with testing
Copy link

codecov bot commented Nov 8, 2024

Codecov Report

Attention: Patch coverage is 96.42857% with 1 line in your changes missing coverage. Please review.

Project coverage is 83.35%. Comparing base (100c6ac) to head (f4d0f4b).
Report is 38 commits behind head on main.

Files with missing lines Patch % Lines
v3/src/models/app-state.ts 93.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1606      +/-   ##
==========================================
+ Coverage   82.22%   83.35%   +1.12%     
==========================================
  Files         594      600       +6     
  Lines       30026    30238     +212     
  Branches     8239     8295      +56     
==========================================
+ Hits        24690    25204     +514     
+ Misses       4973     4683     -290     
+ Partials      363      351      -12     
Flag Coverage Δ
cypress 72.11% <90.90%> (+1.45%) ⬆️
jest 52.59% <67.85%> (+0.12%) ⬆️

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 8, 2024

codap-v3    Run #5089

Run Properties:  status check passed Passed #5089  •  git commit b2d3e064e0: Increment the build number
Project codap-v3
Branch Review main
Run status status check passed Passed #5089
Run duration 02m 25s
Commit git commit b2d3e064e0: Increment the build number
Committer eireland
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 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 3
View all changes introduced in this branch ↗︎

@scytacki scytacki marked this pull request as ready for review November 9, 2024 05:04
@scytacki scytacki requested a review from kswenson November 9, 2024 05:04
Copy link
Member

@kswenson kswenson left a comment

Choose a reason for hiding this comment

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

👍 Looks good -- nice cleanup!

@kswenson kswenson added the v3 CODAP v3 label Nov 10, 2024
@scytacki
Copy link
Member Author

The one failing cypress test was passing before, and it is listed as one of the flakey tests by the cypress cloud. So I'm going to merge without fixing that.

@scytacki scytacki merged commit 7ddcd70 into main Nov 12, 2024
14 of 17 checks passed
@scytacki scytacki deleted the 188104685-unify-v2-import branch November 12, 2024 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants