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

35 uuuid assigner #36

Merged
merged 3 commits into from
Apr 19, 2021
Merged

35 uuuid assigner #36

merged 3 commits into from
Apr 19, 2021

Conversation

mtabacman
Copy link
Member

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.

@codecov
Copy link

codecov bot commented Apr 18, 2021

Codecov Report

❗ No coverage uploaded for pull request base (release-candidate@ddeced9). Click here to learn what that means.
The diff coverage is 100.00%.

Impacted file tree graph

@@                  Coverage Diff                  @@
##             release-candidate       #36   +/-   ##
=====================================================
  Coverage                     ?   100.00%           
=====================================================
  Files                        ?        35           
  Lines                        ?      1376           
  Branches                     ?         0           
=====================================================
  Hits                         ?      1376           
  Misses                       ?         0           
  Partials                     ?         0           
Impacted Files Coverage Δ
...ce/Boardwalk-Tests/IdentifierAssignerTest.class.st 100.00% <100.00%> (ø)
source/Boardwalk/IdentifierAssigner.class.st 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ddeced9...7d4b264. Read the comment docs.

@@ -16,14 +17,16 @@ IdentifierAssignerTest >> id: anId [
{ #category : #'test support' }
IdentifierAssignerTest >> nextId [

^ '123'
nextId := nextId + 1.
Copy link
Member

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

@mtabacman mtabacman merged commit efbf748 into release-candidate Apr 19, 2021
@mtabacman mtabacman deleted the 35-uuuid-assigner branch April 19, 2021 11:49
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.

Change identification assigner to used UUID instead of the next canvas id.
3 participants