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/media import improvements #1827

Open
wants to merge 25 commits into
base: trunk
Choose a base branch
from

Conversation

ariskataoka
Copy link
Member

Description

This PR uses the failure details URL for the import media command.

Pull request checklist

New release checklist

Changelog Description

Media import: Add option to download failure details logs from URL returned in the media import request response body.

Steps to Test

Obs.: This test requires a locall VIP API public up and running.

  1. Check out PR.
  2. Run npm run build

Scenario 1:

  1. Import media files by running VIP_PROXY="" API_HOST={ LOCAL_VIP_API_PUBLIC_URL } node ./dist/bin/vip-import-media.js @{ TEST_SITE_ID }.{ ENV_SITE } { MEDIA_TO_BE_IMPORTED_URL }

The output should contain a message about the errors and a prompt as:

⚠️  Error details can be found on ${ ERROR_DETAILS_URL_RETURNED_BY_VIP_PUBLIC_API }
Download error details now? (y/N) › 
  1. Answer y
  2. The output should contain information about the download and the local file as a result:
⚠️  All errors have been exported to { LOCAL_PATH }

Scenario 2:

Repeat step 1

  1. Answer n
  2. The prompt should exit

Copy link
Contributor

github-actions bot commented May 9, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

saroshaga and others added 5 commits May 9, 2024 17:13
* Add new lines after error file URLs

* Add note about 7 day downloadability to prompt

---------

Co-authored-by: Sarosh Aga <sarosh.aga@automattic.com>
saroshaga and others added 6 commits May 14, 2024 13:40
Co-authored-by: Todd Wright <4177859+t-wright@users.noreply.github.com>
* Address error messaging feedback

* Remove ellipses with conflicts with URL

* Revert v1 flow error messages

* Call progress tracker print to show downloading message
Copy link

sonarcloud bot commented May 23, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

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.

None yet

3 participants