Skip to content

Conversation

@Meldiron
Copy link
Contributor

@Meldiron Meldiron commented Jan 20, 2022

What does this PR do?

Added 409 errors for when using customID. Multiple endpoints were missing this check.

Let's say there is a user with ID (nickname) meldiron and someone else with different emails tries to use the same ID. In the current implementation, that would be a duplicate entry 500 error. With this PR, it will throw 409 errors properly.

Test Plan

Manual QA:

CleanShot 2022-01-20 at 14 56 28

I added tests for new catches I added

Related PRs and Issues

(If this PR is related to any other PR or resolves any issue or related to any issue link all related PR and issues here.)

Have you read the Contributing Guidelines on issues?

use ProjectNone;
use SideNone;

// TODO: We are missing a lof of tests for each create and update endpoint that can take customID. There should be FAILED check with 409 conflict, if ID is already used.
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think leaving a TODO for testing is appropriate. Since we're writing the logic to catch these exceptions, this PR should contain the e2e tests to validate this change.

@eldadfux
Copy link
Member

Updated with master again.

@eldadfux
Copy link
Member

@Meldiron some tests are failing.

@stnguyen90
Copy link
Contributor

@Meldiron is this still worth keeping open?

@TorstenDittmann TorstenDittmann deleted the fix-magicurl-existing-id branch September 10, 2023 15:56
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.

7 participants