Add recent charts and reports portlet #968
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds the recent charts and report portlet. The following files were changed:
classes/Rest/Controllers/SummaryControllerProvider.php
was updated to add a new REST endpointrecentchartsreports
. This endpoint returns a user's recent charts and reports in JSON format.configuration/etl/etl_tables.d/xdb/reports.json
was updated to modify theReports
table to include the last modified date.configuration/etl/etl.d/xdmod-migration-8_1_2-8_5_0.json
was added to add the last modified field to theReports
table when migrating.classes/XDReportManager.php
was updated to return the newly addedlast_modified
field whenfetchReportTable
is called.configuration/assets.json
was updated to include the this portlethtml/gui/js/modules/ReportGenerator.js
was updated to add a new listener calledload_report
. This listener is used to fire an event that selects the report clicked in the recent charts and reports portlet.html/gui/js/report_builder/ReportsOverview.js
was updated to add a new listener calledload_report
that opens the report selected by theload_report
listener inhtml/gui/js/modules/ReportGenerator.js
.html/gui/js/modules/summary/RecentChartsReportsPortlet.js
was added to render the recent charts and reports portlet.To enable, add the following to /etc/xdmod/roles.d/summary.json
Motivation and Context
To make it easier for selected users to quickly access their recent charts and reports.
Tests performed
Manually tested the functionality. Have plans to add integrations tests.
Types of changes
Checklist: