Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pluggable dashboard widget types #1833

Merged
merged 20 commits into from Feb 22, 2016
Merged

Conversation

dennisoelkers
Copy link
Member

What this PR does:

  • Separating DashboardWidget and WidgetStrategy classes to serve different concerns:
    • DashboardWidget: persisting the widget configuration
    • WidgetStrategy: defining the strategy to compute a widget’s value.
  • Moving WidgetStrategy interface and all required classes into plugin module
  • Turning existing subclasses of DashboardWidget into WidgetStrategy classes
  • Adding bindings mapping class names/type aliases to WidgetStrategy factories
  • Adding factory to create WidgetStrategy instances based on class name/type alias
  • Separate dashboard/widget REST resources preparing to offer resource which returns available widget types + config information
  • Extract widget value caching into separate WidgetResultCache class, used by REST resources but not tied into persistence/strategy classes.
  • Some cleanup of duplicated TimeRange handling.

What this PR does not do:

  • Supplying endpoint to list available widget types/config schemas
  • Configuration checks for supplied widget configuration
  • UI functionality

@bernd bernd force-pushed the feature-pluggable-dashboard-widget-types branch from b531731 to 858a8a0 Compare February 22, 2016 09:56
@bernd bernd self-assigned this Feb 22, 2016
bernd added a commit that referenced this pull request Feb 22, 2016
…dget-types

Pluggable dashboard widget types
@bernd bernd merged commit 113e0c6 into master Feb 22, 2016
@bernd bernd deleted the feature-pluggable-dashboard-widget-types branch February 22, 2016 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants