diff --git a/.github/workflows/compliance-test.yaml b/.github/workflows/compliance-test.yaml index 4933473a3..909ddae57 100644 --- a/.github/workflows/compliance-test.yaml +++ b/.github/workflows/compliance-test.yaml @@ -86,9 +86,6 @@ jobs: python setup.py install mkdir reports - - name: Setup tmate session - uses: mxschmitt/action-tmate@v3 - - name: Test compliance run: | source venv/bin/activate diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 44214536d..11e63eae0 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -62,9 +62,6 @@ jobs: with: name: funnelBin - - name: Setup tmate session - uses: mxschmitt/action-tmate@v3 - - name: MongoTest run: | chmod +x funnel diff --git a/database/mongodb/tes.go b/database/mongodb/tes.go index 3ddb90743..978b44c82 100644 --- a/database/mongodb/tes.go +++ b/database/mongodb/tes.go @@ -62,6 +62,10 @@ func (db *MongoDB) ListTasks(ctx context.Context, req *tes.ListTasksRequest) (*t query["state"] = bson.M{"$eq": req.State} } + if req.NamePrefix != "" { + query["name"] = bson.M{"$regex": fmt.Sprintf("^%s", req.NamePrefix)} + } + for k, v := range req.GetTags() { query[fmt.Sprintf("tags.%s", k)] = bson.M{"$eq": v} }