Always refresh worker version and user worker run lists
https://redmine.teklia.com/issues/5960
We noticed this when creating user worker runs /views/Process/WorkerRunsList.vue
, however it's possible that we have the same issue in other places where we user the workers list views/Process/Workers/List.vue
component, only we don't notice it because you don't really create worker versions manually on a worker unless you're creating a user worker run?
I'm not sure about the STR; the original Redmine issue says:
- Go to user worker runs page
- Create a new worker (with a name shared by another worker, so you have two workers listed on the left)
- Create a new worker version for this worker
- The worker version does not appear in the worker version list
- Cry very hard
- Refresh this worker version list (this means refreshing the whole page, reopening the "create a worker run" modal, and selecting the worker again in the list, as simply closing then reopening the modal does not reload the stores)
- The worker version shows up
While testing the documentation on how to create a user worker run, I had this issue with worker versions not showing up when created, but I'm not sure it's (only) related to having searched for something that makes it so that there are two workers in the sidebar (what Yoann mentioned in the issue: say you have a worker Pomme
and a worker Pommes
then if in the search bar you input Pomm
for example, then the two workers show up in the side bar, and if you create a worker version for one of them then it does not show up as it is created) because I think it happened even when I had only one (1) worker in the side bar.
I also had the case when a worker run I just created did not show up in the user worker runs list unless I refreshed the page, but I couldn't say when this happened vs when it didn't. I guess the STR would be to just try creating a bunch of user worker runs, from an existing worker, or by creating a new worker, from an existing worker version, by creating a new worker version, closing and reopening the modals etc, until you run into Problems.
:)