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

Simplification of UUri Data model #126

Merged
merged 7 commits into from
May 3, 2024
Merged

Simplification of UUri Data model #126

merged 7 commits into from
May 3, 2024

Conversation

stevenhartley
Copy link
Contributor

The following adds to #121 to simplify the datamodel for UUri object.

czfdcn added 2 commits April 30, 2024 16:58
The following adds to #121 to simplify the datamodel for UUri object.
We also need to make the attributes optional, this is to allow us to do wildcard UUris to not set the UEntity and/or UResource information
bytes id = 3; // Unique ID for the device, could be a VIN, SHA 128, or any other identifier
// *NOTE:* MAX length is 255 bytes
}
string name = 1; // Domain & device name as a string
Copy link
Contributor

Choose a reason for hiding this comment

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

FMPOV this would need to remain optional in order to consistently support matching any value across UUri's components.

Alternatively, we could think about defining explicit wildcard characters/values ...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We discussed this and we are using explicit value definitions so there is no optional

optional uint32 version_minor = 4; // optional minor version of the uEntity
optional uint32 id = 1; // UEntity ID
optional uint32 version_major = 2; // optional major version of the uEntity
optional uint32 version_minor = 3; // optional minor version of the uEntity
Copy link
Contributor

Choose a reason for hiding this comment

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

I haven't seen any place yet where minor version is being used. Is this really needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have removed it. Minor is really only needed at the application layer.

@stevenhartley stevenhartley marked this pull request as ready for review May 3, 2024 11:10
@stevenhartley stevenhartley requested a review from sophokles73 May 3, 2024 11:11
@sophokles73 sophokles73 added the enhancement New feature or request label May 3, 2024
Copy link
Contributor

@sophokles73 sophokles73 left a comment

Choose a reason for hiding this comment

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

LGTM

@sophokles73 sophokles73 merged commit cffabcc into main May 3, 2024
2 checks passed
@stevenhartley stevenhartley deleted the uri_cleanup branch May 16, 2024 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants