René's URL Explorer Experiment


Title: feat(api): workflow trigger health and enablement through the v2 API by waleedlatif1 · Pull Request #9853 · simstudioai/sim · GitHub

Open Graph Title: feat(api): workflow trigger health and enablement through the v2 API by waleedlatif1 · Pull Request #9853 · simstudioai/sim

X Title: feat(api): workflow trigger health and enablement through the v2 API by waleedlatif1 · Pull Request #9853 · simstudioai/sim

Description: Summary Adds GET /api/v2/workflows/{workflowId}/triggers: every trigger the live deployment serves (schedules, polling, internal event, and push webhook triggers) with kind, enabled, status, failure count, last failure, and next/last run plus cron for schedules Adds PATCH /api/v2/workflows/{workflowId}/triggers/{blockId} with { enabled }: enabling resets failure counters, re-arms nextRunAt, and clears polling backoff; disabling stops Sim accepting the trigger without tearing down the provider registration. A disable lasts until the next deploy, the same way a redeploy already clears an auto-disabled trigger Liveness matches delivery exactly: v2 schedules use the dispatcher's active-version test, webhooks the routing/poller predicate. Writes are conditional updates that can never revive a retired, archived, or older-version row, and a block with several live webhook rows switches them together Moves the internal schedule reactivate/disable and webhook enable routes onto the same use case. Statuses, messages, and response bodies are unchanged, except cross-tenant callers now get a concealed 404, a non-live row is a 404 instead of being toggled, and webhook toggles now write a webhook.updated audit entry Fixes an auto-disabled webhook silently disappearing from /deployment's view of the world (it now shows up in /triggers as disabled), and makes polling auto-disable a single conditional update so an enable can't be switched straight back off triggers.webhook permission-group gating on enable is preserved; CLI workflows triggers list|update; regenerated OpenAPI, CLI, MCP operations, and route table Type of Change New feature Testing apps/sim/lib/workflows/application/triggers.integration.ts (14 passing) against PostgreSQL: live-row listing, write-time liveness refusal, counter/backoff reset, scalar provider configs, versionless schedules, multi-row blocks, cron validation, lock, role and tenant boundaries, capability gate, no-op audit, poll auto-disable threshold; reverting the liveness predicate, capability gate, no-op detection, counter reset, dispatcher predicate, and config guard each turns its test red operations.test.ts, list-pagination.test.ts, copilot-route-inventory.test.ts tsc on apps/sim; check:openapi, cli-api, cli-docs, mcp-operations, v2-route-table, route-verbs, permission-group-enforcement, capability-subject, principal-kind-parity, api-validation:strict, source-conventions, test-patterns, boundaries; biome Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing (new tests pass the test-audit authoring gate) No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: Summary Adds GET /api/v2/workflows/{workflowId}/triggers: every trigger the live deployment serves (schedules, polling, internal event, and push webhook triggers) with kind, enabled, status, failu...

X Description: Summary Adds GET /api/v2/workflows/{workflowId}/triggers: every trigger the live deployment serves (schedules, polling, internal event, and push webhook triggers) with kind, enabled, status, failu...

Opengraph URL: https://github.com/simstudioai/sim/pull/9853

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:54072ad2-2103-0b37-33f9-0461166ab8ec
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8A30:210607:1F2C:28FF:6AFB63EE
html-safe-nonce6a23f5caacc78036368f9796bdb60a8e66e556ff1414ee02a5361223b59f93be
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTMwOjIxMDYwNzoxRjJDOjI4RkY6NkFGQjYzRUUiLCJ2aXNpdG9yX2lkIjoiNTcxNzg0MzQ0NDE2ODg3NzAzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac9f086fa3e479ca0329e2412bff49e3824093dbc4e2dd4695b4d97c47beb6c014
hovercard-subject-tagpull_request:5249038713
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/9853/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary Adds GET /api/v2/workflows/{workflowId}/triggers: every trigger the live deployment serves (schedules, polling, internal event, and push webhook triggers) with kind, enabled, status, failu...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release59ef97164c52cf59bd10558ddec9c4f482763988
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/9853/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F9853%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F9853%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/9853/files
Reloadhttps://github.com/simstudioai/sim/pull/9853/files
Reloadhttps://github.com/simstudioai/sim/pull/9853/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests197 (197)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
feat/v2-workflow-trigger-healthhttps://github.com/simstudioai/sim/tree/feat/v2-workflow-trigger-health
Conversation 17 https://github.com/simstudioai/sim/pull/9853
Commits 9 https://github.com/simstudioai/sim/pull/9853/commits
Checks 81 https://github.com/simstudioai/sim/pull/9853/checks
Files changed https://github.com/simstudioai/sim/pull/9853/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9853/files
feat(api): workflow trigger health and enablement through the v2 API https://github.com/simstudioai/sim/pull/9853/files#top
Show all changes 9 commits https://github.com/simstudioai/sim/pull/9853/files
72bd2fe feat(api): v2 workflow trigger health list and enablement waleedlatif1 Nov 10, 2026 https://github.com/simstudioai/sim/pull/9853/commits/72bd2feec893af9319390b21f88ead7f9d1e7f08
ac03d72 refactor(triggers): route legacy schedule and webhook toggles through… waleedlatif1 Nov 10, 2026 https://github.com/simstudioai/sim/pull/9853/commits/ac03d72a62ed2e71d6f4b189d485fd19b5614bb9
685fea3 test(workflows): integration suite for trigger health and enablement waleedlatif1 Nov 10, 2026 https://github.com/simstudioai/sim/pull/9853/commits/685fea360942138adf89b16a3582bff7fa2936e4
d07faa9 fix(triggers): match delivery liveness, switch every live row of a bl… waleedlatif1 Nov 10, 2026 https://github.com/simstudioai/sim/pull/9853/commits/d07faa95fb689f9c9dcbfb705871eeedcfd7dc48
a70f63b fix(triggers): v2 schedules match the dispatcher, guard poll backoff,… waleedlatif1 Nov 10, 2026 https://github.com/simstudioai/sim/pull/9853/commits/a70f63b063023fd92d1b8ed907f77875881958fe
caf5c95 test(cli): classify workflow trigger enablement as non-destructive waleedlatif1 Nov 10, 2026 https://github.com/simstudioai/sim/pull/9853/commits/caf5c956ab5f7f5d63f5bcb3e912035785c94ebc
3c3b5d1 fix(triggers): v2 reports only triggers that run, restore executor PA… waleedlatif1 Nov 10, 2026 https://github.com/simstudioai/sim/pull/9853/commits/3c3b5d1f32b009ac35c628cef1a8d9e72f456c6b
b682487 Merge remote-tracking branch 'origin/staging' into feat/v2-workflow-t… waleedlatif1 Nov 10, 2026 https://github.com/simstudioai/sim/pull/9853/commits/b682487c82bf3ec51a03a6bb70c63a09b8ac3906
ddda582 fix(triggers): conceal a workflow-less trigger row as not found waleedlatif1 Nov 10, 2026 https://github.com/simstudioai/sim/pull/9853/commits/ddda582ce0463acc456a6491c6c87dc6dfe4abad
Clear filters https://github.com/simstudioai/sim/pull/9853/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9853/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9853/files
meta.json https://github.com/simstudioai/sim/pull/9853/files#diff-1bf55aa467688322d2b65e4aa7b6e8f6d480726908088095d9eebbb23a43ede4
reference.mdx https://github.com/simstudioai/sim/pull/9853/files#diff-2ef1dc35e44a2520b34fb146c4103e9d7cf235e4e4937315a5b40a7db6338406
workflows.mdx https://github.com/simstudioai/sim/pull/9853/files#diff-b38b4f49b582ee25593d5da516070296ade6a399be50daab25d6d8c050831863
openapi-v2-workflows.json https://github.com/simstudioai/sim/pull/9853/files#diff-811f737e7f97ec52156a37e71892822626b5b4de295efebd20992198d162149b
content-baseline.json https://github.com/simstudioai/sim/pull/9853/files#diff-8a79568adeca4b6c3a8ae004368a55c4ea49373eb4c4b03523616634ee135dc6
route.test.ts https://github.com/simstudioai/sim/pull/9853/files#diff-7803135a3e2a7ac7de8db536ac7c0c8bafa1e6c3defb99a8f6a360dcf8ab8186
route.ts https://github.com/simstudioai/sim/pull/9853/files#diff-67b2c12ad4b09f5bae845bf8c18c13928baf8b7487632067887791141569644d
route.ts https://github.com/simstudioai/sim/pull/9853/files#diff-cc3d4aae6eb010633b3f306afe0fd3ffc5caddfe23b60b7371c4b6fc3395dada
route.ts https://github.com/simstudioai/sim/pull/9853/files#diff-0bfce2cfedb4d6cddf29c9cf9e4250eb33d7dd534e8c612fb00b2c0f0d69a562
reactivation-gate.test.ts https://github.com/simstudioai/sim/pull/9853/files#diff-b71ed6820e4975490b35350c205e10f7b753f7e04c7945e21d11a72c107ba78f
route.ts https://github.com/simstudioai/sim/pull/9853/files#diff-17d261dc87e4938b23ae0104aabb957e35d51a2ae3b505da29b031002ba8695c
webhooks.ts https://github.com/simstudioai/sim/pull/9853/files#diff-587d0d68d1bd6ac9c1089aa5c9edab0f0b60f0e9ac8fe458a1b7bc905e833aaa
list-pagination.test.ts https://github.com/simstudioai/sim/pull/9853/files#diff-6f7704769a0f800280fcc6c19a2c5cf6a132e64d6aba2b33410fe0cf9a4d998f
workflows.ts https://github.com/simstudioai/sim/pull/9853/files#diff-8a92f40b0f57e6ef31cfc1af32cf15d24dcb56fdc7159594695a8db4f9761c91
workflows.ts https://github.com/simstudioai/sim/pull/9853/files#diff-7c1b6e587b506ea981d107bc7496349fd5020fd823e34f9c13d70f6845829728
webhooks.ts https://github.com/simstudioai/sim/pull/9853/files#diff-85a769472781e1337ee35f1d71242aee81da3073fb5dced3f1813ef425ddb29d
v2-operations.ts https://github.com/simstudioai/sim/pull/9853/files#diff-a32a173b553c777ebd3d9ecabb9cbc5fe7705ac6fa3761dbceaeb5458fc449b7
v2-route-table.generated.ts https://github.com/simstudioai/sim/pull/9853/files#diff-bb89e263add7c5eb4778158da61b6de5f31ea81866ae718e64a5a7f94ee0a31e
utils.ts https://github.com/simstudioai/sim/pull/9853/files#diff-97a976801cb3ed8cd1194f5c2bb13175dcd1aaf629f9d5f6ff9f978ccf3303b8
index.ts https://github.com/simstudioai/sim/pull/9853/files#diff-d8e28b835d6560cf3af77eda550c26f70cf3c11209429129915afdcdd53acae4
trigger-presenter.ts https://github.com/simstudioai/sim/pull/9853/files#diff-add1e2489fea82fabebf875ec3b74ecf13de9ca6a7587893cb5502b03a90f82c
operations.ts https://github.com/simstudioai/sim/pull/9853/files#diff-7de5da0d703b2490cbff7ebf2c9745cf795f2c5e64629324115d70967293e151
triggers.integration.ts https://github.com/simstudioai/sim/pull/9853/files#diff-9914d765a3d285cd3b6b05fc5bbbb4d3abf173e57866fef2b1e111a8da946c7b
triggers.ts https://github.com/simstudioai/sim/pull/9853/files#diff-a9cb9dad8223a2a621770a35eaaea4d26fb31187fe7d408909115f85c98fae24
health.ts https://github.com/simstudioai/sim/pull/9853/files#diff-7f9074fb8dd99f935303bcc21879c6f10dca7c09885ab0af719d24a2d7044479
types.ts https://github.com/simstudioai/sim/pull/9853/files#diff-0c4c4527875ffe443d3b9bc35837c1dfb53d8918c2751deafbc08896fd8d5731
commands.ts https://github.com/simstudioai/sim/pull/9853/files#diff-5b27c3986f1d8efb7c666a86dc02bf70fe6c52509f71fba2df57e706b9bc729d
v2-api.ts https://github.com/simstudioai/sim/pull/9853/files#diff-e856e756b18965607efb943e85bad153871936ce3ee5180ec2e8073a28dd1dd7
client.test.ts https://github.com/simstudioai/sim/pull/9853/files#diff-a7bd98d04242cd3286ca5e6087ed418fa75fc612d089ee8956770c273aed690b
audit.mock.ts https://github.com/simstudioai/sim/pull/9853/files#diff-ddbf3f281bccb1e55eb3765c29403087addedc24fb5f99c437c69a9a412c1e91
check-source-conventions.baseline.json https://github.com/simstudioai/sim/pull/9853/files#diff-f2c7074fc5e74c3cb4f2c59eae74fce826fead48160a9ca8858cfabd077cbb93
check-test-types.baseline.json https://github.com/simstudioai/sim/pull/9853/files#diff-3f0e52298332b82e821be5c9210ddb89bb43ab248c2db79c27e6a783dbfe9e36
check-unused-exports.baseline.json https://github.com/simstudioai/sim/pull/9853/files#diff-4b59a8526a4f226dffb0fbf6b8ec25d3082ab45da697f584eaaca4bd483c928f
generate-cli-docs.ts https://github.com/simstudioai/sim/pull/9853/files#diff-0aa378f7eeb9307d7d984a3774e4e932e57f7d7e0d685c03012706e7654b9515
apps/docs/content/docs/api-reference/(generated)/workflows/meta.jsonhttps://github.com/simstudioai/sim/pull/9853/files#diff-1bf55aa467688322d2b65e4aa7b6e8f6d480726908088095d9eebbb23a43ede4
View file https://github.com/simstudioai/sim/blob/ddda582ce0463acc456a6491c6c87dc6dfe4abad/apps/docs/content/docs/api-reference/(generated)/workflows/meta.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9853/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9853/files#diff-1bf55aa467688322d2b65e4aa7b6e8f6d480726908088095d9eebbb23a43ede4
https://github.com/simstudioai/sim/pull/9853/files#diff-1bf55aa467688322d2b65e4aa7b6e8f6d480726908088095d9eebbb23a43ede4
apps/docs/content/docs/cli/reference.mdxhttps://github.com/simstudioai/sim/pull/9853/files#diff-2ef1dc35e44a2520b34fb146c4103e9d7cf235e4e4937315a5b40a7db6338406
View file https://github.com/simstudioai/sim/blob/ddda582ce0463acc456a6491c6c87dc6dfe4abad/apps/docs/content/docs/cli/reference.mdx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9853/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9853/files#diff-2ef1dc35e44a2520b34fb146c4103e9d7cf235e4e4937315a5b40a7db6338406
https://github.com/simstudioai/sim/pull/9853/files#diff-2ef1dc35e44a2520b34fb146c4103e9d7cf235e4e4937315a5b40a7db6338406
apps/docs/content/docs/cli/workflows.mdxhttps://github.com/simstudioai/sim/pull/9853/files#diff-b38b4f49b582ee25593d5da516070296ade6a399be50daab25d6d8c050831863
View file https://github.com/simstudioai/sim/blob/ddda582ce0463acc456a6491c6c87dc6dfe4abad/apps/docs/content/docs/cli/workflows.mdx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9853/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9853/files#diff-b38b4f49b582ee25593d5da516070296ade6a399be50daab25d6d8c050831863
https://github.com/simstudioai/sim/pull/9853/files#diff-b38b4f49b582ee25593d5da516070296ade6a399be50daab25d6d8c050831863
Please reload this pagehttps://github.com/simstudioai/sim/pull/9853/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9853/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.