From 933e02a13619c484ae79772e8b81c57a6748a1b8 Mon Sep 17 00:00:00 2001 From: Elizabeth Ileleji Date: Tue, 14 Apr 2026 11:21:41 -0400 Subject: [PATCH 1/2] Changed page analytics dashboard from looker to powerbi --- .../Controller/MassAnalyticsController.php | 21 ++++++++----------- 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/docroot/modules/custom/mass_analytics/src/Controller/MassAnalyticsController.php b/docroot/modules/custom/mass_analytics/src/Controller/MassAnalyticsController.php index 2e4e309338..e8999cc6ea 100644 --- a/docroot/modules/custom/mass_analytics/src/Controller/MassAnalyticsController.php +++ b/docroot/modules/custom/mass_analytics/src/Controller/MassAnalyticsController.php @@ -40,18 +40,15 @@ class MassAnalyticsController extends ControllerBase { * The iframe render array or a no match message render array. */ public function build(NodeInterface $node): array { - $config = $this->config('mass_analytics.settings'); - if (!empty($config->get('looker_studio_url'))) { - $iframe_url = $config->get('looker_studio_url') . '?params=%7B"nodeId":' . $node->id() . ',"nodeId2":' . $node->id() . '%7D'; - return [ - '#theme' => 'mass_analytics_iframe', - '#config' => $iframe_url, - '#cache' => [ - 'max-age' => 0, - ], - ]; - } - return []; + $iframe_url = 'https://app.powerbigov.us/reportEmbed?reportId=5180080b-8681-424d-a679-c45fe3037bf6&autoAuth=true&ctid=3e861d16-48b7-4a0e-9806-8c04d81b7b2a&filter=aggregated_node_analytics%2FnodeId+eq+' . $node->id() . '&filterPaneEnabled=false'; + + return [ + '#theme' => 'mass_analytics_iframe', + '#config' => $iframe_url, + '#cache' => [ + 'max-age' => 0, + ], + ]; } /** From 565ee30dbd71e61c7ca88910b072f359759dcc0c Mon Sep 17 00:00:00 2001 From: Elizabeth Ileleji Date: Tue, 14 Apr 2026 11:22:52 -0400 Subject: [PATCH 2/2] Added change log file --- changelogs/DP-39502.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 changelogs/DP-39502.yml diff --git a/changelogs/DP-39502.yml b/changelogs/DP-39502.yml new file mode 100644 index 0000000000..05a9c4e8a5 --- /dev/null +++ b/changelogs/DP-39502.yml @@ -0,0 +1,41 @@ +# +# Write your changelog entry here. Every pull request must have a changelog yml file. +# +# Change types: +# ############################################################################# +# You can use one of the following types: +# - Added: For new features. +# - Changed: For changes to existing functionality. +# - Deprecated: For soon-to-be removed features. +# - Removed: For removed features. +# - Fixed: For any bug fixes. +# - Security: In case of vulnerabilities. +# +# Format +# ############################################################################# +# The format is crucial. Please follow the examples below. For reference, the requirements are: +# - All 3 parts are required and you must include "Type", "description" and "issue". +# - "Type" must be left aligned and followed by a colon. +# - "description" must be indented with 2 spaces followed by a colon +# - "issue" must be indented with 4 spaces followed by a colon. +# - "issue" is for the Jira ticket number only e.g. DP-1234 +# - No extra spaces, indents, or blank lines are allowed. +# +# Example: +# ############################################################################# +# Fixed: +# - description: Fixes scrolling on edit pages in Safari. +# issue: DP-13314 +# +# You may add more than 1 description & issue for each type using the following format: +# Changed: +# - description: Automating the release branch. +# issue: DP-10166 +# - description: Second change item that needs a description. +# issue: DP-19875 +# - description: Third change item that needs a description along with an issue. +# issue: DP-19843 +# +Changed: + - description: Changed page analytics dashboard from looker to powerbi. + issue: DP-39502