Skip to content

Change Idea id from long to UUID#71

Closed
KarenBaliero wants to merge 1 commit intomasterfrom
idea-id-update
Closed

Change Idea id from long to UUID#71
KarenBaliero wants to merge 1 commit intomasterfrom
idea-id-update

Conversation

@KarenBaliero
Copy link
Member

Why was it necessary?

Risk of conflicts using the id as long, since its not thread-safe: two threads can read the same value before incrementing it, also it does not check for overflow, when exceeding Long.MAX_VALUE, it returns to Long.MIN_VALUE without warning.

How was it done?

Changed the type of id from long to UUID string, which is universally unique and reduces risk of conflicts.

@KarenBaliero KarenBaliero requested a review from rgudwin as a code owner May 21, 2025 20:28
@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit b7cb94c and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (90% is the threshold).

This pull request will bring the total coverage in the repository to 46.4% (0.0% change).

View more on Code Climate.

@KarenBaliero KarenBaliero deleted the idea-id-update branch May 27, 2025 19:38
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.

1 participant