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 api for uploading buffer to uss file #2089

Merged
merged 6 commits into from
Mar 13, 2024
Merged

Conversation

t1m0thyj
Copy link
Member

What It Does

  • LTS Breaking: Changed return type of Upload.bufferToUssFile to return IZosFilesResponse object instead of string
  • BugFix: Fixed Upload.bufferToUssFile not normalizing new lines when uploading plain text

How to Test
Zowe CLI doesn't call this API so no easy way to test it there. However we should be able to test it in FileSystemProvider PR for Zowe Explorer 😋 zowe/zowe-explorer-vscode#2777

Review Checklist
I certify that I have:

Additional Comments

Copy link

codecov bot commented Mar 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.93%. Comparing base (152262f) to head (ecb6b09).
Report is 2 commits behind head on next.

Additional details and impacted files
@@           Coverage Diff           @@
##             next    #2089   +/-   ##
=======================================
  Coverage   90.93%   90.93%           
=======================================
  Files         616      616           
  Lines       17377    17386    +9     
  Branches     3676     3579   -97     
=======================================
+ Hits        15801    15810    +9     
  Misses       1575     1575           
  Partials        1        1           

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

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.

LGTM, thanks for these fixes @t1m0thyj 🙂
I noticed the changelog stage is failing, but everything else looks fine. I'll re-approve if needed

@awharn
Copy link
Member

awharn commented Mar 13, 2024

Remember to update the breaking change document with the renamed input. :)

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.

changes LGTM! 😋

Copy link

sonarcloud bot commented Mar 13, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
20.4% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@@ -2,6 +2,11 @@

All notable changes to the Zowe z/OS files SDK package will be documented in this file.

## Recent Changes

- LTS Breaking: Changed return type of `Upload.bufferToUssFile` to return `IZosFilesResponse` object instead of string. [#2089](https://github.com/zowe/zowe-cli/pull/2089)
Copy link
Member

Choose a reason for hiding this comment

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

Although it is not related to this pull request itself, you should update the V3 breaking changes document with this item.

@zFernand0 zFernand0 merged commit 4e08fa7 into next Mar 13, 2024
43 of 44 checks passed
@zFernand0 zFernand0 deleted the fix/upload-buffer-to-uss-api branch March 13, 2024 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

5 participants