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

2026 Коммитов

Автор SHA1 Сообщение Дата
Michael Kelly 3e5759f9aa
Fix #756: Add keys transform and intersection operator to filter expressions. 2017-06-22 17:38:01 -07:00
Mike Cooper 6d52f03e07 Merge pull request #826 from Osmose/fix-xpcshell-tests
Fix #824: Run add-on tests using mochitest/xpcshell-test directly.
2017-06-22 15:08:09 -07:00
Michael Kelly d70c622593
Fix #824: Run add-on tests using mochitest/xpcshell-test directly. 2017-06-22 14:44:30 -07:00
Michael Kelly 7f35075a28 Merge pull request #825 from Osmose/fix-addon-tests
Fix #823: Properly wait for test webextension to startup.
2017-06-21 18:42:05 -07:00
Michael Kelly 38d79a7d38
Fix #823: Properly wait for test webextension to startup.
The tests for installing and uninstalling an add-on use a webextension,
and if we uninstall the add-on before it finishes starting up, the
async startup process throws an error.
2017-06-21 16:59:54 -07:00
Michael Kelly cb4ee55e5d Make self-repair static and remove recipe previews. (#821) 2017-06-21 11:03:30 -04:00
Michael Kelly fcdcbb5dfd Fix #811: Do not execute action hooks if fetching recipes fails. (#814)
This explicitly prevents side-effects from running pre-execution hooks
and then returning before we run the post-execution hooks.
2017-06-16 16:36:35 -07:00
Victor Ng 113e61b5b6 initial version of an install and uninstall hook (#778)
* initial version of an install and uninstall hook

* Generate file:// URI for test XPI in test instead of handling chrome://.

* dropped leftover debug message in test case

* Inlined some functions as per code review and added more assertions into the testcase to verify that the addon was properly installed by checking the value of the addonId

* Cleanup brackets

* Replaced named function with an immediately invoked function to create the closure around the Promise that wraps AddonManager.getAddonByID

* signed the normandy.xpi file

* * reworked the installAddon api to use async functions as per code review
* Reordered the listener and install() invocation to avoid possible race
* double check the addonID after installation
* added a timeout to let the XPI installation complete properly.

* Added a testcase and missing capture of the onDownloadFailed event when installing an addon
added testcase to uninstall invalid addon id

* wrapped functions with sandboxmanager.wrapAsync
dropped "return null"

* Add missing return and refactor tests.

* cleaned up as per review by @gijsk
2017-06-16 10:48:39 -04:00
Michael Kelly 3cab778b95 Fix #812: Pin Babili dependencies to known-good versions. (#813)
* Fix #812: Pin Babili dependencies to known-good versions.

* Assign sinon to a global in head_xpc.js.
2017-06-14 15:05:08 -07:00
Mike Cooper 8cda4c91e9 mozjexl: Handle undefined with filter expressions well. (#808)
Fixes #767
2017-06-14 08:13:17 -07:00
Mike Cooper 16a919f321 Backport changes from mozilla-central (#810)
* Bug 1370652 - Handle more rejections in code exercised by browser-chrome tests.

These fixes are in preparation of making browser-chrome tests fail when there are unhandled Promise rejections.

This is a backport from mozilla-central changeset 985626bc4d9c.

* Bug 1369855 - Update sinon.js to version 2.3.2.

Fixes #809.

* Fix lint issues
2017-06-13 14:53:05 -07:00
Mike Cooper 2b2be79360 addon-builder: Cachebust Dockerfile to pick up Rust 1.18.0 (#807)
Fixes #806
2017-06-12 14:28:17 -07:00
Michael Kelly e0247707c1 Update the signature x5u cache bust to be configurable. (#805)
* Update the signature x5u cache bust to be configurable.

* Document new x5u cache bust setting and fix lint issues.
2017-06-12 13:22:45 -07:00
Mike Cooper 568568d268 Bug 1366006 - Move Heartbeat CSS into add-on. (#770)
* Bug 1366006 - Move Heartbeat CSS into add-on.

* recipe-client-addon: Fix lint errors in Heartbeat CSS

* recipe-client-addon: Use correct url when unloading Heartbeat CSS on OSX.

* Fix lint errors

* recipe-client-addon: Copy Heartbeat SVGs from mozilla-central

* Fix packaging error and path

* Add !important to Hearbeat CSS rules.
2017-06-12 12:58:32 -07:00
Mike Cooper 288d630bde recipe-server: Check for expired signing certificates. (#795)
* recipe-server: Check for expired signing certificates.

Fixes #792.

* Add cert checking to contract tests.
2017-06-12 10:28:42 -07:00
Mark Banner 50d0f79c4b recipe-client-addon: Remove unnecessary globals definition for ESLint, since eslint-plugin-mozilla is working correctly now. (#800) 2017-06-08 10:59:39 -07:00
Michael Kelly 0e3272621c Clarify what "type" is meant in the preference experiment docs. (#799)
This was confused for the "branch type" instead of the value type of
the preference.
2017-06-08 09:07:44 -06:00
Mike Cooper 4a2ebc9c0d recipe-server: Cachebust the x5u url for recipe signatures. (#793)
* recipe-server: Cachebust the x5u url for recipe signatures.

* Review feedback

* Fix linting error.
2017-06-05 19:39:23 -07:00
Mike Cooper 60aa7c42ec
Merge branch 'mozjexl' 2017-06-05 15:16:03 -07:00
Mike Cooper 4c27ae7ba6
Convert jexl to mozjexl 2017-06-05 09:40:52 -07:00
Michael Kelly 4c84378456 Fix bug 1368977: Remove es2015 and stage-0 preset from Babel. (#791)
* Fix bug 1368977: Remove es2015 and stage-0 preset from Babel.

The minimum Firefox version that we target for both the system add-on
and the website is Firefox 52, which includes support for most es2015
features, including native async/await syntax. This means we can safely
switch to using those features without transpiling them via Babel.

This removes both the es2015 and stage-0 presets from Babel, and
includes a few individual plugins that we still need support for.
This also adds a new Webpack plugin to enable it to parse async/await
syntax while resolving modules.

UglifyJS can't parse async/await syntax, even on the harmony branch, so
this switches to using Babili for minification. We use the webpack
plugin instead of including it in the Babel config so that code inside
node_modules, which is ignored by babel-loader, also gets minified.

* Switch to app user in linting Dockerfile before running npm install.

This is a workaround for a permissions-related npm crash within Docker
on CircleCI. See also:

- https://github.com/npm/npm/issues/16892
- https://github.com/npm/npm/issues/16766
- Similar yarn issue with the workaround:
  https://github.com/yarnpkg/yarn/issues/918
2017-06-05 09:32:05 -07:00
Mike Cooper e69093233f recipe-client-addon: Fix test failure in PreferenceExperiments. (#790)
Fixes #789.
2017-06-02 16:27:06 -07:00
Mike Cooper 5b8d8e0599 taskcluster: Use hg robustcheckout to clone mozilla-central. (#788)
This should help with #757.
2017-06-02 14:56:10 -07:00
R&D dc93497778 Make recipe create/update use transactions (#781)
* Make recipe create/update use transactions

* Missing return for create and update

* Fix linting issues

* Missed unused import

* Remove reversion_transaction decorator

* Remove unused import
2017-05-31 19:21:10 -04:00
Mike Cooper 464bee4f86
Merging mozjexl to master 2017-05-26 10:27:04 -07:00
Mike Cooper 4d836a3f8f Merge pull request #772 from Standard8/eslint-plugin-mozilla-update
Update the versions of ESLint modules (especially eslint-plugin-mozilla) and cleanup some of the now unnecessary global definitions
2017-05-23 11:15:48 -07:00
Mark Banner a51123f4cb Update the versions of ESLint modules (especially eslint-plugin-mozilla) and cleanup some of the now unnecessary global definitions 2017-05-23 18:48:30 +01:00
R&D 54b8a106fb Merge pull request #775 from rehandalal/fix-typo
Fix typo in fetchAction
2017-05-23 13:10:20 -04:00
Michael Kelly 0df331a768 Merge pull request #774 from Osmose/null-recipe-attribute-listing
Gracefully handle rendering null attributes in the Recipe list view.
2017-05-23 10:09:48 -07:00
Rehan Dalal a3759c7379
Fix typo in fetchAction 2017-05-23 12:46:08 -04:00
Michael Kelly 38d8396c2d
Gracefully handle rendering null attributes in the Recipe list view.
typeof null === 'object', which means the check to see if a value is
an object will pass for null attributes. However, calling .map on the
value afterwards will throw if it is null. Instead, this fix uses the
isObject helper from underscore.
2017-05-23 01:36:03 -07:00
R&D 9075769665 Merge pull request #725 from mozilla/recipe-page-filters
Recipe page filters
2017-05-22 16:20:11 -04:00
Mike Cooper 0a08277a64 Merge pull request #771 from rehandalal/crud-actions
Implement outstanding actions
2017-05-22 11:02:24 -07:00
Rehan Dalal 73e28c9b27
Fix linting issue 2017-05-19 23:56:52 -04:00
Michael Kelly 794094f197 Merge pull request #768 from mythmon/minimal-signed-endpoint-signature-reset
recipe-server: Add migration to reset signatures
2017-05-19 09:33:49 -07:00
Andy Mikulski 4f97b75fea
Fix draft/status indicators 2017-05-19 10:26:47 -06:00
Andy Mikulski d059cec776
Fix FilterSelectors docstrings 2017-05-19 10:13:00 -06:00
Mike Cooper 3d603d4d86
recipe-server: Add migration to reset signatures
This is because the change to send only required fields in the
/api/v1/recipe/signed/ in f816fbcfc6.
2017-05-19 08:23:55 -07:00
Michael Kelly 9f31823ece Merge pull request #766 from Osmose/dev-approvals
Fix #764: Add PEER_APPROVAL_ENFORCED setting.
2017-05-18 16:50:14 -07:00
Michael Kelly 4655a8224f
Remove unnecessary f-string. 2017-05-18 14:21:12 -07:00
Michael Kelly 5c73ebd3fa
Fix #764: Add PEER_APPROVAL_ENFORCED setting.
The setting controls whether the rule that an approver on an approval
request must not be the same user who created it is enforced or not.

Disabling this setting makes local development (as well as QA in
testing environments) more convenient.
2017-05-18 13:12:56 -07:00
Andy Mikulski 50e696ddb8
Code review 2017-05-17 13:52:42 -06:00
Mike Cooper 095ddf753d Merge pull request #761 from rehandalal/api-v2
Branch API into v1/v2
2017-05-17 09:41:01 -07:00
Rehan Dalal 7a61a73e4a
Feedback and lint issues 2017-05-16 18:27:40 -04:00
Rehan Dalal 87eba1611b
Merge branch 'master' into branch 'api-v2' 2017-05-16 18:21:55 -04:00
Rehan Dalal 37911ba0bb
Amend comment 2017-05-16 18:18:50 -04:00
R&D f816fbcfc6 Merge pull request #760 from mythmon/reduce-signed-data
recipe-server: Remove unneeded data from signed recipe listing.
2017-05-16 18:16:02 -04:00
Rehan Dalal fe75f14950
Fix failing test 2017-05-16 18:05:55 -04:00
Rehan Dalal ab45f7b8ab
Feedback 2017-05-16 17:46:32 -04:00
Rehan Dalal 884118c123
Fix lint issues 2017-05-16 17:31:50 -04:00