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

Update global config when a new extender registers with Zowe Explorer #1642

Open
JillieBeanSim opened this issue Jan 25, 2022 · 3 comments
Open
Assignees
Labels
On-Hold priority-medium Not functioning - next quarter if capacity permits

Comments

@JillieBeanSim
Copy link
Contributor

JillieBeanSim commented Jan 25, 2022

Describe the solution you'd like

When a new extender registers with Zowe Explorer we would like to have the global config schema automatically update.

Per @MikeBauerCA:
This direction is similar to how CLI handles it. If a CLI plug-in is installed, only the global schema is updated. Project schemas must be updated via a separate command (either re-init the config or use the zowe config update-schemas command)


We can continue to discuss if we would want to allow the user to update the global config file with new type as well as team/user config files some way through the GUI.

OR

Automatically update the global config file with the new type and offer the user a way through the GUI for team/user config and schema

@JillieBeanSim JillieBeanSim added enhancement New feature or request vNext labels Jan 25, 2022
@github-actions
Copy link

Thank you for raising this issue.
The community has 30 days to upvote 👍 the issue.
If it receives 10 upvotes, we will move it to our backlog. If not, we will close it.

@crawr
Copy link
Contributor

crawr commented Jan 26, 2022

Research needed: how this update to the schema file on disk will affect CLI plugin. There might also be cases where the extension does not have corresponding CLI schema

v2: nice to have

@JillieBeanSim JillieBeanSim self-assigned this Feb 8, 2022
@JTonda JTonda added the Zowe V2 label Mar 15, 2022
@rudyflores rudyflores linked a pull request Apr 12, 2022 that will close this issue
16 tasks
@JTonda JTonda added the On-Hold label Apr 14, 2022
@zFernand0 zFernand0 mentioned this issue Apr 26, 2022
55 tasks
@zFernand0 zFernand0 changed the title [next] Update global config when a new extender registers with Zowe Explorer Update global config when a new extender registers with Zowe Explorer Apr 28, 2022
@zFernand0 zFernand0 added 22PI2 and removed 22PI1 labels May 5, 2022
@zFernand0
Copy link
Member

zFernand0 commented May 17, 2022

Hey @zowe/zowe-cli-administrators,
Here is a list of possible requirements based on recent discussions:

  • Allow schema to be updated simultaneously by different clients
  • Avoid replacing global schema with just the contents of ~/.zowe/plugins/plugins.json
    • ZE may need to maintain a list of registered/installed extensions
      • Possibly enhance the plugins.json file to allow VSCEs to be added, OR
      • Add the ability for VSCEs to create and maintain an equivalent extensions.json file
  • Handle possible differences between CLI plugin schema and VSCE schema definitions
    • Example: ftp-for-cli may be different than what's expected by ftp-for-ze
  • No need to add the ability to update project schema files at this time.

Zowe Explorer will need to decide when to call this API based on the design outcome.
Here are some of the possibilities discussed:

  • On ZE activation:
    • When all extender VSCEs (e.g. zFTP, CICS, ...) will register asynchronously
  • On first use:
    • When the user adds a profile of that type (if there are no extender profiles added yet)
    • When the user right-clicks and Update Profile of that type
  • On demand:
    • When the user runs a command (via the command palette)

Note:


There was also interest expressed in config init customization. Issues below:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
On-Hold priority-medium Not functioning - next quarter if capacity permits
Projects
Status: Medium Priority
Development

Successfully merging a pull request may close this issue.

5 participants