8000 Show none for next retry for canceled pending activities by laurakwhit · Pull Request #1343 · temporalio/ui · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Show none for next retry for canceled pending activities #1343

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

Merged
merged 2 commits into from
May 8, 2023

Conversation

laurakwhit
Copy link
Contributor

Description & motivation 💭

On canceled pending activities, the time for Next Retry is negative. This PR make it so it shows None instead.

Screenshots (if applicable) 📸

Screenshot 2023-05-02 at 4 41 24 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?

@vercel
Copy link
vercel bot commented May 3, 2023

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
holocene ⬜️ Ignored (Inspect) May 8, 2023 5:46pm

export const toTimeDifference = (date: unknown, now = Date.now()): string => {
import type { Timestamp } from '$lib/types';

export const toTimeDifference = (date: Timestamp, now = Date.now()): string => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe this function takes an additional argument for what to display if it's <= 0 and maybe we default to "None".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a negativeDefault to toTimeDifference

@laurakwhit laurakwhit marked this pull request as ready for review May 8, 2023 17:46
@laurakwhit laurakwhit requested review from Alex-Tideman, rossedfort and a team as code owners May 8, 2023 17:46
@laurakwhit laurakwhit merged commit ed7a1f6 into main May 8, 2023
@laurakwhit laurakwhit deleted the display-none-for-next-retry branch May 8, 2023 19:59
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
0