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

add dataContextFromURL api #1693

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

scytacki
Copy link
Member

@scytacki scytacki commented Dec 19, 2024

PT Story: https://www.pivotaltracker.com/story/show/187738928

This PR implements a synchronous version of the create dataContextFromURL API request. It works similarly to v2, where the result is success if there's enough information to attempt to download the data context, even if the actual download fails. In this case, an alert is displayed so the user knows the download failed, but the plugin will not be informed.

A separate PR implements an asynchronous version of this API request, which will return a fail response if the download does not succeed: #1699.

Copy link

codecov bot commented Dec 19, 2024

Codecov Report

Attention: Patch coverage is 77.50000% with 9 lines in your changes missing coverage. Please review.

Project coverage is 85.88%. Comparing base (1db08e0) to head (f182364).
Report is 13 commits behind head on main.

Files with missing lines Patch % Lines
v3/src/sample-data/index.ts 55.55% 4 Missing ⚠️
...eractive/handlers/data-context-from-url-handler.ts 88.46% 3 Missing ⚠️
v3/src/models/app-state.ts 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1693      +/-   ##
==========================================
- Coverage   85.89%   85.88%   -0.01%     
==========================================
  Files         607      607              
  Lines       31108    31139      +31     
  Branches     8643     8052     -591     
==========================================
+ Hits        26720    26744      +24     
- Misses       4233     4240       +7     
  Partials      155      155              
Flag Coverage Δ
cypress 74.62% <21.21%> (-0.08%) ⬇️
jest 53.94% <60.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 Dec 19, 2024

codap-v3    Run #5628

Run Properties:  status check passed Passed #5628  •  git commit f182364695: PR review cleanup.
Project codap-v3
Branch Review 187738928-api-dataContextFromURL
Run status status check passed Passed #5628
Run duration 01m 53s
Commit git commit f182364695: PR review cleanup.
Committer Teale Fristoe
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 ↗︎

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