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

UIP-44 Convert DIE download URL to Blobstore #3595

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

briehl
Copy link
Member

@briehl briehl commented Jul 8, 2024

Description of PR purpose/changes

As it says. Out with the old, in with the new.
Also removes refs to unused variables and the DIE url from the download panel, and a few minor things mentioned inline.

Jira Ticket / Issue

Related Jira ticket: https://kbase-jira.atlassian.net/browse/UIP-44

  • Added the Jira Ticket to the title of the PR (e.g. DATAUP-69 Adds a PR template)

Testing Instructions

  • Details for how to test the PR:
  • Tests pass locally and in GitHub Actions
  • Changes available by spinning up a local narrative and navigating to X to see Y

Dev Checklist:

  • My code follows the guidelines at https://sites.google.com/lbl.gov/trussresources/home?authuser=0
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • (JavaScript) I have run Prettier and ESLint on changed code manually or with a git precommit hook
  • (Python) I have run Ruff format and check on changed Python code manually or with a git precommit hook
  • Any dependent changes have been merged and published in downstream modules

Updating Version and Release Notes (if applicable)

Comment on lines -32 to -34
shockURL: Config.url('shock'),
exportURL: Config.url('data_import_export'),
nmsURL: Config.url('narrative_method_store'),
Copy link
Member Author

Choose a reason for hiding this comment

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

shock and export URLs are no longer used.
NMS URL is only used once to make a client, didn't seem worth keeping in the widget's memory.

(eeURL gets reused several times)

Copy link

sonarqubecloud bot commented Jul 8, 2024

@@ -187,10 +184,10 @@ define([
app_id: method,
},
])
).then(([jobId]) => [jobId, wsObjectName]);
Copy link
Member Author

Choose a reason for hiding this comment

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

No longer pass around the object name to different things. Previously, it was only injected into the download URL, blobstore doesn't do that.

@@ -2,6 +2,7 @@
"appdev": {
"auth": "https://appdev.kbase.us/services/auth",
"awe": "https://appdev.kbase.us/services/awe-api",
"blobstore": "https://appdev.kbase.us/services/blobstore",
Copy link
Member Author

Choose a reason for hiding this comment

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

New URL!
I don't really like this format, but not worth changing around in this PR. There's a ticket out there.

@@ -204,7 +204,7 @@ define([
const iframe = document.getElementById('hiddenDownloader');
expect(iframe).not.toBeNull();
const expectedUrl =
'https://ci.kbase.us/services/data_import_export/download?id=some_shock_id&del=1&name=fake_test_object.SOME_FORMAT.zip&url=https%3A%2F%2Fci.kbase.us%2Fservices%2Fshock-api';
'https://ci.kbase.us/services/blobstore/node/some_shock_id?download&del';
Copy link
Member Author

Choose a reason for hiding this comment

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

It's easy to alter tests once we have them...

Copy link

codecov bot commented Jul 8, 2024

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.

Project coverage is 0.00%. Comparing base (b6808b7) to head (8fb1ac1).
Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #3595       +/-   ##
===========================================
- Coverage    25.90%   0.00%   -25.91%     
===========================================
  Files          461     461               
  Lines        46646   46643        -3     
===========================================
- Hits         12084       0    -12084     
- Misses       34562   46643    +12081     
Files Coverage Δ
...gets/narrative_core/kbaseNarrativeDownloadPanel.js 0.00% <0.00%> (-94.88%) ⬇️

... and 327 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

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

@briehl briehl merged commit 41dbb55 into develop Jul 8, 2024
6 of 10 checks passed
@briehl briehl deleted the UIP-44-dl-blobstore-url branch July 8, 2024 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants