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

[v3] Plugin registry field #2189

Merged
merged 28 commits into from
Jul 18, 2024
Merged

[v3] Plugin registry field #2189

merged 28 commits into from
Jul 18, 2024

Conversation

jace-roell
Copy link
Contributor

What It Does

  • Resolves bug that resulted in each plugin to have identical public registries regardless of actual installation location/reference
  • Resolves bug that resulted in every plugin to have the same registry as the first if multiple were installed in the same command

Review Checklist
I certify that I have:

@jace-roell jace-roell changed the base branch from master to next July 2, 2024 14:07
Copy link

codecov bot commented Jul 2, 2024

Codecov Report

Attention: Patch coverage is 92.13483% with 7 lines in your changes missing coverage. Please review.

Project coverage is 91.09%. Comparing base (8cb0253) to head (570b713).
Report is 2 commits behind head on next.

Files Patch % Lines
...erative/src/plugins/cmd/install/install.handler.ts 93.84% 4 Missing ⚠️
...rc/imperative/src/plugins/cmd/list/list.handler.ts 66.66% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             next    #2189   +/-   ##
=======================================
  Coverage   91.08%   91.09%           
=======================================
  Files         632      632           
  Lines       18007    18048   +41     
  Branches     3802     3856   +54     
=======================================
+ Hits        16402    16440   +38     
- Misses       1604     1607    +3     
  Partials        1        1           

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

@jace-roell jace-roell linked an issue Jul 2, 2024 that may be closed by this pull request
@jace-roell jace-roell changed the title Plugin registry field [v3] Plugin registry field Jul 2, 2024
Signed-off-by: jace-roell <[email protected]>
Signed-off-by: jace-roell <[email protected]>
Signed-off-by: jace-roell <[email protected]>
@jace-roell jace-roell requested a review from zFernand0 July 2, 2024 15:32
jace-roell and others added 2 commits July 2, 2024 13:07
@jace-roell jace-roell marked this pull request as draft July 2, 2024 17:30
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.

left a small comment with the area where we may need to make changes in order to fix the last few tests 😋

@jace-roell jace-roell marked this pull request as ready for review July 8, 2024 18:15
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.

Looks pretty good, thanks @jace-roell!

Left a few comments that are optional, will approve after testing the changes 🙂

@jace-roell jace-roell requested a review from t1m0thyj July 11, 2024 14:08
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.

After updating from Zowe V2 to this branch, when running zowe plugins list I see location: undefined for all pre-existing plug-ins.

Discussed with @zFernand0:

we could read the existing plugins.json file and if it has the registry property, we can print that value as location in the zowe plugins list command (with a small warning)

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.

As Timothy mentioned, we would want to make sure that these changes are backwards compatible with V2 😋

The functionality looks great though 😋

@traeok
Copy link
Member

traeok commented Jul 12, 2024

Running into the same issue with registry: undefined for pre-existing plug-ins.
Aside from that functionality LGTM, will approve once addressed 😋

…ns that were carried over to v3. User will now recieve a warning in plugin list but will still display the registry value

Signed-off-by: jace-roell <[email protected]>
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.

I'm no longer seeing an undefined registry for pre-existing plugins. Thanks for addressing that 👍


Now that I am seeing the intended behavior for pre-existing plugins, I am wondering if it would be more readable to display a single error at the bottom of the output, and add a "symbol/character" at the end of each applicable registry?

For example, this is how it looks now with a couple plugins:
image

Users with several Zowe plugins might be caught off guard by numerous pre-existing plugin warnings that show after upgrading to v3.

Here's how that above idea could look in the command output:
image

This is only a suggestion though, not requesting changes here. I think it looks ready to merge as-is 😋

LGTM, thanks @jace-roell! Will re-approve once failing integration tests are resolved

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.

Several integration tests are failing in GitHub workflows. Could you revert changes to the snapshot files in this PR? I don't believe they should have changed at all, unless there are any related to zowe plugins commands.

I like the suggestion from @traeok to show a single warning at the end of output but agree it's not a required change. 😋

@traeok traeok self-requested a review July 15, 2024 14:24
…s versions that were carried over to v3. User will now recieve a warning in plugin list but will still display the registry value"

This reverts commit b1ac4ec.
@jace-roell jace-roell force-pushed the plugin-registry-field branch from 82dbb3c to 809ba84 Compare July 16, 2024 15:44
@jace-roell jace-roell requested a review from t1m0thyj July 16, 2024 15:46
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.

Latest changes LGTM, thanks Jace

Signed-off-by: jace-roell <[email protected]>
Signed-off-by: jace-roell <[email protected]>
Copy link

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 @jace-roell!

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! 😋


image

@zFernand0 zFernand0 merged commit baabf51 into next Jul 18, 2024
19 checks passed
@zFernand0 zFernand0 deleted the plugin-registry-field branch July 18, 2024 12:21
Copy link

Release succeeded for the next 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
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

zowe plugins list registry qualification
6 participants