Skip to content

Update IBMiContent.ts to use validQsysName#2731

Merged
sebjulliand merged 1 commit into
codefori:masterfrom
Nathaniel-King-Navarrete:#2366-use-validQsysName-for-validation
Jun 17, 2025
Merged

Update IBMiContent.ts to use validQsysName#2731
sebjulliand merged 1 commit into
codefori:masterfrom
Nathaniel-King-Navarrete:#2366-use-validQsysName-for-validation

Conversation

@Nathaniel-King-Navarrete

Copy link
Copy Markdown
Contributor

Use validQsysName rather than individual checks. #2366

Changes

Removed individual checks within validateLibraryList method and changed it to IBMI.validQsysName method.

How to test this PR

I tested this change by using the Add to Library List command. I tested adding a library name of '!@#$%'.

I wasn't able to test the length > 10 case, because there is a check in code-for-ibmi.addToLibraryList for that case, before the call to validateLibraryList.

I noticed that there was some test suites that tested validateLibraryList, but I wasn't sure how to run them. Is there a way for me to call these test suites? Thanks.

Checklist

  • have tested my change
  • have created one or more test cases
  • updated relevant documentation
  • Remove any/all console.logs I added
  • have added myself to the contributors' list in CONTRIBUTING.md

Use validQsysName rather than individual checks

@sebjulliand sebjulliand left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me; good idea there!

@sebjulliand
sebjulliand merged commit 1d00df8 into codefori:master Jun 17, 2025
2 checks passed
@Nathaniel-King-Navarrete
Nathaniel-King-Navarrete deleted the #2366-use-validQsysName-for-validation branch June 20, 2025 04:48
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.

2 participants