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

copy dsclp command resulting in spacu attribute always being TRACK #2419

Merged
merged 13 commits into from
Jan 29, 2025

Conversation

jace-roell
Copy link
Contributor

@jace-roell jace-roell commented Jan 22, 2025

What It Does

Fixed an issue in the Copy.dataSetCrossLPAR() function where the spacu attribute of the copied data set was always set to TRK, regardless of the source data set's attributes.

How to Test

Run zowe files copy dsclp <sourceMember> <targetMember> --target-zosmf-p <profile>
Where

  • <profile> is the name of the profile for a remote LPAR (can be the same LPAR as the one being tested against)
  • <sourceMember> is a member of a data set where the dataset has a spacu attribute of CYLINDERS (default)
  • <targetMember> is the target location of the copied dataset/member

Observe that without the fix, the spacu of the copied data set will always be "TRACKS"
Observe that with the fix, the spacu of the copied data set will reflect that of the source dataset.

Review Checklist
I certify that I have:

Signed-off-by: jace-roell <[email protected]>
@jace-roell jace-roell self-assigned this Jan 22, 2025
@jace-roell jace-roell linked an issue Jan 22, 2025 that may be closed by this pull request
Copy link

codecov bot commented Jan 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.34%. Comparing base (61d2373) to head (2d40140).
Report is 15 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2419   +/-   ##
=======================================
  Coverage   91.34%   91.34%           
=======================================
  Files         639      639           
  Lines       18258    18259    +1     
  Branches     3912     3840   -72     
=======================================
+ Hits        16677    16678    +1     
  Misses       1579     1579           
  Partials        2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: jace-roell <[email protected]>
Signed-off-by: jace-roell <[email protected]>
Signed-off-by: jace-roell <[email protected]>
Signed-off-by: jace-roell <[email protected]>
@jace-roell jace-roell marked this pull request as ready for review January 27, 2025 14:34
Copy link

📅 Suggested merge-by date: 2/10/2025

Copy link
Member

@traeok traeok left a comment

Choose a reason for hiding this comment

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

Tested and LGTM, thanks Jace for the fix!

Copy link
Member

@zFernand0 zFernand0 left a comment

Choose a reason for hiding this comment

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

Functionality LGTM! 😋

Left a few comments.
Also, I'm seeing the deferredPromise license headers being updated. 😋
Feel free to address it on just one PR 😋
But I believe @pujal0909 's PR already does 😋

Copy link
Member

@zFernand0 zFernand0 left a comment

Choose a reason for hiding this comment

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

left one small comment about startsWith...
just a few more places 😋

Copy link
Member

@zFernand0 zFernand0 left a 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 feedback 🙏

Let's combine a few PRs and just have one minor release by the end of the week. 🥳

@zFernand0 zFernand0 merged commit 68e0962 into master Jan 29, 2025
22 checks passed
@zFernand0 zFernand0 deleted the copy-dsclp-spacu-track branch January 29, 2025 22:03
@zFernand0 zFernand0 added the release-current Indicates that there is no new functionality being delivered label Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-current Indicates that there is no new functionality being delivered
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

SDK: Dataset creation always uses tracks as the allocation unit
4 participants