Project

General

Profile

Feature #29379

Dashboard widgets should be cleaned when no longer available after plugin removal

Added by Marek Hulán 5 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Dashboard
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Associated revisions

Revision cc479a2b (diff)
Added by Marek Hulán 5 months ago

Fixes #29379 - don't try to load removed widget

After a plugin removal, its widgets are still stored for user dashboard.
We can detect the widget won't be able to be rendered and skip it, to
avoid ugly red boxes on dashboard.

With this patch, widget model gets a new scope that can filter only
widget that are known. Records remain in the database in case the plugin
is reinstalled later however it's silently ignored on the dashboard.

History

#1 Updated by The Foreman Bot 5 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/7533 added

#2 Updated by The Foreman Bot 5 months ago

  • Fixed in Releases 2.1.0 added

#3 Updated by Marek Hulán 5 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF