Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat(backend): forbid creating new issues in the default project (#3903)
p0ny69820d355b4e
diff --git a/server/issue.go b/server/issue.goindex faca492a4f..2dff621533 100644--- a/server/issue.go+++ b/server/issue.go@@ -332,6 +332,10 @@ func (s *Server) registerIssueRoutes(g *echo.Group) {}func (s *Server) createIssue(ctx context.Context, issueCreate *api.IssueCreate) (*api.Issue, error) {+ if issueCreate.ProjectID == api.DefaultProjectID {+ return nil, echo.NewHTTPError(http.StatusBadRequest, "Cannot create a new issue in the default project")+ }+// Run pre-condition check first to make sure all tasks are valid, otherwise we will create partial pipelines// since we are not creating pipeline/stage list/task list in a single transaction.// We may still run into this issue when we actually create those pipeline/stage list/task list, however, that's