Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Uid] Add UuidV7 and UuidV8 #47525

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

Merged
merged 1 commit into from
Sep 9, 2022
Merged

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Sep 8, 2022

Q A
Branch? 6.2
Bug fix? no
New feature? yes
Deprecations? no
Tickets Fix #47451
License MIT
Doc PR -

This PR adds support for UUID v7 and v8 as specified by https://www.ietf.org/archive/id/draft-peabody-dispatch-new-uuid-format-04.html#name-uuid-version-7

UUID v7 are very close conceptually to ULID: they're monotonic, sortable, unguessable, embed a ms-unix-timestamp.

@nicolas-grekas nicolas-grekas force-pushed the uuidv78 branch 5 times, most recently from 8e503a3 to 7864f58 Compare September 9, 2022 11:45
@shrikeh
Copy link
Contributor

shrikeh commented Sep 13, 2022

@nicolas-grekas would you be interested in working with me on adding Twitter's Snowflake ID to the UID component?

@nicolas-grekas
Copy link
Member Author

@shrikeh it might be interesting to support them yes. Please open an RFC if you want to shape this before submitting a PR. Or please open a PR if you're up to of course, then we'll iterate on it.

nicolas-grekas added a commit that referenced this pull request Nov 2, 2022
…erin)

This PR was merged into the 6.2 branch.

Discussion
----------

[FrameworkBundle] Allow UUID v7 in uid configuration

| Q             | A
| ------------- | ---
| Branch?       | 6.2
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | ---
| License       | MIT

As #47525 added support for UUID v7 & v8, support for at least v7 should be added to the configuration value whitelist so it can be selected as the default version for the UuidFactory.

Commits
-------

0647b34 [FrameworkBundle] Allow UUID v7 in uid configuration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for UUIDv7+8+MAX
6 participants