-
Notifications
You must be signed in to change notification settings - Fork 25
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
Conversation
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
up-core-api/uprotocol/uri.proto
Outdated
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 |
There was a problem hiding this comment.
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 ...
There was a problem hiding this comment.
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
up-core-api/uprotocol/uri.proto
Outdated
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The following adds to #121 to simplify the datamodel for UUri object.