fix(webapp): display imperative schedules without active worker deployments (#3209) - #4970
Closed
kaiizer777 wants to merge 1 commit into
Closed
kaiizer777 wants to merge 1 commit into
kaiizer777 wants to merge 1 commit into
Conversation
Contributor
|
Hi @kaiizer777, thanks for your interest in contributing! This project requires that pull request authors are vouched, and you are not in the list of vouched users. This PR will be closed automatically. See https://github.com/triggerdotdev/trigger.dev/blob/main/CONTRIBUTING.md for more details. |
Contributor
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Contributor
| vi.setConfig({ testTimeout: 60_000 }); | ||
|
|
||
| async function seedProjectWithEnv(prisma: PrismaClient, slugBase: string) { | ||
| const slug = `${slugBase}_${Math.random().toString(36).slice(2, 10)}`; |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3209
Overview
Fixes an issue where imperative schedules created out-of-band (via SDK or API) prior to any active worker deployment were invisible in the UI schedule listing, despite counting towards plan limits.
Changes
ScheduleListPresenter.server.ts:!latestWorker && filterType === "DECLARATIVE".!latestWorker, setseffectiveFilterType = "IMPERATIVE"to ensure imperative schedules associated with the environment remain queryable and visible before initial worker deployment.page = 1parameter to preventskip: NaNvalidation errors.schedulePhase: number | nullonScheduleListItemusing deterministiccalculateSchedulePhasefallback.apps/webapp/test/ScheduleListPresenter.test.ts..server-changes/imperative-schedules-ui-visibility.mduser-facing release note.✅ Checklist
Testing
apps/webapp/test/ScheduleListPresenter.test.ts.pnpm run typecheck --filter webapp(0 errors).pnpm run lint(0 errors).Changelog
Display imperative schedules created before initial deployment or worker task versioning in the schedules listing.