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

Merged
merged 27 commits into from
Jun 5, 2024
Merged

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

Copy link

sonarqubecloud bot commented Jun 5, 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

@aagam-shah aagam-shah merged commit 1dc33e7 into trunk Jun 5, 2024
16 checks passed
@aagam-shah aagam-shah deleted the add/media-import-improvements branch June 5, 2024 06:25
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.

4 participants