Skip to content

Commit

Permalink
🐛 PrepareForArchetype should use criteria and tags (#508)
Browse files Browse the repository at this point in the history
Previously PrepareForArchetype was using only the membership criteria to
autofill assessments, but the enhancement specifies that it should use
the archetype tags as well as the criteria tags.

Fixes https://issues.redhat.com/browse/MTA-1396

Signed-off-by: Sam Lucidi <[email protected]>
  • Loading branch information
mansam committed Oct 6, 2023
1 parent e30dbbc commit 47a3daa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions assessment/pkg.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ func PrepareForArchetype(tagResolver *TagResolver, archetype *model.Archetype, a
for _, t := range archetype.CriteriaTags {
tagSet.Add(t.ID)
}
for _, t := range archetype.Tags {
tagSet.Add(t.ID)
}

assessment.Sections, _ = json.Marshal(prepareSections(tagResolver, tagSet, sections))

Expand Down

0 comments on commit 47a3daa

Please sign in to comment.