Skip to content

Conversation

@RafaelPaulovic
Copy link
Contributor

@RafaelPaulovic RafaelPaulovic commented Nov 13, 2025

What is this feature?

Matches behavior between legacy and unified storage delete path on legacy API when forceDeleteRules is set.

Why do we need this feature?

To address data mismatches between storages when deleting provisioned dashboards.

Who is this feature for?

Grafana users that have provisioned folders and dashboards.

Which issue(s) does this PR fix?:

User cannot delete provisioned dashboards in unified when using forceDeleteRules=true , this is a mismatch of behavior with legacy and since we delete in legacy first then the mismatch occurs.

Special notes for your reviewer:

Please check that:

  • It works as expected from a user's perspective.
  • If this is a pre-GA feature, it is behind a feature toggle.
  • The docs are updated, and if this is a notable improvement, it's added to our What's New doc.

@RafaelPaulovic RafaelPaulovic requested review from a team as code owners November 13, 2025 11:53
@RafaelPaulovic RafaelPaulovic requested review from academo, owen-d, radiohead, toddtreece and wbrowne and removed request for a team November 13, 2025 11:53
@github-actions github-actions bot added this to the 12.4.x milestone Nov 13, 2025
@RafaelPaulovic RafaelPaulovic force-pushed the delete-provisioned-dashboards-us--with-forceDeleteRules branch from 733da2f to baa284a Compare November 13, 2025 15:05
@RafaelPaulovic RafaelPaulovic force-pushed the delete-provisioned-dashboards-us--with-forceDeleteRules branch from baa284a to 74776b3 Compare November 13, 2025 17:05
@RafaelPaulovic RafaelPaulovic requested review from a team as code owners November 13, 2025 17:05
@RafaelPaulovic RafaelPaulovic requested review from JohnnyQQQQ, grafakus and oscarkilhed and removed request for a team November 13, 2025 17:05
@RafaelPaulovic RafaelPaulovic force-pushed the delete-provisioned-dashboards-us--with-forceDeleteRules branch from 74776b3 to 5c95d3c Compare November 13, 2025 17:07
@RafaelPaulovic RafaelPaulovic added no-backport Skip backport of PR no-changelog Skip including change in changelog/release notes labels Nov 13, 2025
Copy link
Contributor

@mustafasencer mustafasencer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

GVR: gvr,
})

time.Sleep(1 * time.Second) // Give provisioner time to process
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit - do we imperatively need this? We are already using EventuallyWithT just below for up to 10 seconds. Just saying because the folder integration tests already take a lot of time (+150s) to complete.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it's needed, other provisioning tests were doing and the EventuallyWithT together so I got it from there.

Removed

@RafaelPaulovic RafaelPaulovic enabled auto-merge (squash) November 14, 2025 13:10
@RafaelPaulovic RafaelPaulovic dismissed stephaniehingtgen’s stale review November 14, 2025 13:11

Outdated/addressed comment

@RafaelPaulovic RafaelPaulovic merged commit 5a111bc into main Nov 14, 2025
132 checks passed
@RafaelPaulovic RafaelPaulovic deleted the delete-provisioned-dashboards-us--with-forceDeleteRules branch November 14, 2025 13:11
@grafana-delivery-bot
Copy link
Contributor

grafana-delivery-bot bot commented Nov 14, 2025

🚀 Your submission is now being built and packaged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/backend no-backport Skip backport of PR no-changelog Skip including change in changelog/release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants