Skip to content

Commit

Permalink
🐛 PrepareForArchetype should use criteria and tags (konveyor#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 <slucidi@redhat.com>
  • Loading branch information
mansam authored and aufi committed Oct 30, 2023
1 parent 720212e commit c61ea49
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 c61ea49

Please sign in to comment.