Skip to content

Conversation

@aadityasinha-dotcom
Copy link
Contributor

@aadityasinha-dotcom aadityasinha-dotcom commented Sep 11, 2025

What It Does

Resolves #357

How to Test

Review Checklist
I certify that I have:

Additional Comments

@github-project-automation github-project-automation bot moved this to New Issues in Zowe CLI Squad Sep 11, 2025
@zowe-robot zowe-robot moved this from New Issues to Review/QA in Zowe CLI Squad Sep 11, 2025
@JTonda JTonda requested a review from t1m0thyj September 15, 2025 15:07
@t1m0thyj t1m0thyj changed the title Replaced commentjson with json5 to remove block comments Replaced commentjson with json5 to support block comments Sep 17, 2025
Copy link
Member

@t1m0thyj t1m0thyj left a comment

Choose a reason for hiding this comment

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

@aadityasinha-dotcom Thanks for your contribution!
Could you please add a unit test to validate that config files containing block comments can be loaded?

Also please replace the commentjson dependency in these places:

commentjson

commentjson==0.9.0

"commentjson~=0.9.0",

Copy link
Member

@t1m0thyj t1m0thyj left a comment

Choose a reason for hiding this comment

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

Sorry, meant to request changes - see comment above

Copy link
Member

@t1m0thyj t1m0thyj left a comment

Choose a reason for hiding this comment

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

@aadityasinha-dotcom Thanks for updating references to the dependency 😁

Please add a unit test to validate that config files containing block comments can be loaded.

aadityasinha-dotcom and others added 5 commits October 17, 2025 20:59
Co-authored-by: Timothy Johnson <[email protected]>
Signed-off-by: Aaditya Sinha <[email protected]>
Signed-off-by: aadityasinha-dotcom <[email protected]>
Signed-off-by: aadityasinha-dotcom <[email protected]>

self.assertEqual(str(actual_info.exception), str(expected_info.exception))

def test_validate_config_json_with_block_comments(self):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hello, sorry for taking so much time 😓, I have added the unit test to load and validate config json with block comments

Signed-off-by: Fernando Rijo Cedeno <[email protected]>
@zFernand0 zFernand0 self-requested a review October 27, 2025 14:35
@codecov
Copy link

codecov bot commented Oct 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.86%. Comparing base (091bb7c) to head (c3f680d).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #374   +/-   ##
=======================================
  Coverage   81.86%   81.86%           
=======================================
  Files          48       48           
  Lines        2768     2768           
=======================================
  Hits         2266     2266           
  Misses        502      502           
Flag Coverage Δ
unittests 81.86% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Signed-off-by: aadityasinha-dotcom <[email protected]>
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 dismissed t1m0thyj’s stale review October 27, 2025 17:49

Requested changes implemented! 😋

Co-authored-by: Fernando Rijo Cedeno <[email protected]>
Signed-off-by: Aaditya Sinha <[email protected]>
Copy link
Member

@t1m0thyj t1m0thyj 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 @aadityasinha-dotcom!

@zFernand0 zFernand0 merged commit 822d5b1 into zowe:main Oct 27, 2025
18 checks passed
@github-project-automation github-project-automation bot moved this from Review/QA to Closed in Zowe CLI Squad Oct 27, 2025
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.

commentjson does not support block comments (/* comment */)

4 participants