forked from metabase/metabase
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Embed downloads ms3 - analytics (metabase#46335)
* update static_embed_code_copied to use downloads (metabase#45944) * copy schema file for better diff * adds downloads field to appearance in embed_flow schema * update event to send `downloads` parameter, update e2e tests * fix test for dwonloads: false * fix: use correct schema version for embed flow analytics (metabase#46053) * update `dashboard_pdf_exported` and use it in embedding context (metabase#46076) * copy schema for better diff * adds `dashboard_accessed_via` to the `dashboard_pdf_exported` event * download_results_clicked event (metabase#46132) * adds download_results_clicked event + e2e tests * make strings nullable * adds maxLength * switch back to if/then as it seems more readable * refactor: use the resourceType to determine the download params instead of re-doing the logic * fix ''question' is possibly 'undefined'.' * split resource_type into resource_type and accessed_via to also consider interactive-embedding and sdk * edit comment * adds test for ad-hoc-question * Update frontend/src/metabase/query_builder/actions/downloading.ts Co-authored-by: Mahatthana (Kelvin) Nomsawadi <me@bboykelvin.dev> * makes describe message more consistent * "else if" => if * fix describe block name * convert downloads event to use enum for download_type and export_type * resource_type should be an enum too * fix line added in the wrong place during merges --------- Co-authored-by: Mahatthana (Kelvin) Nomsawadi <me@bboykelvin.dev> * Update frontend/src/metabase/public/components/EmbedFrame/EmbedFrame.tsx Co-authored-by: Mahatthana (Kelvin) Nomsawadi <me@bboykelvin.dev> * adds enum schema to dashboard_accessed_via * fix accessed_via for sdk embeds * update comments to explain why we send 0 when dashboardId is null * only send dashboard_id as a number when it is a number, as expected by snowplow * remove un-needed async/await from saveAsPDF function * rename frontend/src/metabase/redux/downloading-analytics.ts -> frontend/src/metabase/redux/downloads-analytics.ts * fix cy.log message --------- Co-authored-by: Mahatthana (Kelvin) Nomsawadi <me@bboykelvin.dev>
- Loading branch information
Showing
13 changed files
with
763 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.