Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.9.0 #3941

merged 458 commits into from Mar 15, 2018


Copy link

commented Mar 8, 2018


This release contains a lot of fixes, some of them performance related and several enormous refactors.
The three biggest changes are:

  1. We've migrated from the Meteor version of Simple Schema to the npm version. See notes in the breaking changes section below.
  2. We've dropped our dependency on the deprecated Meteor-CollectionFS package. We've replaced it with an npm package we've created called reaction-file-collections
  3. We've created a new catalog collection for use on the Product Grid when viewed by a consumer or other user without a product admin role

There's a full list of changes and fixes below, as well as detailed explanations of potential breaking changes and what you might need to do to migrate


This is a breaking change for any plugin that implements or modifies a schema based on the Meteor simple-schema package.

From the Simple Schema update

This PR updates the aldeed:simple-schema Meteor package dependency to instead depend on the simpl-schema NPM package, which is the newest release of the same library. As part of this change, there are several breaking changes and other gotchas to be aware of.

IMPORTANT! The NPM package does not play nice with the previous Meteor package. After updating to this Reaction release, run the app one time, and then look at the .meteor/versions file. Make sure that aldeed:simple-schema is not listed. If it is there, that is because you depend on another Meteor package that depends on aldeed:simple-schema. You will have to update or remove any such packages (with meteor remove / meteor add) until aldeed:simple-schema disappears from your .meteor/versions file.
Search your app for any import { SimpleSchema } from "meteor/aldeed:simple-schema" lines that you have added in your custom code, and replace them with import SimpleSchema from "simpl-schema"
Be aware that the package name does not have the "e" on "simpl". (There is a different NPM package called simple-schema with the "e", and that is NOT the one you want.)
If you have your own custom schemas, refer to the SimpleSchema changelog to update them for the breaking changes:
If you use attachSchema in your code, be aware that passing an array to attachSchema will no longer work. You should first merge all the schemas and then pass the combined schema to attachSchema

Please read the PR if you need more details Use NPM SimpleSchema rather than Meteor #3331

From the removal of CollecitonFS

If you've saved the file URLs anywhere, they're now different.








We've deleted some unused Blaze templates rather than update URL handling within them:

  • shopBrandImageOption
  • ordersListItems
  • select
  • upload
  • productMetaField
  • productMetaFieldForm
  • metaComponent
  • productDetailEdit
  • productDetailField
  • productImageGallery
  • imageDetail
  • imageUploader
  • productSocial
  • variantList
  • variant
  • Media-related publishing is changed and improved:

Publications have been added, removed, or changed:

  • CartItemImage publication is removed
  • CartImages now takes an ID
  • Added ProductGridMedia to replace Media being included with the products publication for the grid
  • Added ProductMedia
  • Added OrderImages, similar to CartImages, used for order now rather than reusing CartImages

Full notes on the PR to replace CFS #3782

From the customer product catalog

The old imports/plugins/included/product-variants/containers/productsContainer.js has been renamed to productsContainerAdmin.js and a new component named productsContainer.js now handles which products container to load based on the user's permissions. Full notes on the PR #3876

From the Dockerfile updates

reactioncommerce/base:v4.0.1 removed the following:

  • Removed the conditional MongoDB installation (via $INSTALL_MONGO env). Use mongo as a service in docker-compose, see example in README.
  • Removed the conditional PhantomJS installation (via $INSTALL_PHANTOMJS env). If PhantomJS is required in your build, you can include it in your custom Dockerfile.
    Full notes on the PR

Dockerfile Updates

  • Base image updated to reactioncommerce/base:v4.0.1 which has:
    • node:8.9.4 as base image (same Debian base as before, but with Node 8 preinstalled)
    • Meteor 1.6.1 preinstalled
  • Multi-stage build support.
    This helped reduce the size of the production image by removing un-required dependencies.
  • Final production bundle uses node:8.9.4-slim

Docker Compose changes

  • Updated existing docker-compose.yml to serve as the config for running a local development environment.
  • Added a new docker-compose-demo.yml for testing out production builds (this is the replacement for the previous docker-compose.yml).


  • Use NPM SimpleSchema rather than Meteor (#3331)


We've updated our circle ci config to use v2 of Workflows. This permits us to run additional automated tests on circle instead of using other services. We now have 6 workflow steps that must pass before a PR can be merged.


  • refactor: rename Import to Importer (#3613) .. Resolves ##1364
  • refactor: convert search modal wrapper to React (#3853)
  • refactor: replace CFS (#3782)
  • refactor: customer product grid publishing (#3876) .. Resolves #3662
  • refactor: remove unused collection hook (#3950)


  • fix: inventory updated on shopify sync (#3897) .. Resolves #3718
  • fix: settings startup error (#3939)
  • fix: email validation (#3899) .. Resolves #3733
  • fix: change all email verification links to use tokens (#3884)
  • fix: update shopId the right way. (#3947) .. Resolves #3945
  • fix: migration version after SimpleSchema NPM merge (#3929)
  • fix: ui glitches using dynamic merchandising (#3932)
  • fix: setting or changing a products perma-link causes hard refresh (#3755) .. #2246
  • fix: removing search-mongo plugin causes errors at startup (#3837) .. Resolves #3797
  • fix: Reaction.getShopId missing () (#3891)
  • fix: added delay and loader (#3796) .. #2863
  • fix: add back missing browser policy (#3894)
  • fix: discount codes limits are not honored (#3824) .. #3783
  • fix: remove cfs:graphicsmagick (#3869) .. Resolves #3868
  • fix: password validation (#3860) .. Resolves #3854
  • fix: set localstorage even when no Meteor.user exists (#3856) .. Resolves #3846
  • fix: handle misconfigured Avalara api (#3827) .. Resolves #3813
  • fix: fix for "capturing bulk orders throws server side error" (#3822) .. Resolves #3705
  • fix: shop switcher opens off-screen (#3809) .. Resolves #3619
  • fix: /shop added to URL (#3794) .. Resolves #2810
  • fix: adding country code to phone number before sending SMS (#3751) .. Resolves #3597
  • fix: changing the permalink before publishing a product results in "not found" (#3748)
  • fix: errors when updating default shipping and billing addresses (#3802)
  • fix: delayed response in localization settings (#3872)
  • fix: handle integer schema type when getting form field type (#3930)
  • fix: check for number if sms is enabled. (#3983) .. Resolves #3965
  • fix: marketplace shipping (#3981) .. Resolves #3979
  • fix: summary not shown in Invoice (#3989)
  • fix: dirty badge in product grid does not work (#3984)
  • fix: reactivity error when products are not published yet (#3970)
  • fix: global route hooks (#3896) .. Resolves #3895
  • fix: added all the missing avalara settings fields to the fieldsProps… (#3969)
  • fix: publishing group related to current shop (#3943) .. Resolves #3942
  • fix: break payment before sending to paypal (#3859) .. Resolves #1236
  • fix: delete shipping rates one at a time (#3968)
  • fix: card validator (#3892) .. Resolves #3875
  • fix: can't input refund properly (#3893) .. Resolves #3703
  • fix: clean paymentMethod objects before validating (#3961)
  • fix: console error during checkout (#3948)


  • chore: add imports/plugins/custom to eslint ignore (#3901)
  • chore: update Docker base for multi-stage builds (#3653)
  • chore: use circleci workflows 2 in circle config (#3959)
  • chore: remove ability to load Meteor.settings from settings.json (#3951)
  • chore: upgrade react-dates to 16.3.6 (#3952)


  • docs(jsdoc) - document and namespace Router.Hooks methods (#3874) .. Resolves #3840


Thanks to @pmn4 for contributing to this release!

mikemurray and others added some commits Mar 1, 2018

Merge branch 'refactor-3662-nnnnat-product-publishing' of…
…reactioncommerce/reaction into refactor-3662-nnnnat-product-publishing
Fix for `Change all email verification links to use tokens`
Resolves #3867

   - No longer use route with email query parameter
   - No longer use Blaze template to render the confirmation/error page
   upon click of registration URL
   - Use meteor-accounts method Accounts.verifyEmail to login upon
   - Don't verify Meteor.user email address in Meteor method
   "accounts/verifyAccount", because this is done implicitely in
feat: move product filters to a shared function
Move product filters to a shared function. Use shared `filterProducts` function in `Products` and `Products/grid` publication.
Merge branch 'refactor-3662-nnnnat-product-publishing' of…
…reactioncommerce/reaction into refactor-3662-nnnnat-product-publishing
refactor: refactored renderNotice method in customer product grid ite…
…m component, did some other code clean up

mikemurray and others added some commits Mar 13, 2018

Merge pull request #3984 from reactioncommerce/fix-3982-prinzdezibel-…

Fix for "dirty badge in product grid does not work"
Merge pull request #3876 from reactioncommerce/refactor-3662-nnnnat-p…

(refactor): 3662 customer product grid publishing

This comment has been minimized.

Copy link

commented Mar 14, 2018

So I just pulled this now and I get "No Products Found" as an anonymous user

Merge pull request #3959 from reactioncommerce/feat-impactmass-circle…

Update circleci config to circleci workflows 2

This comment has been minimized.

Copy link

commented Mar 14, 2018

@zenweasel #3876 was merged into this release. It's the catalog collection changes.

To see products on the grid as a customer, they must first be published by an admin.


This comment has been minimized.

Copy link

commented Mar 14, 2018

Should we have the default product published by default? @mikemurray?


This comment has been minimized.

Copy link

commented Mar 14, 2018

Products are published to the Catalog collection with a method. We'd have to call that at some point to publish the default product, but only once.

As a side note, the original grid still exists, only moved to a new file in the product-variant package. If we don't want to delay the release further we can always disable the customer only grid and revisit in the next release.

spencern added some commits Mar 14, 2018

Merge pull request #3989 from reactioncommerce/fix-3971-prinzdezibel-…

Fix for "Summary not shown in Invoice"
Merge pull request #3981 from reactioncommerce/fix-3979-akarshit-mark…

Fix #3979 marketplace shipping
Merge pull request #3983 from reactioncommerce/fix-3965-akarshit-sms-…

Fix #3965: Check for number if sms is enabled.

This comment has been minimized.

Copy link

commented Mar 14, 2018

I talked to @spencern and we agreed that it's cool to just have no product on the consumer-side. I don't think consumers have an expectation that there should be products loaded by default.


This comment has been minimized.

Copy link

commented Mar 14, 2018

Ran smoke tests and seems like it's ready to go 👍

spencern and others added some commits Mar 14, 2018

Merge pull request #4006 from reactioncommerce/fix-brent-add-catalog-…

(Fix) Add catalog migrations
Copy link

left a comment

Looking good. 👍

@spencern spencern merged commit 2b0c180 into master Mar 15, 2018

8 checks passed

WIP ready for review
ci/circleci: build Your tests passed on CircleCI!
ci/circleci: docker-build Your tests passed on CircleCI!
ci/circleci: docker-push Your tests passed on CircleCI!
ci/circleci: dockerfile-lint Your tests passed on CircleCI!
ci/circleci: eslint Your tests passed on CircleCI!
ci/circleci: test Your tests passed on CircleCI!
security/snyk No new issues

@spencern spencern deleted the release-1.9.0 branch Mar 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.