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

Refactor Versioning apis and UIs #2097

Merged
merged 2 commits into from
May 9, 2024
Merged

Conversation

Alex-Tideman
Copy link
Contributor

@Alex-Tideman Alex-Tideman commented May 8, 2024

Description & motivation 💭

This simplifies how we fetch and display versioning info. Now only the /workers and /task-queues/{queue} pages will fetch the versioning rules and compatibility. If either or both fail, show WorkerTable.

/workers will check if the workflow is using versioning before fetching the rules and compatibilities.
/task-queues/{queue} will fetch both always.

Both the rules and compatibility apis will swallow any errors and return undefined if they fail.

The Workflow Header will only show current BuildId of the workflow if using versioning.

NOTE: Rules api will always fail right now in OSS.

Screenshots (if applicable) 📸

Screen Shot 2024-05-08 at 2 13 44 PM Screen Shot 2024-05-08 at 2 13 54 PM Screen Shot 2024-05-08 at 2 14 06 PM Screen Shot 2024-05-08 at 2 14 18 PM Screen Shot 2024-05-08 at 2 14 29 PM

Design Considerations 🎨

Testing 🧪

How was this tested 👻

  • Manual testing
  • E2E tests added
  • Unit tests added

Steps for others to test: 🚶🏽‍♂️🚶🏽‍♀️

Checklists

Draft Checklist

Merge Checklist

Issue(s) closed

Docs

Any docs updates needed?

@Alex-Tideman Alex-Tideman requested review from stevekinney, rossedfort and a team as code owners May 8, 2024 18:51
Copy link

vercel bot commented May 8, 2024

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

Name Status Preview Comments Updated (UTC)
holocene ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 8, 2024 7:16pm

$: ({ queue: taskQueue, namespace } = $page.params);
</script>

{#await getPollers({ queue: taskQueue, namespace }) then workers}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only thought is if we want some kind of loading state here?

@Alex-Tideman Alex-Tideman merged commit beaeec1 into main May 9, 2024
10 checks passed
@Alex-Tideman Alex-Tideman deleted the reachability-api-refactor branch May 9, 2024 18:00
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.

2 participants