zowe / zowe-explorer-vscode

Visual Studio Code Extension for Zowe, which lets users interact with z/OS Data Sets, Unix System Services, and Jobs on a remote mainframe instance. Powered by Zowe SDKs.
Eclipse Public License 2.0
173 stars 92 forks source link

Issue when restoring archived data set from 3270 terminal after listing DS in ZE #2981

Open adam-wolfe opened 4 months ago

adam-wolfe commented 4 months ago

Describe the bug

If I list data sets in Zowe Explorer, notice that the PDS I want to see is archived, then recall the data set from a 3270 terminal, the status of the data set in Zowe Explorer does not update when I refresh the data sets tree (i.e., it continues to appear to be archived). I have to re-execute the search/filter in Zowe Explorer for the icon to update and allow me to edit the data set.

To Reproduce

  1. List data sets in Zowe Explorer
  2. Find an archived data set
  3. In a 3270 terminal, unarchive the data set
  4. Refresh the list of data sets
  5. Notice in Zowe Explorer that the data set still has the archived icon and you cannot view it
  6. Re-execute the data set search and notice that the icon has changed, and the data set can be opened.

Expected behavior

I would expect that by refreshing the list of data sets, Zowe Explorer would recognize that the data set is no longer archived.

Screenshots

Desktop (please complete the following information):

Additional context

Another quirk is that I can right click on the data set that I restored in a 3270 terminal and select "Recall Data Set", and the icon changes, but I'm still not able to view the data set.

github-actions[bot] commented 4 months ago

Thank you for creating a bug report. We will investigate the bug and evaluate its impact on the product. If you haven't already, please ensure you have provided steps to reproduce the bug and as much context as possible.

traeok commented 4 months ago

Dev note: It looks like we have logic in place to mark a dataset as archived/migrated, but we don't have any logic that removes the archived/migrated context from an existing child node when previously marked as archived.