Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: get projects id (#5507)

rebelice2ab203be31f3
diff --git a/backend/api/v1/database_service.go b/backend/api/v1/database_service.go
index 2d0f76f363..ae7b6172d4 100644
--- a/backend/api/v1/database_service.go
+++ b/backend/api/v1/database_service.go
@@ -530,7 +530,7 @@ func (s *DatabaseService) ListSlowQueries(ctx context.Context, request *v1pb.Lis
for _, expr := range filters {
switch expr.key {
case filterKeyProject:
- reg := regexp.MustCompile(`^projects/(\w+)`)
+ reg := regexp.MustCompile(`^projects/(.+)`)
match := reg.FindStringSubmatch(expr.value)
if len(match) != 2 {
return nil, status.Errorf(codes.InvalidArgument, "invalid project filter %q", expr.value)