Consent Mode related console error on View only Dashboard
Bug Description
While testing Dashboard Sharing, I encountered a console error message on the view only, main and entity dashboard. Google Site Kit API Error method:GET datapoint:consent-mode type:core identifier:site error:"Sorry, you are not allowed to do that." Chatting to @techanvil on Slack and he confirmed that we should avoid making the call on the view-only dashboard for the new Consent Mode CTA banner notification.
Screenshots
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
- Consent mode API (
GET:consent-mode) should not be called in shared dashboard, thus preventing any permission related console errors.
Implementation Brief
- [ ] Do not render
<ConsentModeSetupCTAWidgetthat calls the aforementioned API inDashboardMainAppandDashboardEntityAppin view-only dashboard. ie.{ ! viewOnlyDashboard && <ConsentModeSetupCTAWidget /> }
Test Coverage
- No changes needed.
QA Brief
Changelog entry
I've been able to reproduce this easily on shared dashboard. Moving forward straight to IBR. :tada:
IB ✔️
QA Update: ✅
Verified:
- On the Network tab no calls were made to the
GET:consent-modeAPI. - Ensured that no network error occurs for the above API endpoint.
- Verified the above in the Main and the Entity dashboard.
- No console errors occured as per ticket description.