Граф коммитов

467 Коммитов

Автор SHA1 Сообщение Дата
Bianca Danforth 86154afe34
Update retirement notice in README 2019-09-30 10:28:41 -07:00
Bianca Danforth 76c532ceb0
Merge pull request #323 from mozilla/no-curl-v
Don't use `curl -v` when requesting signing
2019-08-27 13:26:42 -07:00
Michael Cooper 355c9be267
Don't use `curl -v` when requesting signing 2019-08-27 13:25:09 -07:00
Bianca Danforth e8df6cc99a
23.0.0 2019-08-27 10:11:55 -07:00
Bianca Danforth 3a8435c75d
Merge pull request #322 from mozilla/sunset-update
Final sunset release of Price Tracker
2019-08-27 10:09:20 -07:00
Bianca Danforth e82821304a
Final tweaks on page titles and notice logic 2019-08-22 21:28:40 -07:00
Bianca Danforth 1a42c2c5f3
Show initial retirement notice on install
As long as Price Tracker is still listed on AMO, it's possible for users to install Price Tracker after the update is published, and those users should receive the retirement notice as well.
2019-08-22 15:14:30 -07:00
Bianca Danforth 70d5ef9330
Add notice to README 2019-08-21 21:48:34 -07:00
Bianca Danforth 42cbba1361
Differentiate initial from final notice
Though the same page is used, a query string is passed via the url for the page to indicate if it has been opened as the final notice. This modifies the header and one sentence in the first paragraph to indicate the extension will self-uninstall in one day.
2019-08-21 21:19:48 -07:00
Bianca Danforth dece32eb4a
Fix stylelint errors 2019-08-21 20:23:40 -07:00
Bianca Danforth 929d6c96de
Add retirement notice logic
* Using the web extension 'storage.local' API, store the date of the last update, when the first notice was shown.
* Each subsequent startup, check if 30 or more days have passed since the first notice was shown.
* If so, show a final notice and store the date that the final notice was shown.
* Each subsequent startup, check if 1 or more days have passed since the final notice was shown.
* If so, uninstall the extension.

This logic can be tested by making use of two new config override prefs by adding them to 'web-ext-config.js', e.g. (replace AT with @):
* 'extensions.shopping-testpilotATmozilla.org.initialNoticeDuration=10'
  * Sets the period between the initial and final retirement notice to 10 seconds.
* 'extensions.shopping-testpilotATmozilla.org.finalNoticeDuration=10'
  * Sets the period between the final retirement notice and self-uninstall to 10 seconds.
2019-08-21 20:02:43 -07:00
Bianca Danforth 093aa5f02d
Add retirement notice page on update
Clicking the 'Uninstall' button on the retirement notice page will prompt the user with a confirmation dialogue before uninstalling the extension.
2019-08-21 19:58:23 -07:00
Bianca Danforth 403db1a120
Update packages 2019-08-21 10:53:44 -07:00
Bianca Danforth 695bd1414f
Only show privacy policy on install
Previously, this page was opened on every 'runtime.onInstalled' event, which includes extension updates and browser updates.
2019-08-21 10:51:51 -07:00
Bianca Danforth 7c0aac6752
Merge pull request #317 from mozilla/fathom3
Going to self R+ this as the review feedback was minor, and I did a manual check.
2019-08-21 10:48:55 -07:00
Bianca Danforth 4bb737a753
Incorporate review feedback 2019-08-21 10:44:16 -07:00
Bianca Danforth 96eadb04f5
Replace ONEISH and ZEROISH with 1 and 0, respectively 2019-08-21 10:35:43 -07:00
Bianca Danforth 83c1ea4bf7
Use Fathom 3.0 in extension
Also removes the now unused getCoeffsInOrder function and updates some training-related comments
2019-07-01 12:39:27 -07:00
Bianca Danforth 456a9437bb
Update coeffs and biases with results from training on 'title' and 'price'
With updated vectors for 'title' and 'price' features based on the optimized coefficients and bias for 'image', the 'title' and 'price' features were trained using 'fathom-train' and their coefficients and biases updated.
2019-07-01 12:22:33 -07:00
Daniel Hertenstetin a67205044e
Replaces vectors depending on image coefficients and bias
In Price Tracker, the product 'title' and 'price' features are dependent upon the 'image' feature results (e.g. there is a rule for the 'price' feature called 'isNearImage' which scores a candidate 'price' element based on its proximity to the most likely 'image' element).

As a result, the final weights and bias from training the 'image' feature need to be taken into account before vectorizing the 'title' and 'price' features. This commit updates the vectors for 'title' and 'price' to take this into account.
2019-07-01 12:19:26 -07:00
Daniel Hertenstetin 6633a3619a
Replaces price vectors with non-null vectors
After fixing the issue with a 'null' feature vector value in the price vectors, the vectors were re-generated using FathomFox's Vectorizer. Now there are no longer any 'null' feature vector values and training can proceed.
2019-07-01 12:17:49 -07:00
Daniel Hertenstetin 1d8861887e
Fixes rule name mismatch for price regex.
As mentioned in [this issue](https://github.com/mozilla/fathom-fox/issues/35), it's possible that a feature vector will contain a 'null' value for one or more rules, which will cause 'fathom-train' to throw an error.

In this case, the reason for the 'null' value was a name mismatch.

I opted to change the method name as its naming convention did not match the other rules.
2019-07-01 12:16:32 -07:00
Daniel Hertenstetin c9f334642d
Updates coeffs and biases with results from training on "images"
Trained 'image' using the ['fathom-train'](https://github.com/mozilla/fathom/blob/master/cli/fathom_web/train.py) CLI and image training and validation vectors from FathomFox's Vectorizer. Copied the resulting coefficients and bias into trainees.js and its imports.
2019-07-01 12:13:46 -07:00
Daniel Hertenstetin 8555d0ce1d
Updates vectors with full set of samples
Previous vectors were based on an incomplete corpus of tagged product pages. These vectors are based on the complete set of Amazon, Ebay, Best Buy, Walmart and Home Depot samples tagged in the [Fathom Commerce Samples](https://drive.google.com/drive/folders/1YKfDHx2niy9nCrdKCSDt7lcU9uWbHzon) folder.

These samples were divided into 3 buckets using ['fathom-pick'](https://github.com/mozilla/fathom/blob/master/cli/fathom_web/pick.py): training, validation and test set, which moves samples at random. The split percentage for the complete corpus into these buckets was 80/10/10.
2019-07-01 12:07:29 -07:00
Daniel Hertenstetin d4afb8102b
Adds fix for image candidates that have 1-D bounding boxes
Sometimes a feature vector can output a 'null' value. This will [throw an error](https://github.com/mozilla/fathom-fox/issues/35) during training with the new 'fathom-train' CLI.

Possible causes include:
* A name mismatch between the 'name' value passed into a rule function (its second argument) and the name of the rule in the list of [ruleName, coefficient] tuples referenced in the ruleset object.
* A score callback might be failing to return a number.
* A corner case of a DOM or CSSOM specification used by a score callback; e.g. innerText could return null instead of the empty string in Firefox.

In this case, a score callback was failing to return a number if the width or height of the element passed into 'aspectRatio' was 0.
2019-07-01 12:02:01 -07:00
Bianca Danforth cc7bc631d4
Update files copied into fathom-trainees for training
Training with Fathom 3.0 requires some changes to the structure of the coefficients and ruleset used and has a new vectorize step.

Fathom changes include:
* Fathom now handles weighting the rules by their coefficients.
* Rule weighting is no longer exponential.
* Each rule should return a value between 0 and 1, inclusive
* Coefficients should be passed into Fathom as a [rule_name, coefficient] tuple
* Fathom's 'rule' function now takes a second argument, an object literal with a single key, 'name'. Its value is the name of the rule. This string literal value must match the rule_name passed into Fathom as part of the tuple mentioned above.
* [Fathom training](http://mozilla.github.io/fathom/training.html?highlight=vectorizer#running-the-trainer) now includes a vectorize step using the Vectorizer in FathomFox
  * The Vectorizer generates a 'vectors.json' file for training and validation for each feature (for Price Tracker which has three features (the product image, title and price), this would be 6 new files).
  * The main purpose of each 'vectors.json' file is to provide a 'feature' vector for each candidate element for a given feature. This feature vector has a floating point value for each rule. The ith value corresponds to the raw score for that element for the ith rule passed into Fathom for that feature's list of [rule_name, coefficient] tuples.
2019-07-01 11:45:54 -07:00
Bianca Danforth 1e881c5188
Merge pull request #312 from mozilla/issue-template
Create issue template
2019-05-20 11:08:47 -07:00
Robert Helmer 298b9cd889
Merge branch 'master' into issue-template 2019-05-20 10:08:33 -07:00
Robert Helmer 9dd7c1863a
Merge pull request #315 from mozilla/update-packages
Update packages
2019-05-17 08:54:34 -07:00
Bianca Danforth bd046eb239
Merge branch 'master' into issue-template 2019-05-17 08:51:58 -07:00
Bianca Danforth 1db8b0c4d4
Update packages 2019-05-10 13:26:46 -07:00
Bianca Danforth e981392881
Merge pull request #314 from mozilla/readme-notice
Add 'Not under active development' notice to README
2019-04-19 15:36:55 -07:00
Bianca Danforth c5074e113e
Add 'Not under active development' notice to README
Hopefully this will help manage folks' expectations regarding bugs, feature requests, etc.

This is a better solution than to archive the project, since it is still possible it will be worked on some time in the future.
2019-04-19 15:34:03 -07:00
Bianca Danforth 44a57986c5
Create issue template
This template will load any time a new issue is created to ensure some basic information is provided about the issue.
2019-04-10 11:05:10 -07:00
Bianca Danforth d990f8f3da
Merge pull request #310 from Mozilla-GitHub-Standards/master
Add Mozilla Code of Conduct
2019-04-01 10:09:23 -07:00
Mozilla-GitHub-Standards e863b09516 Add Mozilla Code of Conduct file
Fixes #309.

_(Message COC002)_
2019-03-30 00:11:17 -07:00
Bianca Danforth 693fe3b612
22.0.0 2019-03-20 08:56:52 -07:00
Bianca Danforth dfacc96c42
Merge pull request #308 from mozilla/rename
Change name to Price Tracker
2019-03-20 08:53:08 -07:00
Bianca Danforth 3ae66cf2c1
Remove feedback survey 2019-03-19 21:46:31 -07:00
Bianca Danforth 63d8b6099c
Change name to Price Tracker
Find and replace all instances of "Price Wise", "price-wise" and "price_wise" (case insensitive) with the following exceptions:
* The telemetry event category, 'extension.price_wise' for continuity.
* The survey URLs (for [feedback](https://qsurvey.mozilla.com/s3/price-wise) linked to in the popup and the now flagged off [UR study](https://qsurvey.mozilla.com/s3/Price-Wise-Research-Study)).

Note: Updating the name of the project in `package.json` and calling `npm install` also triggered adding an additional [`optional`](https://docs.npmjs.com/files/package-lock.json#optional) key in `package-lock.json` for some devDeps.
2019-03-19 21:46:13 -07:00
Bianca Danforth 6cdc2f3f64
Merge pull request #306 from mozilla/update-packages
Update development dependency packages
2019-02-21 13:00:40 -08:00
Bianca Danforth 541d3b887d
Update development dependency packages 2019-02-21 10:25:29 -08:00
Michael Kelly 9e89cbc1d0
21.0.0 2019-01-28 14:18:45 -08:00
Michael Kelly 221951e55f
Merge pull request #305 from Osmose/first-launch-consent
Add first-run prompt that informs the user about data collection.
2019-01-28 14:13:31 -08:00
Michael Kelly de13c87061
Add first-run prompt that informs the user about data collection. 2019-01-28 11:11:32 -08:00
Michael Kelly ee8ce79b8b
Merge pull request #304 from Osmose/remove-support
#302: Remove links to deleted SUMO page.
2019-01-27 16:32:35 -08:00
Michael Kelly 60b8c2e884
#302: Remove links to deleted SUMO page. 2019-01-25 12:09:16 -08:00
Michael Kelly efe915623d
Merge pull request #303 from Osmose/test-page-transfer
Switch to using a Mozilla-hosted test page.
2019-01-25 11:32:55 -08:00
Michael Kelly 93830b1394
Add fake product page to README. 2019-01-25 11:30:03 -08:00
Michael Kelly c0ff58bd21
Switch to using a Mozilla-hosted test page. 2019-01-24 11:35:03 -08:00