Skip to content

Bump metabase provider to 0.14.2 (fix permissions_graph unmarshal, unblock deploys)#104

Merged
catonph merged 2 commits into
mainfrom
caton/revert-wa-progress-unblock-deploy
Jun 2, 2026
Merged

Bump metabase provider to 0.14.2 (fix permissions_graph unmarshal, unblock deploys)#104
catonph merged 2 commits into
mainfrom
caton/revert-wa-progress-unblock-deploy

Conversation

@catonph
Copy link
Copy Markdown
Collaborator

@catonph catonph commented Jun 2, 2026

Why

After #103 (the WA revert) merged, terraform-apply on main still failed — this time at 'metabase_permissions_graph.graph':

'''
Error: ... 'get permissions graph'
json: cannot unmarshal object into Go struct field ... create-queries
'''

Provider 0.14.1 only modeled 'create-queries' as a scalar string. Metabase returns it as an object once a group has granular (per-schema/table) create-query permissions set via the Admin Permissions UI. A UI permissions change (not a repo change) made the provider fail on state refresh, blocking all prod deploys — including the already-merged benefit-card perf fix (#101).

Fix

Bump 'flovouin/metabase' 0.14.1 → 0.14.2. Its changelog fixes exactly this: "Handle create_queries as either a simple string or a serialized JSON object." Constraint '~> 0.14' already allowed it; the lockfile was pinned. Updated constraint to '>= 0.14.2, ~> 0.14' and refreshed the lock for linux_amd64 (CI) + darwin_arm64.

No 'permissions.tf' change — the granular UI perms are now parsed correctly instead of needing to be reverted.

Result

Unblocks terraform-apply so #101 (and everything since) deploys to Metabase.

🤖 Generated with Claude Code

catonph and others added 2 commits June 2, 2026 13:39
The WA (Washington) tenant Terraform config was merged to main before the
tenant was deploy-ready, causing terraform-apply on main to fail while
provisioning ~51 WA resources. Because Terraform applies all-or-nothing per
run, this blocked ALL main deploys to Metabase — including the benefit-card
perf fix (#101), which is correct but stuck behind the failing apply.

Reverting the WA config restores main to a cleanly-applyable state so #101 and
future changes deploy. WA dashboard work should land via its own branch once the
WA tenant (Metabase DB, permission groups, secrets) is fully set up and the
apply is verified.

Also removes stray .DS_Store files committed with that change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…marshal

terraform-apply on main started failing today at metabase_permissions_graph.graph:

  Error: Unexpected error while calling the Metabase API for 'get permissions graph'.
  json: cannot unmarshal object into Go struct field
  PermissionsGraphDatabasePermissions.groups.create-queries

Provider 0.14.1 only modeled `create-queries` as a scalar string, but Metabase
returns it as an OBJECT once a group is granted granular (per-schema/per-table)
create-query permissions via the Admin Permissions UI. So a UI permissions change
(not a repo change) made the provider fail on state refresh, blocking ALL prod
deploys — including the already-merged benefit-card perf fix (#101).

Provider 0.14.2 fixes exactly this (changelog: "Handle create_queries as either a
simple string or a serialized JSON object"). The `~> 0.14` constraint already
allowed it; the lockfile was pinned to 0.14.1. Bumped constraint to
`>= 0.14.2, ~> 0.14` and refreshed the lock for linux_amd64 (CI) + darwin_arm64.

Unblocks deploys; no permissions.tf change needed (the granular UI perms are now
parsed correctly rather than reverted).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jun 2, 2026

Warning

Review limit reached

@catonph, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 47 minutes and 8 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository: MyFriendBen/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: c472fead-da65-4b4d-9b23-cb06adbe8297

📥 Commits

Reviewing files that changed from the base of the PR and between 2532e17 and 411f20b.

⛔ Files ignored due to path filters (2)
  • .DS_Store is excluded by !**/.DS_Store
  • dbt/.DS_Store is excluded by !**/.DS_Store
📒 Files selected for processing (10)
  • .github/workflows/terraform-apply.yml
  • .github/workflows/terraform-plan.yml
  • dashboards/.terraform.lock.hcl
  • dashboards/GITHUB_SECRETS.md
  • dashboards/config_template.tf
  • dashboards/google_analytics.tf
  • dashboards/main.tf
  • dashboards/metabase.tf
  • dashboards/terraform.tfvars.example
  • dashboards/variables.tf

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

⚠️ Parsing warnings (1)
Validation error: Unrecognized key: "base_branches"
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch caton/revert-wa-progress-unblock-deploy

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

Terraform Plan 📖

Show Plan
data.external.metabase_ids: Reading...

Planning failed. Terraform encountered an error while generating this plan.


Error: Failed to create the Metabase client from username and password.

  with provider["registry.terraform.io/flovouin/metabase"],
  on metabase.tf line 2, in provider "metabase":
   2: provider "metabase" {

received unexpected response from the Metabase session API

Error: External Program Execution Failed

  with data.external.metabase_ids,
  on permissions.tf line 150, in data "external" "metabase_ids":
 150:   program = ["python3", "${path.module}/scripts/get_metabase_ids.py"]

The data source received an unexpected error while attempting to execute the
program.

Program: /usr/bin/python3
Error Message: Creating Metabase session failed with HTTP 503: Service
Unavailable

State: exit status 1

Pusher: @catonph, Action: pull_request, Environment: production

@catonph catonph merged commit aaaabb8 into main Jun 2, 2026
5 checks passed
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.

1 participant