René's URL Explorer Experiment


Title: fix(webapp): create dev environments for SSO and Directory Sync members by 0ski · Pull Request #4426 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: fix(webapp): create dev environments for SSO and Directory Sync members by 0ski · Pull Request #4426 · triggerdotdev/trigger.dev

X Title: fix(webapp): create dev environments for SSO and Directory Sync members by 0ski · Pull Request #4426 · triggerdotdev/trigger.dev

Description: Members added by SSO just-in-time provisioning or Directory Sync never got their per-member DEVELOPMENT environments - only invite acceptance and project creation created them. trigger dev returned "Environment not found" for those members and the dashboard had no dev view. ensureOrgMember now queues provisioning for every membership it settles, so both paths are covered and members missing environments are repaired on their next sync. Provisioning runs as a common-worker job to keep sign-in and directory webhooks off the per-project write loop. A failed enqueue surfaces for Directory Sync, whose worker retries the idempotent effect, and is swallowed for sign-in, where the next login enqueues again. Environment creation now tolerates a concurrent creator so the project-creation loop and the job cannot collide on the unique index. Also fixes environment resolution ignoring dev-environment ownership: a member without their own dev environment could be handed a colleague's and have it persisted as their dashboard preference.

Open Graph Description: Members added by SSO just-in-time provisioning or Directory Sync never got their per-member DEVELOPMENT environments - only invite acceptance and project creation created them. trigger dev returned...

X Description: Members added by SSO just-in-time provisioning or Directory Sync never got their per-member DEVELOPMENT environments - only invite acceptance and project creation created them. trigger dev returned...

Opengraph URL: https://github.com/triggerdotdev/trigger.dev/pull/4426

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:7b1c6846-3ab2-37ad-e55c-3d093054576f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBE9A:1E0F1A:725620:AA701D:6AFAF853
html-safe-noncec3784f12de1d71d7a981ec1ff7b01e7f2d6ce6c933517edb94bd78278a5cba97
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTlBOjFFMEYxQTo3MjU2MjA6QUE3MDFEOjZBRkFGODUzIiwidmlzaXRvcl9pZCI6IjMwNzI5MzM3NTU0MTQ3NTQxMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd8d6bc21eafe7ba380f43587d528a2a2392f49514119cde78bfb79a8ca0bfd82
hovercard-subject-tagpull_request:4171968854
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/triggerdotdev/trigger.dev/pull/4426/files
twitter:imagehttps://avatars.githubusercontent.com/u/1408674?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1408674?s=400&v=4
og:image:altMembers added by SSO just-in-time provisioning or Directory Sync never got their per-member DEVELOPMENT environments - only invite acceptance and project creation created them. trigger dev returned...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None54f7a6886649661c85eee945cca0773566bfb4065370e0429b7c8f7204184650
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git
octolytics-dimension-user_id95297378
octolytics-dimension-user_logintriggerdotdev
octolytics-dimension-repository_id572570113
octolytics-dimension-repository_nwotriggerdotdev/trigger.dev
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id572570113
octolytics-dimension-repository_network_root_nwotriggerdotdev/trigger.dev
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
releasecf8450eb633ec589502c42ff6f4072e40db65da3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/pull/4426/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4426%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%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4426%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=triggerdotdev%2Ftrigger.dev
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4426/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4426/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4426/files
triggerdotdevhttps://github.com/triggerdotdev
trigger.devhttps://github.com/triggerdotdev/trigger.dev
Codehttps://github.com/triggerdotdev/trigger.dev
Issues203 (203)https://github.com/triggerdotdev/trigger.dev/issues
Pull requests67 (67)https://github.com/triggerdotdev/trigger.dev/pulls
Discussionshttps://github.com/triggerdotdev/trigger.dev/discussions
Actionshttps://github.com/triggerdotdev/trigger.dev/actions
Projectshttps://github.com/triggerdotdev/trigger.dev/projects
Security and quality39 (39)https://github.com/triggerdotdev/trigger.dev/security
Insightshttps://github.com/triggerdotdev/trigger.dev/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose
0skihttps://github.com/0ski
mainhttps://github.com/triggerdotdev/trigger.dev/tree/main
oskar/fix-sso-dsync-dev-environmentshttps://github.com/triggerdotdev/trigger.dev/tree/oskar/fix-sso-dsync-dev-environments
Conversation 25 https://github.com/triggerdotdev/trigger.dev/pull/4426
Commits 1 https://github.com/triggerdotdev/trigger.dev/pull/4426/commits
Checks 40 https://github.com/triggerdotdev/trigger.dev/pull/4426/checks
Files changed https://github.com/triggerdotdev/trigger.dev/pull/4426/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4426/files
fix(webapp): create dev environments for SSO and Directory Sync members https://github.com/triggerdotdev/trigger.dev/pull/4426/files#top
Show all changes 1 commit https://github.com/triggerdotdev/trigger.dev/pull/4426/files
3e805b3 fix(webapp): create dev environments for SSO and Directory Sync members 0ski Jul 30, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4426/commits/3e805b3cd4c59016e554378c6730b3d2b6cc2107
Clear filters https://github.com/triggerdotdev/trigger.dev/pull/4426/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4426/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4426/files
sso-directory-sync-dev-environments.md https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-d5fa6beddf32857b8e3e81f7b3ec4186b262273ee2daf7de3fb56dd7da57a2bb
member.server.ts https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-d65725675f3276afd917d8f8499105abaddaa9fbb2137271110b7bde3a97e8ed
orgMember.server.ts https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-e44bf8fa02b98895bcf1462f1e3c7142d357586d1765d8fead298ae402c621a9
organization.server.ts https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-7b1db6c4ae8563541bfba8763c283a020853585a4e9a60f29273a787176c2853
project.server.ts https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-4f257b6b98009747cc60393edbc3cbb90e9a993a62107b17e274b72b45e2f3a4
SelectBestEnvironmentPresenter.server.ts https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-f3fd771c16282ac12a6bdf29d743d7599dd66088ffbc08616c60e95f47c0a6cd
route.tsx https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-808d761e31211aaf54f08a943d5d09f52a145f6bc63ea1fb8ce5d05fab520436
route.tsx https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-e2899a2ad140b22feca87d6cea97c0c38c2138719c85c03c55996a2938c62f05
directorySyncEffects.server.ts https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-f7d8c0e28089f6c86ca4887bec57cda44883005a4de1be79d04d60f96eed9898
memberDevEnvironments.server.ts https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-f65c90be336ed200a4aadf06a49f5f257c4ef5bdf2535977117edf7566f09787
environmentAccess.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-f3f8e4d9e6bda284ff1edf06bd62a9ac413f704a31bdacb06a6130186674839c
environmentAccess.ts https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-44fab8c0dc2fdddc2353e7ec6ead7f06e71c0b472746e71bd15bb5a99248d76c
accountsWebhookWorker.server.ts https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-ac725574c9142475a94d3b2bf315212fb89ac4fd7a28b8bd645a1f1224c48804
commonWorker.server.ts https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-ba1111b921d87fd8795291749a3005c62c69ac353f3fc7884af7ea298171c0a6
directorySyncEffects.server.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-763b1ab5019cbc61a2a82b4a772364770e87322d1406b0d9afab927c6f9d342d
envParamRoute.ownership.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-b74352dc0dee590596c1d6ef6566b2925270860818fd271035ebf948d1855c97
member.server.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-3a49d6261f791d109020fcab719bd95aea3611f207c4f52a331f155aa3481c2b
memberDevEnvironments.server.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-f24d288867ec96c2052ccdfaad37b36e28008bafdb48a7e9ac67d5d1390a8096
orgMember.server.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-b2618d4c5d7f0ee7b17ca2405da3722ad5dbf3334fa6c4e32a4eb6ede6c486a7
selectBestEnvironment.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-73a2348dca12a4650f3033dbbafff7721aae6c63b82e0a2ad89940a7d0e89352
.server-changes/sso-directory-sync-dev-environments.mdhttps://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-d5fa6beddf32857b8e3e81f7b3ec4186b262273ee2daf7de3fb56dd7da57a2bb
View file https://github.com/triggerdotdev/trigger.dev/blob/3e805b3cd4c59016e554378c6730b3d2b6cc2107/.server-changes/sso-directory-sync-dev-environments.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4426/{{ revealButtonHref }}
apps/webapp/app/models/member.server.tshttps://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-d65725675f3276afd917d8f8499105abaddaa9fbb2137271110b7bde3a97e8ed
View file https://github.com/triggerdotdev/trigger.dev/blob/3e805b3cd4c59016e554378c6730b3d2b6cc2107/apps/webapp/app/models/member.server.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4426/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-d65725675f3276afd917d8f8499105abaddaa9fbb2137271110b7bde3a97e8ed
https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-d65725675f3276afd917d8f8499105abaddaa9fbb2137271110b7bde3a97e8ed
https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-d65725675f3276afd917d8f8499105abaddaa9fbb2137271110b7bde3a97e8ed
https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-d65725675f3276afd917d8f8499105abaddaa9fbb2137271110b7bde3a97e8ed
https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-d65725675f3276afd917d8f8499105abaddaa9fbb2137271110b7bde3a97e8ed
https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-d65725675f3276afd917d8f8499105abaddaa9fbb2137271110b7bde3a97e8ed
https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-d65725675f3276afd917d8f8499105abaddaa9fbb2137271110b7bde3a97e8ed
https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-d65725675f3276afd917d8f8499105abaddaa9fbb2137271110b7bde3a97e8ed
https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-d65725675f3276afd917d8f8499105abaddaa9fbb2137271110b7bde3a97e8ed
https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-d65725675f3276afd917d8f8499105abaddaa9fbb2137271110b7bde3a97e8ed
https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-d65725675f3276afd917d8f8499105abaddaa9fbb2137271110b7bde3a97e8ed
https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-d65725675f3276afd917d8f8499105abaddaa9fbb2137271110b7bde3a97e8ed
apps/webapp/app/models/orgMember.server.tshttps://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-e44bf8fa02b98895bcf1462f1e3c7142d357586d1765d8fead298ae402c621a9
View file https://github.com/triggerdotdev/trigger.dev/blob/3e805b3cd4c59016e554378c6730b3d2b6cc2107/apps/webapp/app/models/orgMember.server.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4426/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-e44bf8fa02b98895bcf1462f1e3c7142d357586d1765d8fead298ae402c621a9
https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-e44bf8fa02b98895bcf1462f1e3c7142d357586d1765d8fead298ae402c621a9
https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-e44bf8fa02b98895bcf1462f1e3c7142d357586d1765d8fead298ae402c621a9
https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-e44bf8fa02b98895bcf1462f1e3c7142d357586d1765d8fead298ae402c621a9
https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-e44bf8fa02b98895bcf1462f1e3c7142d357586d1765d8fead298ae402c621a9
https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-e44bf8fa02b98895bcf1462f1e3c7142d357586d1765d8fead298ae402c621a9
https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-e44bf8fa02b98895bcf1462f1e3c7142d357586d1765d8fead298ae402c621a9
apps/webapp/app/models/organization.server.tshttps://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-7b1db6c4ae8563541bfba8763c283a020853585a4e9a60f29273a787176c2853
View file https://github.com/triggerdotdev/trigger.dev/blob/3e805b3cd4c59016e554378c6730b3d2b6cc2107/apps/webapp/app/models/organization.server.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4426/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-7b1db6c4ae8563541bfba8763c283a020853585a4e9a60f29273a787176c2853
https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-7b1db6c4ae8563541bfba8763c283a020853585a4e9a60f29273a787176c2853
https://github.com/triggerdotdev/trigger.dev/pull/4426/files#diff-7b1db6c4ae8563541bfba8763c283a020853585a4e9a60f29273a787176c2853
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4426/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4426/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.