Skip to content

Commit

Permalink
Merge pull request #416 from MUzairS15/MUzairS15/meshmodel
Browse files Browse the repository at this point in the history
update comp filter
  • Loading branch information
Mohd Uzair authored Nov 26, 2023
2 parents e6f80c5 + 6604dbe commit 680a6d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions models/meshmodel/core/v1alpha1/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ func GetMeshModelComponents(db *database.Handler, f ComponentFilter) (c []Compon

if f.ReturnAnnotations {
finder = finder.Where("component_definition_dbs.metadata->>'isAnnotation' = true")
} else {
finder = finder.Where("component_definition_dbs.metadata->>'isAnnotation' = false")
}

if f.APIVersion != "" {
Expand Down

0 comments on commit 680a6d2

Please sign in to comment.