-
Notifications
You must be signed in to change notification settings - Fork 99
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
zowe-explorer-api ProfilesCache holding onto stale service profile from extenders when it is deleted from team config #2395
Comments
Thank you for creating a bug report. |
Hey @FrankSu1996 would you mind letting us know the version of the Zowe Explorer API you experience the issue and when deleting the profile manually from the team config file is that also being removed from the defaults if labeled as default in the config file? Thanks |
currently using @zowe/zowe-explorer-api v2.12.0. It doesn't matter whether or not I remove the default line in the config file. The bug occurs regardless. |
Hi @FrankSu1996, I ran some tests with the FTP extension to reproduce this issue. For context, I am using the latest version of Zowe Explorer, Zowe Explorer API, and the FTP extension (v2.15.1). I believe this is a side effect of using the To test, I registered a test command in the FTP extension to print profiles, which grabs the I noticed that if I skip the usage of Click to toggle screenshotThe first printed output contains 2 zFTP profiles, while the second output does not. However, when I use Can you confirm that removing the call to |
[ Taking out ProfilesCache.refresh() does not solve the issue. I attached a couple of screen recordings, one where I comment out the call to refresh(). In both cases, I'm logging out both ProfilesCache.allProfiles and ProfilesCache.getProfiles("zOpenDebug"). The results are pretty interesting. Without Refresh: With Refresh: |
Thanks for the detailed follow-up. I looked back at my previous examples and noticed that |
Thanks for the update, appreciate you looking into this. For us, it's important for us that ProfilesCache keeps the ability for clients to be able to refresh. |
Closed as completed in #2795 |
We are currently contributing our own zowe service profiles (type zOpenDebug) using zowe-explorer-api. Our code has it's own watchers set up on the team config files. However, when all profiles of type zOpenDebug are removed from the team config file, the ZE-api ProfilesCache will still contain the removed profile. Note that aside from this case, the ProfilesCache seems to work as expected when multiple zOpenDebug profiles are added/deleted. It's only when they are ALL removed, that this bug occurs.
Steps to reproduce the behavior:
Expected behavior
The ProfileCache should return an empty list for the new zowe profile type if they are all removed from the team config
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: