Skip to content

zowe-explorer-api ProfilesCache holding onto stale service profile from extenders when it is deleted from team config #2395

@FrankSu1996

Description

@FrankSu1996

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:

  1. Create a new zowe profile type using zowe-explorer-api.
  2. Create a zowe team config file if one isn't already present.
  3. Delete All instances of the new profile type from the team config file.
  4. call ProfileCache.refresh(). Despite profiles being removed from team config file, ProfilesCache will still return a reference to a profile.

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):

  • OS: Windows 11
  • Zowe Explorer Version: we are using @zowe/zowe-explorer-api@2.8.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority-mediumNot functioning - next quarter if capacity permitsseverity-mediumBug where workaround exists or that doesn't prevent the usage of Zowe. Just makes it more complex.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions