This change places the Discover Deals and Cashback Rewards data on our product website. With this feature, the data no longer needs to be bundled directly with the extension. Instead, the extension now fetches the latest data from the product website.
Closes #20
Closes #36
Detailed description of changes:
.circleci modified for better readability
.circleci modified to shrink extension size (since the data no longer is bundled with the extension)
tools/dataProcessor.js now duplicates the json data files into the /docs directory
src/background.js can now read the data from the product website
src/background.js supports loading the latest data from the /data directory when the DEV flag is set
src/background.js now polls the product website for the latest data every hour
Added permissions to read from the product website in manifest.json
Testing done:
Ensured that the extension displays the correct deals and cashback data when browsing normally
Ensured that PROD mode works by building the product website manually and changing the data url to localhost:4000
Ensured that auto-updates work by turning down the interval to a few seconds, changing the data locally file, and then ensuring the extension does not notify me for that item when i visit the website
DO NOT MERGE until the following conditions are met:
[x] It's been longer than 24 hours since the pull request was created. This ensures we don't rush to merge in a BREAKING CHANGE.
After merging, DO NOT RELEASE until:
[x] The data is served via the production product website. Deals should be here and cashbacks should be here.
[x] Data retrieval from production website is fully tested
[x] Extensive manual testing is done
[x] #44 is closed. This is REQUIRED since we are adding a new permission.
[x] It's been longer than 24 hours since this pull request has been merged. This ensures we don't rush to merge in a BREAKING CHANGE.
[x] extension.zip is loaded in and tested. Ensures that we didn't miss out on adding any required files to the zip.
This change places the Discover Deals and Cashback Rewards data on our product website. With this feature, the data no longer needs to be bundled directly with the extension. Instead, the extension now fetches the latest data from the product website.
Closes #20 Closes #36
Detailed description of changes:
.circleci
modified for better readability.circleci
modified to shrink extension size (since the data no longer is bundled with the extension)tools/dataProcessor.js
now duplicates the json data files into the/docs
directorysrc/background.js
can now read the data from the product websitesrc/background.js
supports loading the latest data from the/data
directory when the DEV flag is setsrc/background.js
now polls the product website for the latest data every hourmanifest.json
Testing done:
localhost:4000
DO NOT MERGE until the following conditions are met:
After merging, DO NOT RELEASE until:
extension.zip
is loaded in and tested. Ensures that we didn't miss out on adding any required files to the zip.