Open therocket-gr opened 15 hours ago
https://calypso.live?image=registry.a8c.com/calypso/app:build-125287&env=jetpack |
https://calypso.live?image=registry.a8c.com/calypso/app:build-125287&env=a8c-for-agencies |
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser:
App Entrypoints (~2 bytes removed 📉 [gzipped])
Sections (~16194 bytes added 📈 [gzipped])
Legend
Generated by performance advisor bot at iscalypsofastyet.com.
This PR modifies the release build for the following Calypso Apps:
For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run install-plugin.sh $pluginSlug vdimitrakis/try/download-stats-report
on your sandbox.
Related to #
2644-gh-tumblr/a8c-dsp
Proposed Changes
added a download data button in the campaign item details page (for blaze advertising)
when clicked a loading text will appear with text generating report (adding this for translators use)
internally we call 3 DSP endpoints
1 GetStats to start the getting of stats process (this endpoint will return a report_id)
2 GetCampaignReportStatus to check the status of the report (using the report id)
3 GetCampaignReport using the report_id we call this endpoint to get the data of the campaign's stats the result will come back as a base64 encoded string
we then decode the string and start the fetching of the csv values file.
Testing Instructions
you ll need to fire up DSP in localhost on this branch 2860
then fire up Calypso and get to a campaigns details page (one that has stats would be nice or else the csv will be empty)
open up inspect so you can check your network calls
click the download data link on top of the page you should see the file downloaded in your Downloads folder
Pre-merge Checklist