Closed aswasif007 closed 2 months ago
✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.
Package | Version | Score | Details |
---|
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Issue
https://github.com/Automattic/vip-cli/issues/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 offilesProcessed = 0
is being consumed by the null check.Pull request checklist
Steps to Test
npm run build
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 theImported Files: 0/4 - 0% ✓
line is present in the output.