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

DT-1654 - add scheduled by id and scheduled start time to workflow table columns #1785

Merged
merged 2 commits into from
Jan 5, 2024

Conversation

rossedfort
Copy link
Contributor

Description & motivation 💭

Adds the TemporalScheduledById and TemporalScheduledStartTime internal search attributes to the list of available columns for the workflows summary table. Note - we should eventually refactor this table to read the internal and custom search attributes from the API and generate a list of available columns.

Screenshots (if applicable) 📸

Screenshot 2024-01-04 at 11 44 42 AM Screenshot 2024-01-04 at 11 45 00 AM

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?

Copy link

vercel bot commented Jan 4, 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 Jan 5, 2024 5:33pm

@rossedfort rossedfort requested review from laurakwhit and Alex-Tideman and removed request for stevekinney and Alex-Tideman January 4, 2024 18:45
Comment on lines +106 to +111
{workflow.searchAttributes?.indexedFields?.TemporalScheduledById ?? ''}
{:else if label === 'Scheduled Start Time'}
{@const content =
workflow.searchAttributes?.indexedFields?.TemporalScheduledStartTime}
{content && typeof content === 'string'
? formatDate(content, $timeFormat, { relative: $relativeTime })
Copy link
Contributor

Choose a reason for hiding this comment

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

Are these decoded already? I know they don't need to go to the codec server but they are payloads so need to be base64 decoded

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, they are decoded when we get them back from the server: https://github.com/temporalio/ui/blob/main/src/lib/models/workflow-execution.ts#L39

@rossedfort rossedfort merged commit 6aceea0 into main Jan 5, 2024
10 of 11 checks passed
@rossedfort rossedfort deleted the DT-1654-schedule-wf-columns branch January 5, 2024 19:12
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