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

fix(import-media): Display success/total count even if all files fail to import #2012

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

aswasif007
Copy link
Contributor

Issue

#2005

Description

In the vip import media command, when all files in the archive fails/errors while importing, the import does not show the success/total count in the end. This is because of a bug in the null-check filter where the case of filesProcessed = 0 is being consumed by the null check.

Pull request checklist

Steps to Test

  1. Check out PR.
  2. Run npm run build
  3. Run node ./dist/bin/vip import media @<app>.<env> https://getsamplefiles.com/download/zip/sample-1.zip twice. In the second run, all the files should fail to import as they are already imported. When that happens, make sure that the Imported Files: 0/4 - 0% ✓ line is present in the output.

Copy link
Contributor

Dependency Review

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

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

Copy link

sonarcloud bot commented Aug 30, 2024

Copy link
Contributor

@saroshaga saroshaga left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this!

@aswasif007 aswasif007 merged commit 7a08463 into trunk Aug 30, 2024
16 checks passed
@aswasif007 aswasif007 deleted the fix/status-msg branch August 30, 2024 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Print total files processed even when they all error (import media command)
2 participants