-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(collaboration): support for configuring database administrators and participating in approvals #2168
Conversation
* feat(database-owner): 1. Add the owner role to the database, supporting approval workflow to use the owner role of the database. 2. Add variables for integrating external approval. such as: database.owner.accounts database.owner.ids database.owner.names database.name environment.name task.description risk.level 2024-02-29 * feat(database-owner): 1. Add the owner role to the database, supporting approval workflow to use the owner role of the database. 2. Add variables for integrating external approval. such as: database.owner.accounts database.owner.ids database.owner.names database.name environment.name task.description risk.level 2024-02-29 * feat(database-owner): 1. Add the owner role to the database, supporting approval workflow to use the owner role of the database. 2. Add variables for integrating external approval. such as: database.owner.accounts database.owner.ids database.owner.names database.name environment.name task.description risk.level 2024-02-29 * feat(database-owner): 1. Add the owner role to the database, supporting approval workflow to use the owner role of the database. 2. Add variables for integrating external approval. such as: database.owner.accounts database.owner.ids database.owner.names database.name environment.name task.description risk.level odc.task.url 3. Adjust the database permission request form, and split the form when applying for multiple databases. 2024-03-06 * feat(database-owner): 1. Add the owner role to the database, supporting approval workflow to use the owner role of the database. 2. Add variables for integrating external approval. such as: database.owner.accounts database.owner.ids database.owner.names database.name environment.name task.description risk.level odc.task.url 3. Adjust the database permission request form, and split the form when applying for multiple databases. 2024-03-06 * feat(database-owner): 1. Add the owner role to the database, supporting approval workflow to use the owner role of the database. 2. Add variables for integrating external approval. such as: database.owner.accounts database.owner.ids database.owner.names database.name environment.name task.description risk.level odc.task.url 3. Adjust the database permission request form, and split the form when applying for multiple databases. 2024-03-07 * feat(database-owner): 1. Add the owner role to the database, supporting approval workflow to use the owner role of the database. 2. Add variables for integrating external approval. such as: database.owner.accounts database.owner.ids database.owner.names database.name environment.name task.description risk.level odc.task.url 3. Adjust the database permission request form, and split the form when applying for multiple databases. 2024-03-08 * feat(database-owner): 1. Add the owner role to the database, supporting approval workflow to use the owner role of the database. 2. Add variables for integrating external approval. such as: database.owner.accounts database.owner.ids database.owner.names database.name environment.name task.description risk.level odc.task.url 3. Adjust the database permission request form, and split the form when applying for multiple databases. 2024-03-08 * feat(database-owner): 1. Add the owner role to the database, supporting approval workflow to use the owner role of the database. 2. Add variables for integrating external approval. such as: database.owner.accounts database.owner.ids database.owner.names database.name environment.name task.description risk.level odc.task.url 3. Adjust the database permission request form, and split the form when applying for multiple databases. 2024-03-08
# Conflicts: # server/odc-service/src/main/java/com/oceanbase/odc/service/connection/database/DatabaseService.java
...-server/src/main/java/com/oceanbase/odc/server/web/controller/v2/FlowInstanceController.java
Outdated
Show resolved
Hide resolved
...dc-service/src/main/java/com/oceanbase/odc/service/collaboration/project/ProjectService.java
Outdated
Show resolved
Hide resolved
server/odc-service/src/main/java/com/oceanbase/odc/service/flow/FlowInstanceService.java
Show resolved
Hide resolved
...er/odc-service/src/main/java/com/oceanbase/odc/service/flow/model/CreateFlowInstanceReq.java
Show resolved
Hide resolved
server/odc-service/src/main/java/com/oceanbase/odc/service/iam/ResourceRoleService.java
Show resolved
Hide resolved
...c-service/src/main/java/com/oceanbase/odc/service/regulation/risklevel/RiskLevelService.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
server/odc-service/src/main/java/com/oceanbase/odc/service/flow/FlowInstanceService.java
Show resolved
Hide resolved
server/odc-service/src/main/java/com/oceanbase/odc/service/flow/FlowInstanceService.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
suggest merge to 4.2.x after 424BP published
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
What type of PR is this?
type-feature
module-collaboration
What this PR does / why we need it:
In common usage, users wanna that the tickets related to different databases are approved by different user. Which means that the approvers is related to the database.
This PR implements these features:
by:
DatabaseController
, add a new APImodifyDatabasesOwner
for configuring database adminiatrators;V_4_3_0_1__add_resource_role.yaml
, addOWNER
ofODC_DATABASE
;SQL_CONTENT_JSON_ARRAY("sql.content.json.array")
DATABASE_OWNERS_IDS("database.owner.ids")
DATABASE_OWNERS_ACCOUNTS("database.owner.accounts")
DATABASE_OWNERS_NAMES("database.owner.names")
DATABASE_NAME("database.name")
ENVIRONMENT_NAME("environment.name")
TASK_DESCRIPTION("task.description")
RISK_LEVEL("risk.level")
PROJECT_OWNER_IDS("project.owner.ids")
PROJECT_OWNER_ACCOUNTS("project.owner.accounts")
PROJECT_OWNER_NAMES("project.owner.names")
ODC_TASK_URL("odc.task.url")
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Additional documentation e.g., usage docs, etc.: