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

Now URI encoding the region and cicsplex names #189

Merged
merged 4 commits into from
Jan 7, 2025
Merged

Conversation

enamkhan
Copy link
Contributor

@enamkhan enamkhan commented Jan 3, 2025

What It Does
Issues was caused by not encoding the # so have updated the getResourceUri method so that both the region and cicsplex names are now uri encoded.

How to Test
Created a region with a # in the name and connected with updated extension. Have also added some unit tests to cover this case.

Review Checklist
I certify that I have:

Additional Comments
Resolves #178

@codecov-commenter
Copy link

codecov-commenter commented Jan 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.76%. Comparing base (65c19a2) to head (c18d6b6).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #189   +/-   ##
=======================================
  Coverage   93.76%   93.76%           
=======================================
  Files          75       75           
  Lines         770      770           
  Branches       43       42    -1     
=======================================
  Hits          722      722           
  Misses         48       48           

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

@davenice
Copy link
Contributor

davenice commented Jan 3, 2025

Thanks Enam - one thing worth mentioning is that I have seen a customer using system groups with hashes in - system groups don't support wildcards so they made their own which they maintained manually 😬

I don't think there is a lot of support for system groups in the GUI - the main one I've seen is that if you specify a region in your config, you can specify a system group instead. I think this will work with your changes because I think the code just sees it as a region name rather than a region group - do you think we've covered all the places this might need addressing?

@enamkhan enamkhan force-pushed the uriEncodeRegionName branch from 2ac4b53 to 433f8a9 Compare January 6, 2025 12:21
Copy link
Contributor

@AndrewTwydell AndrewTwydell left a comment

Choose a reason for hiding this comment

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

Looks great - few things to look at 😄

packages/sdk/src/utils/Utils.ts Outdated Show resolved Hide resolved
packages/sdk/CHANGELOG.md Outdated Show resolved Hide resolved
packages/sdk/src/utils/Utils.ts Outdated Show resolved Hide resolved
packages/vsce/CHANGELOG.md Outdated Show resolved Hide resolved
packages/vsce/src/commands/closeLocalFileCommand.ts Outdated Show resolved Hide resolved
@enamkhan enamkhan requested a review from AndrewTwydell January 6, 2025 15:08
@enamkhan enamkhan force-pushed the uriEncodeRegionName branch from 6023da4 to e72e170 Compare January 6, 2025 16:07
Copy link
Contributor

@AndrewTwydell AndrewTwydell left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏼

@enamkhan enamkhan force-pushed the uriEncodeRegionName branch 2 times, most recently from 8cdf317 to 1ea81dc Compare January 6, 2025 16:54
@enamkhan enamkhan force-pushed the uriEncodeRegionName branch from 1ea81dc to a9a2e66 Compare January 7, 2025 11:10
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.

Overall, this LGTM! 😋

I do have one small request to keep the old CMCI.constant to avoid possible breaking changes 🙏

packages/sdk/src/constants/CicsCmci.constants.ts Outdated Show resolved Hide resolved
@enamkhan enamkhan requested a review from zFernand0 January 7, 2025 16:54
@enamkhan enamkhan force-pushed the uriEncodeRegionName branch from e312e4e to c18d6b6 Compare January 7, 2025 17:07
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! 😋

@zFernand0 zFernand0 merged commit 428012c into main Jan 7, 2025
19 checks passed
@zFernand0 zFernand0 deleted the uriEncodeRegionName branch January 7, 2025 21:09
@zFernand0 zFernand0 added the release-patch Indicates a patch to existing code has been applied label Jan 7, 2025
Copy link

github-actions bot commented Jan 7, 2025

Release succeeded for the main branch. 🎉

The following packages have been published:

Powered by Octorelease 🚀

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

Successfully merging this pull request may close these issues.

Unable to get a list of CICS objects for a CICSPlex with "#" character in the end of its name
5 participants