-
Notifications
You must be signed in to change notification settings - Fork 86
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
Copy Data set bug + DeferredPromise format fix #2413
Conversation
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
packages/cli/__tests__/zosfiles/__unit__/copy/ds/Ds.handler.unit.test.ts
Fixed
Show fixed
Hide fixed
packages/cli/__tests__/zosfiles/__unit__/copy/ds/Ds.handler.unit.test.ts
Fixed
Show fixed
Hide fixed
packages/cli/__tests__/zosfiles/__unit__/copy/ds/Ds.handler.unit.test.ts
Fixed
Show fixed
Hide fixed
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
f436109
to
484775d
Compare
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
563565c
to
af98302
Compare
…AM.ams.temp Signed-off-by: Pujal Gandhi <71276682+pujal0909@users.noreply.github.com>
…AM.ams.temp Signed-off-by: Pujal Gandhi <71276682+pujal0909@users.noreply.github.com>
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2413 +/- ##
==========================================
+ Coverage 91.34% 91.35% +0.01%
==========================================
Files 639 639
Lines 18259 18269 +10
Branches 3949 3844 -105
==========================================
+ Hits 16678 16690 +12
+ Misses 1579 1577 -2
Partials 2 2 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
77b74c5
to
37c02a5
Compare
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
📅 Suggested merge-by date: 1/31/2025 |
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Reminder: This pull request has a merge-by date coming up within the next 24 hours. Please review this PR as soon as possible. @t1m0thyj @zFernand0 @awharn @traeok @jace-roell @ATorrise @adam-wolfe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Signed-off-by: Pujal Gandhi <71276682+pujal0909@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functionality LGTM! 😋
Just one small snapshot update needed
npx jest packages/zosfiles/__tests__/__unit__/utils/ZosFilesUtils.unit.test.ts -u
🙏
...__/zosfiles/__integration__/copy/ds/__snapshots__/cli.files.copy.ds.integration.test.ts.snap
Show resolved
Hide resolved
packages/imperative/src/utilities/__tests__/DeferredPromise.unit.test.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com> Signed-off-by: Pujal Gandhi <71276682+pujal0909@users.noreply.github.com>
Co-authored-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com> Signed-off-by: Pujal Gandhi <71276682+pujal0909@users.noreply.github.com>
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 😋
Thanks for addressing the comments so quickly 🙏
Just one snapshot missing (I think)
npx jest packages/cli/__tests__/zosfiles/__integration__/copy/ds/cli.files.copy.ds.integration.test.ts -u
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com>
Thanks for fixing the snapshots. 🥳 |
Quality Gate passedIssues Measures |
}, | ||
{ | ||
name: "safe-replace", | ||
aliases: ["safe-rep", "--sr"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the alias should be sr
, not --sr
.
What It Does
#2369
Added a new --safe-replace (--safe-rep) option to the copy command that prompts users to confirm whether they want to overwrite the contents of the target data set.
Also, made a small format fix on the DeferredPromise.ts and DeferredPromise.unit.test files.
How to Test
Use the --safe-replace flag with the copy command. A prompt will appear, where you can respond with "y/N".
zowe zos-files copy ds "data-set1" "data-set2" --safe-replace
Review Checklist
I certify that I have:
Additional Comments