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: auto generating component id #1

Merged
merged 2 commits into from
Sep 6, 2021

Conversation

workaholicpandaren
Copy link
Owner

This PR is to fill component id values automatically when it is not explicitly given.

** IMPORTANT NOTE **
We should make sure we always have same component id for the given code across all potential multiple processes.

Approaches under hood
It MD5 hashes the whole component definition as string and take it as a seed.
Then generate randomized UUID from the seed and assign it to component.id

@workaholicpandaren workaholicpandaren merged commit effc6ef into dcc/fix-issue960 Sep 6, 2021
@workaholicpandaren workaholicpandaren deleted the feat/component-id-auto-fill branch September 6, 2021 20:10
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.

1 participant