Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Some missing hook -> webhook renaming change
天舟0f4139deaf13
diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.tsindex 67e9a98ef1..c2d22558c4 100644--- a/frontend/src/router/index.ts+++ b/frontend/src/router/index.ts@@ -445,7 +445,7 @@ const routes: Array<RouteRecordRaw> = [props: true,},{- path: "hook/new",+ path: "webhook/new",name: "workspace.project.hook.create",meta: {title: () => "Create webhook",@@ -454,7 +454,7 @@ const routes: Array<RouteRecordRaw> = [props: true,},{- path: "hook/:projectWebhookSlug",+ path: "webhook/:projectWebhookSlug",name: "workspace.project.hook.detail",meta: {title: (route: RouteLocationNormalized) => {diff --git a/server/acl_casbin_policy_dba.csv b/server/acl_casbin_policy_dba.csvindex acf8965f10..7f56f169cf 100644--- a/server/acl_casbin_policy_dba.csv+++ b/server/acl_casbin_policy_dba.csv@@ -15,9 +15,9 @@ p, DBA, /project/{projectId}/member/{memberId}, PATCHp, DBA, /project/{projectId}/member/{memberId}, DELETEp, DBA, /project/{projectId}/webhook, GETp, DBA, /project/{projectId}/webhook, POST-p, DBA, /project/{projectId}/webhook/{hookId}, GET-p, DBA, /project/{projectId}/webhook/{hookId}, PATCH-p, DBA, /project/{projectId}/webhook/{hookId}, DELETE+p, DBA, /project/{projectId}/webhook/{webhookId}, GET+p, DBA, /project/{projectId}/webhook/{webhookId}, PATCH+p, DBA, /project/{projectId}/webhook/{webhookId}, DELETEp, DBA, /environment, POSTp, DBA, /environment, GETp, DBA, /environment/{id}, PATCHdiff --git a/server/acl_casbin_policy_developer.csv b/server/acl_casbin_policy_developer.csvindex 4426cfc825..1697425e76 100644--- a/server/acl_casbin_policy_developer.csv+++ b/server/acl_casbin_policy_developer.csv@@ -15,9 +15,9 @@ p, DEVELOPER, /project/{projectId}/member/{memberId}, PATCHp, DEVELOPER, /project/{projectId}/member/{memberId}, DELETEp, DEVELOPER, /project/{projectId}/webhook, GETp, DEVELOPER, /project/{projectId}/webhook, POST-p, DEVELOPER, /project/{projectId}/webhook/{hookId}, GET-p, DEVELOPER, /project/{projectId}/webhook/{hookId}, PATCH-p, DEVELOPER, /project/{projectId}/webhook/{hookId}, DELETE+p, DEVELOPER, /project/{projectId}/webhook/{webhookId}, GET+p, DEVELOPER, /project/{projectId}/webhook/{webhookId}, PATCH+p, DEVELOPER, /project/{projectId}/webhook/{webhookId}, DELETEp, DEVELOPER, /environment, GETp, DEVELOPER, /instance, GETp, DEVELOPER, /instance/{id}, GETdiff --git a/server/acl_casbin_policy_owner.csv b/server/acl_casbin_policy_owner.csvindex 2dfd5b56f7..6eb678999b 100644--- a/server/acl_casbin_policy_owner.csv+++ b/server/acl_casbin_policy_owner.csv@@ -19,9 +19,9 @@ p, OWNER, /project/{projectId}/member/{memberId}, PATCHp, OWNER, /project/{projectId}/member/{memberId}, DELETEp, OWNER, /project/{projectId}/webhook, GETp, OWNER, /project/{projectId}/webhook, POST-p, OWNER, /project/{projectId}/webhook/{hookId}, GET-p, OWNER, /project/{projectId}/webhook/{hookId}, PATCH-p, OWNER, /project/{projectId}/webhook/{hookId}, DELETE+p, OWNER, /project/{projectId}/webhook/{webhookId}, GET+p, OWNER, /project/{projectId}/webhook/{webhookId}, PATCH+p, OWNER, /project/{projectId}/webhook/{webhookId}, DELETEp, OWNER, /environment, POSTp, OWNER, /environment, GETp, OWNER, /environment/{id}, PATCHdiff --git a/server/project_webhook.go b/server/project_webhook.goindex a869197bb0..8c062eb57f 100644--- a/server/project_webhook.go+++ b/server/project_webhook.go@@ -73,15 +73,15 @@ func (s *Server) registerProjectWebhookRoutes(g *echo.Group) {return nil})- g.GET("/project/:projectId/webhook/:hookId", func(c echo.Context) error {+ g.GET("/project/:projectId/webhook/:webhookId", func(c echo.Context) error {_, err := strconv.Atoi(c.Param("projectId"))if err != nil {return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Project ID is not a number: %s", c.Param("projectId"))).SetInternal(err)}- id, err := strconv.Atoi(c.Param("hookId"))+ id, err := strconv.Atoi(c.Param("webhookId"))if err != nil {- return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Project webhook ID is not a number: %s", c.Param("hookId"))).SetInternal(err)+ return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Project webhook ID is not a number: %s", c.Param("webhookId"))).SetInternal(err)}find := &api.ProjectWebhookFind{@@ -106,15 +106,15 @@ func (s *Server) registerProjectWebhookRoutes(g *echo.Group) {return nil})- g.PATCH("/project/:projectId/webhook/:hookId", func(c echo.Context) error {+ g.PATCH("/project/:projectId/webhook/:webhookId", func(c echo.Context) error {_, err := strconv.Atoi(c.Param("projectId"))if err != nil {return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Project ID is not a number: %s", c.Param("projectId"))).SetInternal(err)}- id, err := strconv.Atoi(c.Param("hookId"))+ id, err := strconv.Atoi(c.Param("webhookId"))if err != nil {- return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Project webhook ID is not a number: %s", c.Param("hookId"))).SetInternal(err)+ return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Project webhook ID is not a number: %s", c.Param("webhookId"))).SetInternal(err)}hookPatch := &api.ProjectWebhookPatch{@@ -147,15 +147,15 @@ func (s *Server) registerProjectWebhookRoutes(g *echo.Group) {return nil})- g.DELETE("/project/:projectId/webhook/:hookId", func(c echo.Context) error {+ g.DELETE("/project/:projectId/webhook/:webhookId", func(c echo.Context) error {_, err := strconv.Atoi(c.Param("projectId"))if err != nil {return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Project ID is not a number: %s", c.Param("projectId"))).SetInternal(err)}- id, err := strconv.Atoi(c.Param("hookId"))+ id, err := strconv.Atoi(c.Param("webhookId"))if err != nil {- return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Webhook ID is not a number: %s", c.Param("hookId"))).SetInternal(err)+ return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Webhook ID is not a number: %s", c.Param("webhookId"))).SetInternal(err)}hookDelete := &api.ProjectWebhookDelete{