Skip to content

Commit

Permalink
Revert "fix: use tse id param"
Browse files Browse the repository at this point in the history
This reverts commit ab8019c.
  • Loading branch information
vsukhin committed May 22, 2024
1 parent ab8019c commit 656438a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions internal/app/api/v1/testsuites.go
Original file line number Diff line number Diff line change
Expand Up @@ -852,13 +852,7 @@ func (s TestkubeAPI) ListTestSuiteTestsHandler() fiber.Handler {
func getExecutionsFilterFromRequest(c *fiber.Ctx) testresult.Filter {

filter := testresult.NewExecutionsFilter()
// id for /test-suites/ID/executions
name := c.Params("id", "")
if name == "" {
// query param for /executions?id
name = c.Query("id", "")
}

name := c.Query("id", "")
if name != "" {
filter = filter.WithName(name)
}
Expand Down

0 comments on commit 656438a

Please sign in to comment.