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

Submit as JCL: check for profile before presenting quick pick #2646

Merged
merged 13 commits into from
Jan 9, 2024

Conversation

likhithanimma1
Copy link
Contributor

Proposed changes

Fixes # #2628
Since we store temp. files based on their profile, we could determine the profile without spawning a quick pick for user input.

Release Notes

Milestone:

Changelog:

Types of changes

What types of changes does your code introduce to Zowe Explorer?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Updates to Documentation or Tests (if none of the other choices apply)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This checklist will be used as reference for both the contributor and the reviewer

  • I have read the CONTRIBUTOR GUIDANCE wiki
  • PR title follows Conventional Commits Guidelines
  • PR Description is included
  • gif or screenshot is included if visual changes are made
  • yarn workspace vscode-extension-for-zowe vscode:prepublish has been executed
  • All checks have passed (DCO, Jenkins and Code Coverage)
  • I have added unit test and it is passing
  • I have added integration test and it is passing
  • There is coverage for the code that I have added
  • I have tested it manually and there are no regressions found
  • I have added necessary documentation (if appropriate)
  • Any PR dependencies have been merged and published (if appropriate)

Further comments

Signed-off-by: Likhitha Nimma <[email protected]>
Copy link

codecov bot commented Jan 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (63c9027) 93.26% compared to head (7ab45b6) 93.30%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2646      +/-   ##
==========================================
+ Coverage   93.26%   93.30%   +0.04%     
==========================================
  Files         102      102              
  Lines       10497    10503       +6     
  Branches     2245     2248       +3     
==========================================
+ Hits         9790     9800      +10     
+ Misses        706      702       -4     
  Partials        1        1              

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

Signed-off-by: Likhitha Nimma <[email protected]>
Signed-off-by: Likhitha Nimma <[email protected]>
Signed-off-by: Likhitha Nimma <[email protected]>
@JillieBeanSim JillieBeanSim added this to the v2.14.0 milestone Jan 4, 2024
Copy link
Contributor

@JillieBeanSim JillieBeanSim left a comment

Choose a reason for hiding this comment

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

This looks good for this workflow, thanks @likhithanimma1 for the update. Would you mind updating the CHANGELOG please?

Signed-off-by: Likhitha Nimma <[email protected]>
JillieBeanSim
JillieBeanSim previously approved these changes Jan 8, 2024
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.

Tested and LGTM - just noticed an outdated ESLint comment during review, will approve once removed 🙂
Thanks @likhithanimma1!

packages/zowe-explorer/src/dataset/actions.ts Outdated Show resolved Hide resolved
Signed-off-by: Likhitha Nimma <[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! 😋

Comment on lines +947 to +948
} else if (profileNamesList.length > 0) {
sessProfileName = profileNamesList[0];
Copy link
Member

Choose a reason for hiding this comment

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

This is really cool! 😋
Should we do the same for other types of profiles across Zowe Explorer?

Copy link

sonarcloud bot commented Jan 9, 2024

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

1 New issue
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@zFernand0 zFernand0 merged commit 86bdfb5 into main Jan 9, 2024
34 checks passed
@zFernand0 zFernand0 deleted the Check-for-profile branch January 9, 2024 16:08
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.

4 participants