Skip to content

Conversation

hunter-ni
Copy link
Contributor

@hunter-ni hunter-ni commented Oct 22, 2025

AB#3410683

What does this Pull Request accomplish?

This set of changes adds an id field to each metadata store entity message type.

Why should this Pull Request be merged?

This facilitates referencing the IDs of these metadata store entities in other parts of the API, such as when creating a TestResult and associating it with existing metadata.

What testing has been done?

Implementation and automated testing added for these changes as part of the core Data Store Service / Metadata Store Service

@hunter-ni hunter-ni linked an issue Oct 22, 2025 that may be closed by this pull request
{
// The unique identifier of the UUT instance
// This value should be a string representation of a GUID.
string id = 1;
Copy link
Contributor Author

@hunter-ni hunter-ni Oct 22, 2025

Choose a reason for hiding this comment

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

I chatted with Nick about these added fields, and his inclination is that we should name these fields as id, rather than as (for instance) uut_instance_id. (Note that blue-box IDs like Step.step_id and TestResult.test_result_id currently use a more fully qualified name. It sounds like there may be interest in changing this though.)

Copy link
Contributor

@csjall csjall Oct 23, 2025

Choose a reason for hiding this comment

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

I don't care whether we standardize on message_id or id, I just care that we use it consistently between the data store and metadata store messages.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@nick-beer, should I add an issue concerning needing to update/refactor for use of id in the DataStoreService as well? Any other thoughts?

Copy link
Collaborator

Choose a reason for hiding this comment

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

yeah - makes sense to me to update them and keep everything in sync.

@hunter-ni hunter-ni requested review from a team, csjall and nick-beer October 22, 2025 20:41
@hunter-ni hunter-ni marked this pull request as ready for review October 22, 2025 20:42
{
// The unique identifier of the UUT instance
// This value should be a string representation of a GUID.
string id = 1;
Copy link
Contributor

@csjall csjall Oct 23, 2025

Choose a reason for hiding this comment

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

I don't care whether we standardize on message_id or id, I just care that we use it consistently between the data store and metadata store messages.

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.

Include Ids in Metadata Objects

5 participants