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

[v3] Zos files attributes #2319

Merged
merged 17 commits into from
Oct 28, 2024
Merged

[v3] Zos files attributes #2319

merged 17 commits into from
Oct 28, 2024

Conversation

jace-roell
Copy link
Contributor

@jace-roell jace-roell commented Oct 23, 2024

What It Does
Added optional --attributes flag to zowe zos-files upload file-to-uss to allow passing a .zosattributes file path for upload encoding format.

Review Checklist
I certify that I have:

Signed-off-by: jace-roell <jace.roell@hotmail.com>
Signed-off-by: jace-roell <jace.roell@hotmail.com>
@jace-roell jace-roell self-assigned this Oct 23, 2024
@jace-roell jace-roell linked an issue Oct 23, 2024 that may be closed by this pull request
Signed-off-by: jace-roell <jace.roell@hotmail.com>
Signed-off-by: jace-roell <jace.roell@hotmail.com>
Copy link

codecov bot commented Oct 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.10%. Comparing base (9ad04c4) to head (761d960).
Report is 20 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff            @@
##           master    #2319    +/-   ##
========================================
  Coverage   91.10%   91.10%            
========================================
  Files         628      628            
  Lines       17887    17891     +4     
  Branches     3736     3844   +108     
========================================
+ Hits        16296    16300     +4     
  Misses       1590     1590            
  Partials        1        1            

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

Signed-off-by: jace-roell <jace.roell@hotmail.com>
Signed-off-by: jace-roell <jace.roell@hotmail.com>
Signed-off-by: jace-roell <jace.roell@hotmail.com>
Signed-off-by: jace-roell <jace.roell@hotmail.com>
Signed-off-by: jace-roell <jace.roell@hotmail.com>
Signed-off-by: jace-roell <jace.roell@hotmail.com>
Signed-off-by: jace-roell <jace.roell@hotmail.com>
@jace-roell jace-roell marked this pull request as ready for review October 25, 2024 13:41
Signed-off-by: jace-roell <jace.roell@hotmail.com>
Signed-off-by: jace-roell <jace.roell@hotmail.com>
@jace-roell jace-roell requested a review from awharn October 25, 2024 14:54
@adam-wolfe
Copy link
Contributor

This seems to be working as expected. I'm wondering if we should also add this option for zowe files dl uss-file as well. That could be a separate pull request, though.

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 a few comments that may help for testing and such 😋

…e -> public function signature

Signed-off-by: jace-roell <jace.roell@hotmail.com>
Signed-off-by: jace-roell <jace.roell@hotmail.com>
@jace-roell jace-roell requested a review from zFernand0 October 28, 2024 16:00
@jace-roell jace-roell dismissed zFernand0’s stale review October 28, 2024 16:00

resolved, ready for re-review

Copy link

sonarcloud bot commented Oct 28, 2024

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! 😋

Tested and seems to work just fine for a single file 🙏

Comment on lines -2 to +10
* This program and the accompanying materials are made available under the terms of the
* Eclipse Public License v2.0 which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-v20.html
*
* SPDX-License-Identifier: EPL-2.0
*
* Copyright Contributors to the Zowe Project.
*
*/
* This program and the accompanying materials are made available under the terms of the
* Eclipse Public License v2.0 which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-v20.html
*
* SPDX-License-Identifier: EPL-2.0
*
* Copyright Contributors to the Zowe Project.
*
*/
Copy link
Member

Choose a reason for hiding this comment

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

curious how this happens since running npm run build seems to take those extra spaces away 🤔

This makes me wonder if we should implement prettier (or similar tools) as pre-commit hooks (like husky) 😋

👀 @t1m0thyj, any thoughts?

Copy link
Member

Choose a reason for hiding this comment

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

Not saying that this needs to be updated as part of this PR 😋

@zFernand0
Copy link
Member

Since there are no outstanding comments pending for changes, it seems that this PR can be merged as-is 🥳

Thanks for all the great work on this 🥳

@zFernand0 zFernand0 merged commit 2a2ba4b into master Oct 28, 2024
19 checks passed
@zFernand0 zFernand0 deleted the zos-files-attributes branch October 28, 2024 18:44
@zFernand0 zFernand0 added the release-minor Indicates a minor feature has been added label Oct 28, 2024
Copy link

Release succeeded for the master branch. 🎉

The following packages have been published:

  • npm: @zowe/zos-files-for-zowe-sdk@8.4.0
  • npm: @zowe/zos-workflows-for-zowe-sdk@8.4.0
  • npm: @zowe/zos-jobs-for-zowe-sdk@8.4.0
  • npm: @zowe/cli@8.4.0

Powered by Octorelease 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-minor Indicates a minor feature has been added released
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

Add --attributes flag to zowe zos-files upload file-to-uss
6 participants