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 error when listing ds members that include '"' #1753

Merged
merged 2 commits into from
Jul 21, 2023

Conversation

t1m0thyj
Copy link
Member

What It Does
Fixes a bug in the implementation of #1730 - error when listing data set members that include double quote in the name.

How to Test
There isn't really a way to test the changes manually. The error is only reproducible in the unit test "should list members from given data set that contains a member with an invalid name" which generates random member names to test with. The member name that was previously failing the test is XK"¶J9 ^, and I've verified that it now passes with this member name.

Review Checklist
I certify that I have:

Additional Comments

Signed-off-by: Timothy Johnson <timothy.johnson@broadcom.com>
Signed-off-by: Timothy Johnson <timothy.johnson@broadcom.com>
@codecov
Copy link

codecov bot commented Jul 20, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (48bb5cc) 92.79% compared to head (85acaf0) 92.79%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1753   +/-   ##
=======================================
  Coverage   92.79%   92.79%           
=======================================
  Files         422      422           
  Lines        7165     7165           
  Branches     1309     1309           
=======================================
  Hits         6649     6649           
  Misses        515      515           
  Partials        1        1           
Impacted Files Coverage Δ
packages/cli/src/zosfiles/edit/Edit.utils.ts 90.07% <100.00%> (ø)
packages/zosfiles/src/methods/list/List.ts 93.40% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

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 @t1m0thyj

@sonarcloud
Copy link

sonarcloud bot commented Jul 20, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@@ -135,7 +135,7 @@ export class EditUtilities {
input = await CliUtils.readPrompt(TextUtils.chalk.green(promptText));
}
while (input != null && input.toLowerCase() != 'y' && input.toLowerCase() != 'n');
if (input === null) {
if (input == null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

😅

@t1m0thyj t1m0thyj merged commit 889411a into master Jul 21, 2023
19 of 20 checks passed
@t1m0thyj t1m0thyj deleted the fix/dsname-control-chars3 branch July 21, 2023 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants