-
Notifications
You must be signed in to change notification settings - Fork 2
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
35 uuuid assigner #36
Conversation
Codecov Report
@@ Coverage Diff @@
## release-candidate #36 +/- ##
=====================================================
Coverage ? 100.00%
=====================================================
Files ? 35
Lines ? 1376
Branches ? 0
=====================================================
Hits ? 1376
Misses ? 0
Partials ? 0
Continue to review full report at Codecov.
|
@@ -16,14 +17,16 @@ IdentifierAssignerTest >> id: anId [ | |||
{ #category : #'test support' } | |||
IdentifierAssignerTest >> nextId [ | |||
|
|||
^ '123' | |||
nextId := nextId + 1. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you doing this as an arithmetic operation instead of writing it like this
| currentId |
currentId := nextId.
nextId := nextId + 1.
^ currentId
Fixes #35
Prevented the requirement to use UUID by just increasing the canvas id when the assigner was already assigned. This effectively prevents reuse of an id in different sessions, which anyway can only occur for identifier assigners that are kept from one request to another because of an instance variable in an application that has submitted and thus generated a key/session for its URL.