Skip to content

Conversation

@ecmadao
Copy link
Collaborator

@ecmadao ecmadao commented Mar 12, 2025

  • Support grant workspace level role for group resource
resource "bytebase_group" "developers" {
  email = "[email protected]"
  title = "Bytebase Developers"
  roles = ["roles/projectDeveloper"]
}
  • Support sql review config resource
resource "bytebase_review_config" "sample" {
  depends_on = [
    bytebase_environment.test,
    bytebase_environment.prod
  ]

  resource_id = "review-config-sample"
  title       = "Sample SQL Review Config"
  enabled     = true
  resources = toset([
    bytebase_environment.test.name,
    bytebase_environment.prod.name
  ])
  rules {
    type   = "column.no-null"
    engine = "MYSQL"
    level  = "WARNING"
  }
  rules {
    type   = "table.require-pk"
    engine = "MYSQL"
    level  = "ERROR"
  }
}

PS: Custom Approval flows already supported

@ecmadao ecmadao requested a review from d-bytebase March 12, 2025 08:30
@ecmadao ecmadao enabled auto-merge (squash) March 12, 2025 08:30
@ecmadao ecmadao merged commit 558d642 into main Mar 12, 2025
4 checks passed
@ecmadao ecmadao deleted the chore/BYT-7060 branch March 12, 2025 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants