-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add population attribute annotations #1571
Conversation
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.
Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @jojijac0b)
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.
just to make sure I'm on the same page:
- the Person message will be what is included as an attribute in the PopulationSpec, correct?
- the population data provider would need to validate that all population_attribute fields are set (hasFoo), correct?
- Is the population data provider expected to check all nested message (recursively check all fields) to see what fields are population_attribute-able? Or just the top-level fields?
Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @kungfucraig)
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.
- Yes.
- The population data provider will need to verify 1) all fields set by the message in the Any/attribute are annotated with "population_attribute" in the message definition; 2) maybe converse too: all fields in the message that have the "population_attribute" set are present in the Any/attribute message in the population spec.
- We don't expect nesting, just a single level of attributes. @SanjayVas please verify this.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @kungfucraig)
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 don't expect nesting, just a single level of attributes. @SanjayVas please verify this.
Correct. This is a restriction on template design, at least in guidelines. Might be enforced by PBM validator.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @kungfucraig)
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.
@jojijac0b fyi
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @kungfucraig)
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.
Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @kungfucraig)
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.
Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @kungfucraig)
No description provided.