Skip to content

Mvd 7445#118

Open
shikharka wants to merge 6 commits intov3.x/stagingfrom
MVD-7445
Open

Mvd 7445#118
shikharka wants to merge 6 commits intov3.x/stagingfrom
MVD-7445

Conversation

@shikharka
Copy link
Copy Markdown

@shikharka shikharka commented Mar 13, 2026

Proposed changes

Add get method for zoweVersion

This PR addresses Issue: MVD-7445

This PR depends upon the following PRs:
zowe/zlux-server-framework#662

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Change in a documentation
  • Refactor the code
  • Chore, repository cleanup, updates the dependencies.
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

PR Checklist

Please delete options that are not relevant.

  • If the changes in this PR are meant for the next release / mainline, this PR targets the "staging" branch.
  • My code follows the style guidelines of this project (see: Contributing guideline)
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • New and existing unit tests pass locally with my changes
  • video or image is included if visual changes are made
  • Relevant update to CHANGELOG.md
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works, or describe a test method below

Testing

Further comments

timgerstel and others added 3 commits September 29, 2025 13:40
Signed-off-by: sambashta <sambashta@rocketsoftware.com>

getZoweVersion(): Promise<string | undefined> {
return new Promise((resolve, reject) => {
this._queryServer().then(function (cache: any) {
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.

shouldnt the return be EnvironmentResponse not any?

Comment on lines +149 to +152
if (cache.zoweVersion) {
resolve(cache.zoweVersion);
} else if (cache.userEnvironment && cache.userEnvironment.zoweVersion) {
resolve(cache.userEnvironment.zoweVersion);
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.

can you explain why it would be possible to have 2 different places to check?

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.

from your other PR it looks like its never in userEnvironment.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Yes Sean, I was trying to check for optimization in my code using copilot, looks like it made changes and i missed it, removing the extra checks now

@1000TurquoisePogs
Copy link
Copy Markdown
Member

Addresses zowe/zlux#1070

sambashta added 2 commits March 20, 2026 12:12
…eVersion method

Signed-off-by: sambashta <sambashta@rocketsoftware.com>
- Added server-metadata.ts apis which doesn't require authentication
- Using the server-metadata in login.component.ts and launchbar-widget.component.ts for zoweVersion

Signed-off-by: sambashta <sambashta@rocketsoftware.com>
@pull-request-size pull-request-size bot added size/M and removed size/S labels Mar 25, 2026
@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Ready for Review

Development

Successfully merging this pull request may close these issues.

4 participants