Skip to content

fix(web): handle duplicate organization URL update errors gracefully - #2808

Merged
dguyen merged 5 commits into
documenso:mainfrom
anish1204:fix/organisation-url-error-handling
May 26, 2026
Merged

dguyen merged 5 commits into
documenso:mainfrom
anish1204:fix/organisation-url-error-handling

Conversation

@anish1204

Copy link
Copy Markdown
Contributor

Description

In the Organisation section when we upate the url (which is like the UUID/slug) for the organisation if we try to fill the value with any other organisation url then we get an error as below

Screenshot (513)

Issue here is in frontend there is already a exception handling present if the value entered is already present then show that error however it could not get that error as from backend the error code coming is 500.

Also in the update-organisation there is this particular an edge case missing.

Changes Made

Mapped duplicate organisation URL errors to AppErrorCode.ALREADY_EXISTS.
Improved error handling consistency between frontend and backend.

Testing Performed

Tested updating an organisation URL to an already existing URL.
Verified that the frontend now shows the correct validation error message instead of an unhandled error.
Tested updating an organisation with a unique URL and confirmed successful updates still work correctly.

After Fix
image

Checklist

  • I have tested these changes locally and they work as expected.
  • I have added/updated tests that prove the effectiveness of these changes.
  • I have updated the documentation to reflect these changes, if applicable.
  • I have followed the project's coding style guidelines.
  • I have addressed the code review feedback from the previous submission, if applicable.

@vercel

vercel Bot commented May 13, 2026

Copy link
Copy Markdown

@anish1204 is attempting to deploy a commit to the Documenso Team Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented May 13, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • coderabbit

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 669792ab-4f19-484b-9794-1cc235e9f3a4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@anish1204 anish1204 changed the title fix: handle duplicate organisation URL update errors gracefully fix: handle duplicate organization URL update errors gracefully May 13, 2026
@vercel
vercel Bot temporarily deployed to Preview – stg-docs May 13, 2026 16:17 Inactive
@vercel

vercel Bot commented May 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

3 Skipped Deployments
Project Deployment Actions Updated (UTC)
prd-docs Ignored Ignored May 26, 2026 4:56am
prd-openpage-api Ignored Ignored May 26, 2026 4:56am
stg-docs Skipped Skipped May 26, 2026 4:56am

Request Review

@anish1204

Copy link
Copy Markdown
Contributor Author

@dguyen could you look into this PR i have explored a bug and fixed it accordingly.

@anish1204 anish1204 closed this May 16, 2026
@anish1204 anish1204 reopened this May 23, 2026
@vercel
vercel Bot temporarily deployed to Preview – stg-docs May 23, 2026 07:16 Inactive
@anish1204 anish1204 changed the title fix: handle duplicate organization URL update errors gracefully fix(web): handle duplicate organization URL update errors gracefully May 23, 2026
@vercel
vercel Bot temporarily deployed to Preview – stg-docs May 26, 2026 04:36 Inactive

@dguyen dguyen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@vercel
vercel Bot temporarily deployed to Preview – stg-docs May 26, 2026 04:56 Inactive
@dguyen
dguyen merged commit 0fe697c into documenso:main May 26, 2026
7 of 8 checks passed
scoobs-mystery-bytes pushed a commit to scoobs-mystery-bytes/documenso that referenced this pull request May 30, 2026

This branch was previously deployed

1 inactive deployment
Preview – stg-docs — a85c9870 Deployed May 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants