René's URL Explorer Experiment


Title: refactor: extract shared Prisma unique-constraint error helper by xernobyl · Pull Request #8394 · formbricks/formbricks · GitHub

Open Graph Title: refactor: extract shared Prisma unique-constraint error helper by xernobyl · Pull Request #8394 · formbricks/formbricks

X Title: refactor: extract shared Prisma unique-constraint error helper by xernobyl · Pull Request #8394 · formbricks/formbricks

Description: Open Source Qualtrics Alternative. Contribute to formbricks/formbricks development by creating an account on GitHub.

Open Graph Description: What does this PR do? Mostly a DRY refactor with no behavior change, plus one intentional behavior fix (quotas 404 path — see below). The Prisma "known request" error checks were copy-pas...

X Description: What does this PR do? Mostly a DRY refactor with no behavior change, plus one intentional behavior fix (quotas 404 path — see below). The Prisma "known request" error checks were ...

Opengraph URL: https://github.com/formbricks/formbricks/pull/8394

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:20714dc1-b533-704c-f303-9d723d1bfef7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id883A:19A823:4AF6FE:699B36:6A4BCAC8
html-safe-noncedfd6e1a0b9f12c4e3b8102198f34efdd8c539a045ed14ae7245570c9da10b1a7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODNBOjE5QTgyMzo0QUY2RkU6Njk5QjM2OjZBNEJDQUM4IiwidmlzaXRvcl9pZCI6IjQ2MzA1NjE2NzAyMDI1MTg0OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb731b0a571358ce69b98401d027987857f1c6336c246adbb4b2a35d1cd1890da
hovercard-subject-tagpull_request:3963632290
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/formbricks/formbricks/8394/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/7ee7454366a8f20512ec2fee114a712590d0ca7c225f2baa1e4ce98785db8ccc/formbricks/formbricks/pull/8394
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7ee7454366a8f20512ec2fee114a712590d0ca7c225f2baa1e4ce98785db8ccc/formbricks/formbricks/pull/8394
og:image:altWhat does this PR do? Mostly a DRY refactor with no behavior change, plus one intentional behavior fix (quotas 404 path — see below). The Prisma "known request" error checks were copy-pas...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamexernobyl
hostnamegithub.com
expected-hostnamegithub.com
None14aa00ce5bdb34d0eefb5facbffd7de9e144c688d8a93ef8df902d5f94b51dd7
turbo-cache-controlno-cache
go-importgithub.com/formbricks/formbricks git https://github.com/formbricks/formbricks.git
octolytics-dimension-user_id105877416
octolytics-dimension-user_loginformbricks
octolytics-dimension-repository_id500289888
octolytics-dimension-repository_nwoformbricks/formbricks
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id500289888
octolytics-dimension-repository_network_root_nwoformbricks/formbricks
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release58b8f89190447502561829f30862aa0a99d53367
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/formbricks/formbricks/pull/8394#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fformbricks%2Fformbricks%2Fpull%2F8394
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fformbricks%2Fformbricks%2Fpull%2F8394
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=formbricks%2Fformbricks
Reloadhttps://github.com/formbricks/formbricks/pull/8394
Reloadhttps://github.com/formbricks/formbricks/pull/8394
Reloadhttps://github.com/formbricks/formbricks/pull/8394
Please reload this pagehttps://github.com/formbricks/formbricks/pull/8394
formbricks https://github.com/formbricks
formbrickshttps://github.com/formbricks/formbricks
Notifications https://github.com/login?return_to=%2Fformbricks%2Fformbricks
Fork 2.4k https://github.com/login?return_to=%2Fformbricks%2Fformbricks
Star 12.5k https://github.com/login?return_to=%2Fformbricks%2Fformbricks
Code https://github.com/formbricks/formbricks
Issues 196 https://github.com/formbricks/formbricks/issues
Pull requests 21 https://github.com/formbricks/formbricks/pulls
Discussions https://github.com/formbricks/formbricks/discussions
Actions https://github.com/formbricks/formbricks/actions
Security and quality 1 https://github.com/formbricks/formbricks/security
Insights https://github.com/formbricks/formbricks/pulse
Code https://github.com/formbricks/formbricks
Issues https://github.com/formbricks/formbricks/issues
Pull requests https://github.com/formbricks/formbricks/pulls
Discussions https://github.com/formbricks/formbricks/discussions
Actions https://github.com/formbricks/formbricks/actions
Security and quality https://github.com/formbricks/formbricks/security
Insights https://github.com/formbricks/formbricks/pulse
xernobylhttps://github.com/xernobyl
mainhttps://github.com/formbricks/formbricks/tree/main
refactor/prisma-unique-constraint-helperhttps://github.com/formbricks/formbricks/tree/refactor/prisma-unique-constraint-helper
Conversationhttps://github.com/formbricks/formbricks/pull/8394
Commits5 (5)https://github.com/formbricks/formbricks/pull/8394/commits
Checkshttps://github.com/formbricks/formbricks/pull/8394/checks
Files changedhttps://github.com/formbricks/formbricks/pull/8394/files
refactor: extract shared Prisma unique-constraint error helperhttps://github.com/formbricks/formbricks/pull/8394#top
xernobylhttps://github.com/xernobyl
mainhttps://github.com/formbricks/formbricks/tree/main
refactor/prisma-unique-constraint-helperhttps://github.com/formbricks/formbricks/tree/refactor/prisma-unique-constraint-helper
https://github.com/xernobyl
xernobylhttps://github.com/xernobyl
Jun 30, 2026https://github.com/formbricks/formbricks/pull/8394#issue-4777332492
Please reload this pagehttps://github.com/formbricks/formbricks/pull/8394
How we Code at Formbrickshttps://formbricks.com/docs/contributing/how-we-code
Please reload this pagehttps://github.com/formbricks/formbricks/pull/8394
https://github.com/xernobyl
refactor: extract shared Prisma unique-constraint error helperhttps://github.com/formbricks/formbricks/pull/8394/commits/dc1ec1f5dcf9e17c71d92a521056c4be8174869d
dc1ec1fhttps://github.com/formbricks/formbricks/pull/8394/commits/dc1ec1f5dcf9e17c71d92a521056c4be8174869d
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Jun 30, 2026https://github.com/formbricks/formbricks/pull/8394#issuecomment-4844260594
Please reload this pagehttps://github.com/formbricks/formbricks/pull/8394
https://app.coderabbit.ai/change-stack/formbricks/formbricks/pull/8394?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack
CodeRabbithttps://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=formbricks/formbricks&utm_content=8394
Xhttps://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai
Mastodonhttps://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai
Reddithttps://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai
LinkedInhttps://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code
Please reload this pagehttps://github.com/formbricks/formbricks/pull/8394
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Jun 30, 2026 https://github.com/formbricks/formbricks/pull/8394#pullrequestreview-4600988624
View reviewed changes https://github.com/formbricks/formbricks/pull/8394/files/dc1ec1f5dcf9e17c71d92a521056c4be8174869d
coderabbitaihttps://github.com/apps/coderabbitai
https://github.com/formbricks/formbricks/pull/8394#pullrequestreview-4600988624
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
b210dc3https://github.com/formbricks/formbricks/commit/b210dc3be8efd3b3cec70f1aee14ec25a3a0e02b
dc1ec1fhttps://github.com/formbricks/formbricks/commit/dc1ec1f5dcf9e17c71d92a521056c4be8174869d
Please reload this pagehttps://github.com/formbricks/formbricks/pull/8394
apps/web/lib/feedback-source/service.tshttps://github.com/formbricks/formbricks/pull/8394/files/dc1ec1f5dcf9e17c71d92a521056c4be8174869d#diff-fe1d86a19bc654ac74530109a28a1d1f1c52769f049ba2eeb561539f2522a9a4
Please reload this pagehttps://github.com/formbricks/formbricks/pull/8394
apps/web/modules/ee/quotas/lib/quotas.tshttps://github.com/formbricks/formbricks/pull/8394/files/dc1ec1f5dcf9e17c71d92a521056c4be8174869d#diff-2c815888f67971d31fc322d017fa4641c3fa3bac58bbff0b12df6920c50e7271
Please reload this pagehttps://github.com/formbricks/formbricks/pull/8394
xernobylhttps://github.com/xernobyl
June 30, 2026 14:35https://github.com/formbricks/formbricks/pull/8394#commits-pushed-ff72f02
https://github.com/xernobyl
test: cover Prisma error-handling branches in refactored serviceshttps://github.com/formbricks/formbricks/pull/8394/commits/ff72f02a26cd4ffd070e7aa42b8ac94ac0596d50
ff72f02https://github.com/formbricks/formbricks/pull/8394/commits/ff72f02a26cd4ffd070e7aa42b8ac94ac0596d50
https://github.com/xernobyl
test: prefer toBeInstanceOf over generic boolean assertionhttps://github.com/formbricks/formbricks/pull/8394/commits/86521f48ed3f8d86fccaffaa4b5b2abd2d25279e
86521f4https://github.com/formbricks/formbricks/pull/8394/commits/86521f48ed3f8d86fccaffaa4b5b2abd2d25279e
https://github.com/xernobyl
refactor: dedupe displayId unique-constraint check into shared helperhttps://github.com/formbricks/formbricks/pull/8394/commits/3052f9281b8c0c9061069970d2b23f853ba485b9
3052f92https://github.com/formbricks/formbricks/pull/8394/commits/3052f9281b8c0c9061069970d2b23f853ba485b9
https://github.com/xernobyl
fix: correct quota not-found 404 to match Prisma P2025 and fix Resour…https://github.com/formbricks/formbricks/pull/8394/commits/e0096e9c130e294f9e79cba5ff0a3acdc961b2b5
e0096e9https://github.com/formbricks/formbricks/pull/8394/commits/e0096e9c130e294f9e79cba5ff0a3acdc961b2b5
https://github.com/apps/sonarqubecloud
sonarqubecloudhttps://github.com/apps/sonarqubecloud
Jul 2, 2026https://github.com/formbricks/formbricks/pull/8394#issuecomment-4871314796
https://sonarcloud.io/dashboard?id=formbricks_formbricks&pullRequest=8394
https://camo.githubusercontent.com/6cc27951a82703bd6a32deed62ec92af84fc495762ca86bc7af5a3ac490c7bda/68747470733a2f2f736f6e6172736f757263652e6769746875622e696f2f736f6e6172636c6f75642d6769746875622d7374617469632d7265736f75726365732f76322f636f6d6d6f6e2f7061737365642d313670782e706e67
0 New issueshttps://sonarcloud.io/project/issues?id=formbricks_formbricks&pullRequest=8394&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true
https://camo.githubusercontent.com/5ad34d7e6f2a5aa0d644209f46bb24fba00f31f704923ce46fe8434f94917f73/68747470733a2f2f736f6e6172736f757263652e6769746875622e696f2f736f6e6172636c6f75642d6769746875622d7374617469632d7265736f75726365732f76322f636f6d6d6f6e2f61636365707465642d313670782e706e67
0 Accepted issueshttps://sonarcloud.io/project/issues?id=formbricks_formbricks&pullRequest=8394&issueStatuses=ACCEPTED
https://camo.githubusercontent.com/6cc27951a82703bd6a32deed62ec92af84fc495762ca86bc7af5a3ac490c7bda/68747470733a2f2f736f6e6172736f757263652e6769746875622e696f2f736f6e6172636c6f75642d6769746875622d7374617469632d7265736f75726365732f76322f636f6d6d6f6e2f7061737365642d313670782e706e67
0 Security Hotspotshttps://sonarcloud.io/project/security_hotspots?id=formbricks_formbricks&pullRequest=8394&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true
https://camo.githubusercontent.com/6cc27951a82703bd6a32deed62ec92af84fc495762ca86bc7af5a3ac490c7bda/68747470733a2f2f736f6e6172736f757263652e6769746875622e696f2f736f6e6172636c6f75642d6769746875622d7374617469632d7265736f75726365732f76322f636f6d6d6f6e2f7061737365642d313670782e706e67
100.0% Coverage on New Codehttps://sonarcloud.io/component_measures?id=formbricks_formbricks&pullRequest=8394&metric=new_coverage&view=list
https://camo.githubusercontent.com/6cc27951a82703bd6a32deed62ec92af84fc495762ca86bc7af5a3ac490c7bda/68747470733a2f2f736f6e6172736f757263652e6769746875622e696f2f736f6e6172636c6f75642d6769746875622d7374617469632d7265736f75726365732f76322f636f6d6d6f6e2f7061737365642d313670782e706e67
0.3% Duplication on New Codehttps://sonarcloud.io/component_measures?id=formbricks_formbricks&pullRequest=8394&metric=new_duplicated_lines_density&view=list
See analysis details on SonarQube Cloudhttps://sonarcloud.io/dashboard?id=formbricks_formbricks&pullRequest=8394
Please reload this pagehttps://github.com/formbricks/formbricks/pull/8394
https://github.co/hiddenchars
https://github.com/formbricks/formbricks/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fformbricks%2Fformbricks%2Fpull%2F8394
https://github.com/apps/coderabbitai
coderabbitai[bot] https://github.com/apps/coderabbitai
https://github.com/formbricks/formbricks/pull/8394/files/dc1ec1f5dcf9e17c71d92a521056c4be8174869d
Please reload this pagehttps://github.com/formbricks/formbricks/pull/8394
https://github.com/xernobyl
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.