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

action tasks fire against the correct task group in some cases #6951

Open
bhearsum opened this issue Apr 3, 2024 · 0 comments
Open

action tasks fire against the correct task group in some cases #6951

bhearsum opened this issue Apr 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@bhearsum
Copy link
Contributor

bhearsum commented Apr 3, 2024

Over in mozilla/firefox-translations-training#250 we're working on ensuring that action tasks work when fired from a task group created by another action task. (In this case, we mostly care about "Cancel All", but the same issue occurs for other actions.)

When we follow these steps:

  • Go to decision task group
  • Initiate a Train action (this creates a new task group with a bunch of tasks)
  • Navigate to one of the Tasks created from it
  • Go to that task's group
  • Use "Cancel All" from there

...the "Cancel All" action ends up firing against the original decision task group instead of the new task group. If you refresh the page before firing the action, it runs correctly against the new task group.

This suggests to me that there's some data not being propgated or updated correctly, most likely when navigating from the Train action to one of the tasks it creates, or from there to the task group view.

I spent some time in the React Dev Tools and couldn't find an obvious cause: all of the props in the TaskGroup view seemed to be correct, although I am far from an expert here.

I wasn't able to dig into the graphql queries at all - I'm suspicious that we may not be firing the same queries originally as we do when refreshing the task group view though.

@bhearsum bhearsum added the bug Something isn't working label Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant