Skip to content

Fix persistent drift for model permissions object_id after v0.293#4948

Draft
denik wants to merge 2 commits intomainfrom
denik/mlops-stack-local2
Draft

Fix persistent drift for model permissions object_id after v0.293#4948
denik wants to merge 2 commits intomainfrom
denik/mlops-stack-local2

Conversation

@denik
Copy link
Copy Markdown
Contributor

@denik denik commented Apr 13, 2026

Changes

  • Model permissions object_id changed from /registered-models/MODEL_NAME to /registered-models/NUMERIC_ID, but the state entry __id__ was not updated during deploy, causing perpetual drift on subsequent plans.
  • Add ResourceModelPermissions type with DoUpdateWithID so the state ID is updated when object_id changes.

Tests

It was detected by invariant/continue_293 test with the config added in #4941

The test was marked as Slow, so it did not run on PR.

denik added 2 commits April 13, 2026 17:22
…ration

Model permissions object_id changed from /registered-models/MODEL_NAME to
/registered-models/NUMERIC_ID, but the state entry __id__ was not updated
during deploy, causing perpetual drift on subsequent plans.

Add ResourceModelPermissions type with DoUpdateWithID so the state ID is
updated when object_id changes.

Co-authored-by: Isaac
@github-actions
Copy link
Copy Markdown

Approval status: pending

/acceptance/bundle/ - needs approval

Files: acceptance/bundle/invariant/continue_293/test.toml
Suggested: @shreyas-goenka
Also eligible: @andrewnester, @pietern, @anton-107, @janniklasrose, @lennartkats-db

/bundle/ - needs approval

Files: bundle/direct/dresources/all.go, bundle/direct/dresources/permissions.go, bundle/direct/dresources/resources.yml
Suggested: @shreyas-goenka
Also eligible: @andrewnester, @pietern, @anton-107, @janniklasrose, @lennartkats-db

Any maintainer (@andrewnester, @anton-107, @pietern, @shreyas-goenka, @simonfaltum, @renaudhartert-db) can approve all areas.
See OWNERS for ownership rules.

@denik denik marked this pull request as draft April 13, 2026 15:28
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