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

feat(core): Change Execution & Stage IDs to use ULIDs #2189

Merged
merged 3 commits into from
May 6, 2018

Conversation

robzienert
Copy link
Member

Switching from java.util.UUID to ulid (via impl sulky-ulid) to get us a time-sortable ID in executions and stages. This is internals work for SQL.

@emjburns
Copy link
Contributor

Is there a reason you left out the IDs of tasks?

@robzienert
Copy link
Member Author

@emjburns Good question. I only converted models that would have their own tables in SQL. For our initial implementation, tasks will just be serialized as part of the stage JSON blob, and won't have a table for themselves.

@robfletcher
Copy link
Contributor

robfletcher commented Apr 27, 2018

Also Tasks are not currently assigned UUIDs. They're done like this

task.id = (stage.tasks.size + 1).toString()

Copy link
Contributor

@dreynaud dreynaud left a comment

Choose a reason for hiding this comment

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

LGTM

@robzienert robzienert merged commit 36b9419 into spinnaker:master May 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants