Skip to content

Fix task queues fetched twice on workflow#883

Closed
laurakwhit wants to merge 2 commits intomainfrom
fix-task-queues-fetched-twice-on-workflow
Closed

Fix task queues fetched twice on workflow#883
laurakwhit wants to merge 2 commits intomainfrom
fix-task-queues-fetched-twice-on-workflow

Conversation

@laurakwhit
Copy link
Copy Markdown
Collaborator

What was changed

I've removed the <slot /> in favor of conditionally rendering different layouts based on the eventViewType. This doesn't seem like the ideal solution, as we also still need to render them under compact, feed, and json in src/routes/.../history 🤔

Why?

When a user clicks on a workflow in the workflow list and navigates to it the task-queues are fetched twice.

This is because fetchWorkflows in subscribe is being called twice in the workflow run store. This is due to the components (e.g. WorkflowHistoryFeed) being passed here (or more specifically here) rendering twice when the page is navigated to.

I don't know why they're doing that 😅 Maybe a bug? Maybe a symptom of how we're doing routes and layouts here? Will continue to investigate...

Checklist

  1. Closes: n/a

  2. How was this tested:

  • When navigating to a workflow from the workflow list, verify task-queue are fetched only once
  • Verify navigating to the following works as expected
    • history
    • history/feed
    • history/compact
    • history/json
  1. Any docs updates needed? n/a

@vercel
Copy link
Copy Markdown

vercel Bot commented Oct 14, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
holocene ✅ Ready (Inspect) Visit Preview Oct 14, 2022 at 11:13PM (UTC)
ui ✅ Ready (Inspect) Visit Preview Oct 14, 2022 at 11:13PM (UTC)

@cypress
Copy link
Copy Markdown

cypress Bot commented Oct 14, 2022



Test summary

64 4 0 0


Run details

Project Temporal UI
Status Failed
Commit 93c75926a9 ℹ️
Started Oct 14, 2022 11:14 PM
Ended Oct 14, 2022 11:20 PM
Duration 05:52 💡
OS Linux Ubuntu - 20.04
Browser Chrome 106

View run in Cypress Dashboard ➡️

Failures are unavailable for this run. For more information, see the Cypress Dashboard


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@laurakwhit
Copy link
Copy Markdown
Collaborator Author

Closing this for now. May revisit if this is still an issue after SvelteKit upgrade.

@laurakwhit laurakwhit closed this Oct 17, 2022
@laurakwhit laurakwhit deleted the fix-task-queues-fetched-twice-on-workflow branch October 18, 2022 15:38
@laurakwhit
Copy link
Copy Markdown
Collaborator Author

This has been fixed in #984 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant