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

✨ Surface assessment tags on Archetype resource #502

Merged
merged 2 commits into from
Oct 4, 2023

Conversation

mansam
Copy link
Collaborator

@mansam mansam commented Oct 3, 2023

  • Use TagRefs on the Archetype resource
  • Add virtual tags inherited from assessments to the Tags field on the Archetype resource
  • Fixed a bug where an application would be denied membership in an archetype that wasn't a strict subset of another archetype.

Signed-off-by: Sam Lucidi <slucidi@redhat.com>
@mansam mansam requested a review from jortel October 3, 2023 20:41
@mansam mansam changed the title Surface assessment tags on Archetype resource ✨ Surface assessment tags on Archetype resource Oct 3, 2023
Copy link
Member

@aufi aufi left a comment

Choose a reason for hiding this comment

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

LGTM

api/archetype.go Outdated
@@ -331,6 +345,7 @@ type Archetype struct {
Comments string `json:"comments" yaml:"comments"`
Tags []Ref `json:"tags" yaml:"tags"`
CriteriaTags []Ref `json:"criteriaTags" yaml:"criteriaTags"`
AssessmentTags []Ref `json:"assessmentTags" yaml:"assessmentTags"`
Copy link
Contributor

@jortel jortel Oct 4, 2023

Choose a reason for hiding this comment

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

Why not use TagRef for Tags and differentiate then based on source like applications? I assume they are virtual tags?

Signed-off-by: Sam Lucidi <slucidi@redhat.com>
@mansam mansam force-pushed the archetype-assessment-tags branch from a5d18f9 to 1a5f19f Compare October 4, 2023 19:42
Copy link
Contributor

@jortel jortel left a comment

Choose a reason for hiding this comment

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

LGTM

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.

3 participants