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

UX: How to handle the deletion of default profiles? #3039

Closed
zFernand0 opened this issue Aug 6, 2024 · 2 comments
Closed

UX: How to handle the deletion of default profiles? #3039

zFernand0 opened this issue Aug 6, 2024 · 2 comments
Labels
enhancement New feature or request priority-low Legit issue but cosmetic or nice-to-have question Further information is requested UX

Comments

@zFernand0
Copy link
Member

After the implementation of #3037 is complete, we may need to decide what to do when profiles are deleted.

Here are some options:

  • Leave the deleted profile set as default (i.e. do nothing)
  • Set the default profile to undefined or null
  • Prompt the user for a new default profile of that type (zosmf, zftp, ...)

Please not that there may be nested profile which also happen to be defaults.

Expand this section to see an example config file
{
    "$schema": "./zowe.schema.json",
    "profiles": {
        "LPAR1": {
            "type": "zosmf",
            "properties": {
                "host": "my.company.net",
                "port": 443
            },
            "profiles": {
                "zftp": {
                    "type": "zftp",
                    "properties": {
                        "port": 21
                    }
                }
            },
            "secure": []
        },
        "base": {
            "type": "base",
            "properties": {},
            "secure": [
                "user",
                "password"
            ]
        }
    },
    "defaults": {
        "zosmf": "LPAR1",
        "zftp": "LPAR1.zftp",
        "base": "base"
    },
    "autoStore": true
}

Created a quick PoC of how the option could work if we decide to keep it: feat/delete-v2-profiles
delete-profiles-v2

Originally posted by @t1m0thyj in #3037 (comment)

Copy link

github-actions bot commented Aug 6, 2024

Thank you for raising this enhancement request.
The community has 90 days to vote on it.
If the enhancement receives at least 10 upvotes, it is added to our development backlog.
If it receives fewer votes, the issue is closed.

@zFernand0 zFernand0 added the question Further information is requested label Aug 6, 2024
@zFernand0 zFernand0 changed the title UX: How to handle the deletion of default profiles profiles UX: How to handle the deletion of default profiles profiles? Aug 6, 2024
@zFernand0 zFernand0 changed the title UX: How to handle the deletion of default profiles profiles? UX: How to handle the deletion of default profiles? Aug 6, 2024
@JTonda JTonda added the priority-low Legit issue but cosmetic or nice-to-have label Aug 8, 2024
@zowe-robot zowe-robot moved this from New Issues to Low Priority in Zowe Explorer for VS Code Aug 8, 2024
@t1m0thyj
Copy link
Member

No longer applicable since we decided to remove the Delete Profile option from quickpick.

We should consider these options when creating a visual config editor 😋 #3336

@t1m0thyj t1m0thyj closed this as not planned Won't fix, can't repro, duplicate, stale Dec 23, 2024
@github-project-automation github-project-automation bot moved this from Low Priority to Closed in Zowe Explorer for VS Code Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority-low Legit issue but cosmetic or nice-to-have question Further information is requested UX
Projects
Status: Closed
Development

No branches or pull requests

3 participants