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

Extend UUID Generation to Include Versions #513

Closed
JiangHongTiao opened this issue Jan 2, 2024 · 5 comments · Fixed by #514
Closed

Extend UUID Generation to Include Versions #513

JiangHongTiao opened this issue Jan 2, 2024 · 5 comments · Fixed by #514
Assignees
Labels
feature New feature or request

Comments

@JiangHongTiao
Copy link

Hello Randomness Team,

I'm a user of your Randomness plugin for IntelliJ IDEA, and it's been immensely helpful in my development workflow. I appreciate the simplicity and effectiveness of the plugin, especially for generating UUIDs.

However, I have encountered a scenario where I need more flexibility in UUID generation. Specifically, I'm working on a project that requires UUID version 7 (v7), which isn't currently supported by the plugin.

Feature Request
I propose an enhancement to the UUID generation feature of the Randomness plugin. It would be highly beneficial if the plugin could support additional UUID versions, specifically v6, v7, and v8. These versions are increasingly being adopted in various projects and having them available in Randomness would be a significant improvement.

UUID v6: Designed for better performance with databases.
UUID v7: Offers a monotonic, time-based solution.
UUID v8: Provides custom UUID formats for specialized use cases.

Implementation Suggestion
Adding a setting in the UUID generation section where users can select the version of UUID they wish to generate. This feature would be particularly beneficial for projects like mine, which require use of specific UUID version.

Thank you for considering this enhancement. Your work on this plugin is greatly appreciated, and this feature would undoubtedly make it even more valuable to the IntelliJ IDEA community.

Best regards,
Juraj

@JiangHongTiao JiangHongTiao added the feature New feature or request label Jan 2, 2024
@FWDekker
Copy link
Owner

FWDekker commented Jan 2, 2024

Good idea! This should be easy enough to implement, since the underlying library that generates the UUIDs already supports v6 and v7.

As for v8 UUIDs, until cowtowncoder/java-uuid-generator#47 is implemented, Randomness would have to generate v8 UUIDs without library code; perhaps just generate v4 UUIDs and replace the version bits?

@FWDekker FWDekker mentioned this issue Jan 3, 2024
@FWDekker
Copy link
Owner

FWDekker commented Jan 3, 2024

UUID versions 6, 7, and 8 have been added in #514 and will be included in Randomness v3.2.0. I aim to release this version next week or the week after; there's also a bunch of smaller changes I want to include in that release.

Let me know if there's anything else I can do. Suggestions are always welcome!

@JiangHongTiao
Copy link
Author

Thank you a lot Florine, that was super quick! I'm already looking forward to test it out! If something else cross my mind, I'll let you know :) Thanks for all your work, your extension is super helpful to me, especially in column-mode.

@FWDekker
Copy link
Owner

I've released v3.2.0, which includes the new UUID versions. It usually takes one or two working days before JetBrains approves a plugin update, after which you can update Randomness in your IDE. If you cannot wait until then, the release can also be downloaded from GitHub.

@JiangHongTiao
Copy link
Author

It's available :) Many thanks Florine!
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants