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

Add population attribute annotations #1571

Merged
merged 3 commits into from
Apr 17, 2024
Merged

Conversation

kungfucraig
Copy link
Member

No description provided.

@wfa-reviewable
Copy link

This change is Reviewable

Copy link
Member

@SanjayVas SanjayVas left a 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: :shipit: complete! all files reviewed, all discussions resolved (waiting on @jojijac0b)

@kungfucraig kungfucraig requested review from Marco-Premier and stevenwarejones and removed request for jojijac0b and Marco-Premier April 16, 2024 20:17
Copy link
Collaborator

@stevenwarejones stevenwarejones left a 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:

  1. the Person message will be what is included as an attribute in the PopulationSpec, correct?
  2. the population data provider would need to validate that all population_attribute fields are set (hasFoo), correct?
  3. 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: :shipit: complete! all files reviewed, all discussions resolved (waiting on @kungfucraig)

Copy link
Member Author

@kungfucraig kungfucraig left a comment

Choose a reason for hiding this comment

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

  1. Yes.
  2. 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.
  3. We don't expect nesting, just a single level of attributes. @SanjayVas please verify this.

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @kungfucraig)

Copy link
Member

@SanjayVas SanjayVas left a 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: :shipit: complete! all files reviewed, all discussions resolved (waiting on @kungfucraig)

Copy link
Collaborator

@stevenwarejones stevenwarejones left a 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: :shipit: complete! all files reviewed, all discussions resolved (waiting on @kungfucraig)

Copy link
Contributor

@Marco-Premier Marco-Premier left a 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: :shipit: complete! all files reviewed, all discussions resolved (waiting on @kungfucraig)

Copy link
Contributor

@jojijac0b jojijac0b left a 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: :shipit: complete! all files reviewed, all discussions resolved (waiting on @kungfucraig)

@kungfucraig kungfucraig enabled auto-merge (squash) April 17, 2024 15:25
@kungfucraig kungfucraig merged commit e4e586a into main Apr 17, 2024
4 checks passed
@kungfucraig kungfucraig deleted the kungfucraig/updatetestevent branch April 17, 2024 15:46
ple13 pushed a commit that referenced this pull request Aug 16, 2024
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.

6 participants