Skip to content

Commit

Permalink
Add missing execution-keyed entities for custom filters
Browse files Browse the repository at this point in the history
Signed-off-by: Katrina Rogan <katroganGH@gmail.com>
  • Loading branch information
katrogan committed Jan 15, 2025
1 parent 91d0383 commit 0e9387c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions flyteadmin/pkg/common/filters.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,11 @@ var executionIdentifierFields = map[string]bool{

// Entities that have special case handling for execution identifier fields.
var executionIdentifierEntities = map[Entity]bool{
Execution: true,
NodeExecution: true,
TaskExecution: true,
Execution: true,
NodeExecution: true,
NodeExecutionEvent: true,
TaskExecution: true,
Signal: true,
}

var entityMetadataFields = map[string]bool{
Expand Down
2 changes: 1 addition & 1 deletion flyteadmin/pkg/repositories/gormimpl/signal_repo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func TestListSignals(t *testing.T) {
signalModels := []map[string]interface{}{toSignalMap(*signalModel)}
mockSelectQuery := GlobalMock.NewMock()
mockSelectQuery.WithQuery(
`SELECT * FROM "signals" WHERE project = $1 AND domain = $2 AND name = $3 LIMIT 20`).WithReply(signalModels)
`SELECT * FROM "signals" WHERE execution_project = $1 AND execution_domain = $2 AND execution_name = $3 LIMIT 20`).WithReply(signalModels)

signals, err := signalRepo.List(ctx, interfaces.ListResourceInput{
InlineFilters: []common.InlineFilter{
Expand Down

0 comments on commit 0e9387c

Please sign in to comment.