Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: changing client creation SQL query to handle id and token non-unique #233

Closed
wants to merge 1 commit into from

Conversation

geekbrother
Copy link
Contributor

Description

This PR changes the SQL query in the client creation to handle behavior when the client tries to register with the same client id and device token as it has (they both are non-unique). This change fixes throwing 500 errors when this case happens.

Resolves #230

How Has This Been Tested?

It's covered by the functional unit tests for the client creation. The expected behavior is passing the CI gate.

Due Diligence

  • Breaking change
  • Requires a documentation update
  • Requires a e2e/integration test update

@geekbrother geekbrother requested review from xav and arein October 3, 2023 14:17
@geekbrother geekbrother self-assigned this Oct 3, 2023
@arein arein added the accepted The issue has been accepted into the project label Oct 3, 2023
@geekbrother geekbrother marked this pull request as ready for review October 3, 2023 14:26
@geekbrother geekbrother marked this pull request as draft October 3, 2023 14:42
@geekbrother
Copy link
Contributor Author

Closing this PR as it doesn't change anything in behavior according to the unit test in #234 which is run on the previous SQL query.

@geekbrother geekbrother closed this Oct 4, 2023
@chris13524 chris13524 deleted the max/fix/delete_when_id_and_token_present branch October 23, 2023 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted The issue has been accepted into the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: duplicate key errors for the clients.id constraint
2 participants