stable

Clone or download

Read-only

Use database to display widgets

This is a part of story #10173 Have multiple dashboards How to test: * run forgeupgrade * in dashboards_lines_columns_widgets, enter a widget name and a content_id * the widget is displayed in the dashboard \o/ example for a personal dashboard: name = 'myprojects', content_id = <empty> example for a project dashboard: name = 'projectimageviewer', content_id = 1 where "content_id=1" references an entry in widget_image table: id=1, owner_id=<project_id>, owner_type='g', title='I believe I can fly', url='http://cdn7.viralscape.com/wp-content/uploads/2015/04/Flying-Cat-19.jpg' Change-Id: I394a4ab436f81a0ac73b11beb765afc125bd8294

Modified Files

Name
M src/common/Dashboard/Project/ProjectDashboardController.php +7 −3 Go to diff View file
M src/common/Dashboard/User/UserDashboardController.php +8 −3 Go to diff View file
M src/common/Dashboard/Widget/DashboardWidget.php +12 −12 Go to diff View file
M src/common/Dashboard/Widget/DashboardWidgetPresenter.php +3 −7 Go to diff View file
M src/common/Dashboard/Widget/DashboardWidgetPresenterBuilder.php +13 −7 Go to diff View file
M src/common/Dashboard/Widget/DashboardWidgetRetriever.php +3 −3 Go to diff View file
A src/common/Dashboard/Widget/OwnerInfo.php +65 −0 Go to diff View file
M src/common/autoload.php +3 −2 Go to diff View file
M src/db/mysql/database_structure.sql +38 −36 Go to diff View file
A src/db/mysql/updates/2017/201705181212_store_widget_name.php +50 −0 Go to diff View file