René's URL Explorer Experiment


Title: feat(tables): trigger workflows on row deletes by j15z · Pull Request #7161 · simstudioai/sim · GitHub

Open Graph Title: feat(tables): trigger workflows on row deletes by j15z · Pull Request #7161 · simstudioai/sim

X Title: feat(tables): trigger workflows on row deletes by j15z · Pull Request #7161 · simstudioai/sim

Description: Summary Table triggers can now start workflows when rows are deleted and receive each deleted row's final values. Delete events are dispatched only after committed single-row, ID-based, filtered, background, and Expiration-cleanup deletions. This is PR 4 of 4 in the row-expiration stack. It builds on PR #7072 and completes the integration by making automatic Expiration deletions observable through the same Table trigger as manual deletions. PostgreSQL returns each deleted { id, data } snapshot as part of the DELETE, avoiding a racy pre-delete read. Large deletes dispatch byte-bounded snapshot batches after each transaction commits, and trigger matching requires the table's canonical workspace. Dispatch remains best-effort, so a workflow failure cannot roll back a committed deletion. Payloads expose final values through row, rawRow, and previousRow, with no changed columns. Type of Change Bug fix New feature Breaking change Documentation Other: ___________ Testing Focused coverage exercises trigger configuration and payloads, single and bulk deletes, post-commit ordering, bounded background batches, workspace isolation, and Expiration cleanup. At the restacked stack tip, 29 focused test files pass with 453 tests. bun run type-check, bun run lint:check, bun run check:api-validation, and bun run check:migrations origin/staging pass. Review focus: every dispatch path must use rows returned by the committed delete, never a pre-delete read that could become stale. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA) Screenshots/Videos No screenshots captured. Trigger configuration tests cover the new Row Deleted option and its payload contract. Post-Deploy Monitoring & Validation Logs: Search the TableTrigger logger for Firing delete events and Error in fireTableTrigger. Healthy: Each committed deletion produces the expected workflow execution in the same workspace, with bounded trigger batches and no increase in delete latency or memory pressure. Failure: Missing or duplicate executions, cross-workspace matching, repeated trigger errors, or elevated delete-worker memory/latency. Mitigation: Disable affected Row Deleted workflows or roll back this PR; committed deletions remain valid because trigger delivery is post-commit and best-effort. Window and owner: Monitor for 24 hours after deployment; owner is the Tables feature owner.

Open Graph Description: Summary Table triggers can now start workflows when rows are deleted and receive each deleted row's final values. Delete events are dispatched only after committed single-row, ID-based, filtere...

X Description: Summary Table triggers can now start workflows when rows are deleted and receive each deleted row's final values. Delete events are dispatched only after committed single-row, ID-based, fil...

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

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:ad43b152-9cb4-7634-0ad5-5eb8b1cc998f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8E56:2CD95:2F4B4B:43FF09:6AFB3327
html-safe-noncea11b585c039031c66a81e26f7258271011ec5fa2813166274f0243bfe0c68a52
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTU2OjJDRDk1OjJGNEI0Qjo0M0ZGMDk6NkFGQjMzMjciLCJ2aXNpdG9yX2lkIjoiODQzMzI1NjA0MjI2MjYzOTM5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac21d469429a203129d3630ac837a2efa0ffbd63a626009004819db44920b38d5c
hovercard-subject-tagpull_request:4373329377
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/7161/files
twitter:imagehttps://avatars.githubusercontent.com/u/96924014?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/96924014?s=400&v=4
og:image:altSummary Table triggers can now start workflows when rows are deleted and receive each deleted row's final values. Delete events are dispatched only after committed single-row, ID-based, filtere...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneefe184de15c1d8c1107a340cfc27bf7187b458dc07687ee1fa51f035148fb3d1
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
releasef567cf3af46b50a3211fb5dab569a9d6a7b58025
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/7161/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F7161%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%2F7161%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/7161/files
Reloadhttps://github.com/simstudioai/sim/pull/7161/files
Reloadhttps://github.com/simstudioai/sim/pull/7161/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests198 (198)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
j15zhttps://github.com/j15z
refactor/consolidate-timezone-mathhttps://github.com/simstudioai/sim/tree/refactor/consolidate-timezone-math
feat/table-trigger-row-deleteshttps://github.com/simstudioai/sim/tree/feat/table-trigger-row-deletes
Conversation 13 https://github.com/simstudioai/sim/pull/7161
Commits 3 https://github.com/simstudioai/sim/pull/7161/commits
Checks 48 https://github.com/simstudioai/sim/pull/7161/checks
Files changed https://github.com/simstudioai/sim/pull/7161/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7161/files
feat(tables): trigger workflows on row deletes https://github.com/simstudioai/sim/pull/7161/files#top
Show all changes 3 commits https://github.com/simstudioai/sim/pull/7161/files
19f2792 feat(tables): trigger workflows on row deletes j15z Aug 27, 2026 https://github.com/simstudioai/sim/pull/7161/commits/19f279206cfc3e8c94c3ac497eeba8fe7138c57d
e452f12 fix(tables): bound delete trigger snapshots j15z Aug 28, 2026 https://github.com/simstudioai/sim/pull/7161/commits/e452f12022aaa602514add031bdb0fcb9de127c9
f3bbe0b fix(tables): scope and verify delete triggers j15z Aug 28, 2026 https://github.com/simstudioai/sim/pull/7161/commits/f3bbe0b44bf4da86c7278d57215425fb00f2f807
Clear filters https://github.com/simstudioai/sim/pull/7161/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7161/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7161/files
cleanup-table-row-ttl.test.ts https://github.com/simstudioai/sim/pull/7161/files#diff-6a3f65e8bc9c8a0a87bfbe4ab994f4a5b2e519d96eee63c106033202bc78770f
cleanup-table-row-ttl.ts https://github.com/simstudioai/sim/pull/7161/files#diff-d48cd4cbe43f02c39877ebb0bbbb021f73e3a3a740c0666600564b56c053f70b
service-filter-threading.test.ts https://github.com/simstudioai/sim/pull/7161/files#diff-fc16d1af6c583a6c382bb94c9e7945067cee0fb6c9c9c4298546d78f09dfbaaa
trigger.test.ts https://github.com/simstudioai/sim/pull/7161/files#diff-4248aec0b50dcad0ef928738baf5f5a563abac7db7168ee6af9debba0add4611
constants.test.ts https://github.com/simstudioai/sim/pull/7161/files#diff-0ab246b1b6d93ccf253a2cefb6e7562b1aa3d3c40465cc24a89c67be0453f5ca
constants.ts https://github.com/simstudioai/sim/pull/7161/files#diff-3789ef10f28c4ed64a7728377279f3fb4f153bc42fb87c1db3405e79ee97fcf5
delete-runner.test.ts https://github.com/simstudioai/sim/pull/7161/files#diff-2f0a55d8239a5683314ff1c860ecce36679afbe6d3a599db9574bf131c9598f7
delete-runner.ts https://github.com/simstudioai/sim/pull/7161/files#diff-09254d41b01b6cdad343c7efb45a23f8abcc32c3f2a0a06934f859cabcbb855b
ordering-delete.test.ts https://github.com/simstudioai/sim/pull/7161/files#diff-52dc00147730a40e80875e5de19c21b31ccb7cc6ea8f7171b09c333596322d27
ordering.ts https://github.com/simstudioai/sim/pull/7161/files#diff-ae68362b6a8201eef72124d4fa40ebc0332664f66d7487e04d435623e408658f
service.ts https://github.com/simstudioai/sim/pull/7161/files#diff-bb7e45c4b7c8d660db1d230975eb35231ae2616360572a342fd56d37296bb23f
trigger.ts https://github.com/simstudioai/sim/pull/7161/files#diff-9f55fbdc1a1fc17cdf6207d6edb8cc18712ba68b6a3f1530ea0be00c91a4c711
poller.test.ts https://github.com/simstudioai/sim/pull/7161/files#diff-e98055adc85395149da1cc3c1efb7d1e9a14ed12cd90da7e1f659297d9863c34
poller.ts https://github.com/simstudioai/sim/pull/7161/files#diff-5e777824acb4eac3a084b332721470e2665cbf18df97e6ae141571e7c1f0d186
apps/sim/background/cleanup-table-row-ttl.test.tshttps://github.com/simstudioai/sim/pull/7161/files#diff-6a3f65e8bc9c8a0a87bfbe4ab994f4a5b2e519d96eee63c106033202bc78770f
View file https://github.com/simstudioai/sim/blob/f3bbe0b44bf4da86c7278d57215425fb00f2f807/apps/sim/background/cleanup-table-row-ttl.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7161/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7161/files#diff-6a3f65e8bc9c8a0a87bfbe4ab994f4a5b2e519d96eee63c106033202bc78770f
https://github.com/simstudioai/sim/pull/7161/files#diff-6a3f65e8bc9c8a0a87bfbe4ab994f4a5b2e519d96eee63c106033202bc78770f
https://github.com/simstudioai/sim/pull/7161/files#diff-6a3f65e8bc9c8a0a87bfbe4ab994f4a5b2e519d96eee63c106033202bc78770f
https://github.com/simstudioai/sim/pull/7161/files#diff-6a3f65e8bc9c8a0a87bfbe4ab994f4a5b2e519d96eee63c106033202bc78770f
https://github.com/simstudioai/sim/pull/7161/files#diff-6a3f65e8bc9c8a0a87bfbe4ab994f4a5b2e519d96eee63c106033202bc78770f
https://github.com/simstudioai/sim/pull/7161/files#diff-6a3f65e8bc9c8a0a87bfbe4ab994f4a5b2e519d96eee63c106033202bc78770f
https://github.com/simstudioai/sim/pull/7161/files#diff-6a3f65e8bc9c8a0a87bfbe4ab994f4a5b2e519d96eee63c106033202bc78770f
https://github.com/simstudioai/sim/pull/7161/files#diff-6a3f65e8bc9c8a0a87bfbe4ab994f4a5b2e519d96eee63c106033202bc78770f
https://github.com/simstudioai/sim/pull/7161/files#diff-6a3f65e8bc9c8a0a87bfbe4ab994f4a5b2e519d96eee63c106033202bc78770f
https://github.com/simstudioai/sim/pull/7161/files#diff-6a3f65e8bc9c8a0a87bfbe4ab994f4a5b2e519d96eee63c106033202bc78770f
https://github.com/simstudioai/sim/pull/7161/files#diff-6a3f65e8bc9c8a0a87bfbe4ab994f4a5b2e519d96eee63c106033202bc78770f
apps/sim/background/cleanup-table-row-ttl.tshttps://github.com/simstudioai/sim/pull/7161/files#diff-d48cd4cbe43f02c39877ebb0bbbb021f73e3a3a740c0666600564b56c053f70b
View file https://github.com/simstudioai/sim/blob/f3bbe0b44bf4da86c7278d57215425fb00f2f807/apps/sim/background/cleanup-table-row-ttl.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7161/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7161/files#diff-d48cd4cbe43f02c39877ebb0bbbb021f73e3a3a740c0666600564b56c053f70b
https://github.com/simstudioai/sim/pull/7161/files#diff-d48cd4cbe43f02c39877ebb0bbbb021f73e3a3a740c0666600564b56c053f70b
https://github.com/simstudioai/sim/pull/7161/files#diff-d48cd4cbe43f02c39877ebb0bbbb021f73e3a3a740c0666600564b56c053f70b
https://github.com/simstudioai/sim/pull/7161/files#diff-d48cd4cbe43f02c39877ebb0bbbb021f73e3a3a740c0666600564b56c053f70b
https://github.com/simstudioai/sim/pull/7161/files#diff-d48cd4cbe43f02c39877ebb0bbbb021f73e3a3a740c0666600564b56c053f70b
https://github.com/simstudioai/sim/pull/7161/files#diff-d48cd4cbe43f02c39877ebb0bbbb021f73e3a3a740c0666600564b56c053f70b
https://github.com/simstudioai/sim/pull/7161/files#diff-d48cd4cbe43f02c39877ebb0bbbb021f73e3a3a740c0666600564b56c053f70b
https://github.com/simstudioai/sim/pull/7161/files#diff-d48cd4cbe43f02c39877ebb0bbbb021f73e3a3a740c0666600564b56c053f70b
https://github.com/simstudioai/sim/pull/7161/files#diff-d48cd4cbe43f02c39877ebb0bbbb021f73e3a3a740c0666600564b56c053f70b
https://github.com/simstudioai/sim/pull/7161/files#diff-d48cd4cbe43f02c39877ebb0bbbb021f73e3a3a740c0666600564b56c053f70b
https://github.com/simstudioai/sim/pull/7161/files#diff-d48cd4cbe43f02c39877ebb0bbbb021f73e3a3a740c0666600564b56c053f70b
Please reload this pagehttps://github.com/simstudioai/sim/pull/7161/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7161/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.