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 2.0.0 rc.6 #4755

Merged
merged 76 commits into from
Nov 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
5496912
use container list instead of a single container in propel service ma…
griggheo Sep 27, 2018
7431800
use container list instead of a single container in propel service ma…
griggheo Sep 27, 2018
63be5cd
deploy to ECS on any branch starting with *release* (still commented …
griggheo Sep 28, 2018
fa01a19
Added migration for adding available payment methods to shops.
rosshadden Oct 12, 2018
3c8d6c7
Lint fixes.
rosshadden Oct 12, 2018
5825b6a
feat: use appEvents to handle email sending + move SMTP email logic t…
dancastellon Oct 15, 2018
40a8da1
feat: skip sendSMTPEmail if selected email provider is not SMTP
dancastellon Oct 15, 2018
8c5dc14
feat: move SMTP email code to new email-smtp included plugin
dancastellon Oct 15, 2018
c56031d
Merge branch 'release-2.0.0-rc.5' of https://github.com/reactioncomme…
dancastellon Oct 16, 2018
0d88591
chore: fix eslint issues
dancastellon Oct 16, 2018
4cfbb68
feat: override email config form w/o having to remove reaction-email-…
dancastellon Oct 16, 2018
bc14102
Better use of mongo cursors.
rosshadden Oct 16, 2018
ff6c626
Better handled checks for payment methods being enabled, and made a s…
rosshadden Oct 16, 2018
d01e62f
feat: Add a CORS-enabled endpoint for refresh token in Hydra plugin
impactmass Oct 16, 2018
cf5aa02
Set availablePaymentMethods to empty array rather than starting with …
rosshadden Oct 16, 2018
a77249c
chore: fix eslint issue
dancastellon Oct 16, 2018
79f93a2
feat: primaryShop GraphQL query
dancastellon Oct 16, 2018
eb3fd37
test: primaryShop GraphQL query test
dancastellon Oct 16, 2018
ffe981a
Merge remote-tracking branch 'origin/release-2.0.0-rc.5' into feat-47…
rosshadden Oct 17, 2018
c88dd13
Bumped payment methods migration number.
rosshadden Oct 17, 2018
23f2e0e
Merge branch 'release-2.0.0-rc.5' of https://github.com/reactioncomme…
dancastellon Oct 17, 2018
7257d26
chore: fix eslint issue in primaryShop test
dancastellon Oct 17, 2018
d9f0bef
chore: bump version
aldeed Oct 17, 2018
f3a441b
chore: Skip failing integration tests
focusaurus Oct 17, 2018
c3b4807
feat: update to Meteor 1.8 final
aldeed Oct 17, 2018
6b3d3a4
fix: query function for primaryShop
dancastellon Oct 17, 2018
3ad8dbe
test: update test for primaryShop query
dancastellon Oct 17, 2018
c51316b
chore: Skip failing integration tests
focusaurus Oct 17, 2018
f7512fe
put integration tests back in, but skipped
focusaurus Oct 17, 2018
0bd04ef
Merge branch 'chore-pete-skip-failing-integration-tests' of github.co…
focusaurus Oct 17, 2018
d7c7e6b
Merge pull request #4753 from reactioncommerce/feat-4750-aldeed-meteo…
spencern Oct 18, 2018
44d7fd9
Merge branch 'master' into release-2.0.0-rc.6
spencern Oct 18, 2018
b50fbfa
Added payment method queries and mutations to simpleGraphQLClient store.
rosshadden Oct 17, 2018
2317d4f
Use availablePaymentMethods call to populate payment methods list on …
rosshadden Oct 17, 2018
9ae8681
Used paymentMethods query to populate admin payment method select field.
rosshadden Oct 17, 2018
3efe7e5
Hooked up payment method toggles to enablePaymentMethodForShop mutation.
rosshadden Oct 17, 2018
9b3fdae
Filtered out marketplace payment method.
rosshadden Oct 17, 2018
20406ef
Added back support for discount codes as a payment method.
rosshadden Oct 18, 2018
2a856ab
Replace then() with await; allow setting multiple origins
impactmass Oct 18, 2018
947bbb8
Merge pull request #4747 from reactioncommerce/feat-4727-dancastellon…
aldeed Oct 18, 2018
7758ea2
Merge pull request #4743 from reactioncommerce/feat-350-impactmass-re…
aldeed Oct 18, 2018
8c503a0
use a single propel.yaml file
griggheo Oct 18, 2018
a93c46e
Merge pull request #4751 from reactioncommerce/chore-pete-skip-failin…
aldeed Oct 18, 2018
e06279f
Merge branch 'release-2.0.0-rc.6' into propel-ecs-multiple-containers
griggheo Oct 18, 2018
0a4182d
use proper CIRCLE_SHA1 variable
griggheo Oct 18, 2018
8975921
chore: update changelog for v2.0.0-rc.6
spencern Oct 18, 2018
6bf6460
put back filter for only deploying to ECS for release branches
griggheo Oct 18, 2018
ca051bb
Update base image version
impactmass Oct 19, 2018
491b5a2
Update to use meteor npm
impactmass Oct 19, 2018
42f0e80
Commit package-lock
impactmass Oct 19, 2018
6253021
fix: restore showing discount codes entry at checkout
aldeed Oct 19, 2018
5c392d4
feat: update payment settings UI to support multiple payment methods …
aldeed Oct 19, 2018
29647fc
feat: add generic createMutationFunction to simple GraphQL client
aldeed Oct 21, 2018
623130b
fix: payment total in order summary is now formatted
aldeed Oct 21, 2018
27128a3
feat: finish moving Marketplace Stripe payment method to marketplace pkg
aldeed Oct 21, 2018
6f4929b
fix: improve handling of charge errors during order creation
aldeed Oct 21, 2018
95bdcb7
feat: migrate marketplace Stripe from Stripe to Marketplace plugin
aldeed Oct 21, 2018
d37e12b
Merge pull request #4760 from reactioncommerce/chore-4631-impactmass-…
kieckhafer Oct 21, 2018
b435f41
Merge pull request #4729 from reactioncommerce/feat-4717-payment-meth…
aldeed Oct 22, 2018
045cbf3
Merge branch 'release-2.0.0-rc.6' into feat-4719-client-ui-payment-me…
aldeed Oct 22, 2018
954d009
Merge pull request #4749 from reactioncommerce/feat-4719-client-ui-pa…
aldeed Oct 22, 2018
234af8f
Merge branch 'release-2.0.0-rc.5' of https://github.com/reactioncomme…
dancastellon Oct 22, 2018
dc5c928
fix: keep toggles shown, width 100% in action view
aldeed Oct 24, 2018
34d48f2
fix: register sendSMTPEmail event in startup function
dancastellon Oct 25, 2018
289dc70
Merge pull request #4740 from reactioncommerce/feat-4730-dancastellon…
aldeed Oct 25, 2018
159d684
fix: Import Babel config from package.json and export in babel.config…
dancastellon Oct 25, 2018
7bcb4ec
chore: fix eslint issue
dancastellon Oct 25, 2018
9d719e6
different ECS deployment scripts and propel manifests for release bra…
griggheo Oct 25, 2018
dd14373
chore: add more comments around 2 babel configs
dancastellon Oct 25, 2018
2c8fb02
example ENV variables
griggheo Oct 25, 2018
84fef6b
Merge pull request #4782 from reactioncommerce/fix-4781-dancastellon-…
spencern Oct 26, 2018
7f69ae5
Merge pull request #4772 from reactioncommerce/fix-4713-aldeed-action…
nnnnat Oct 26, 2018
55fac48
fix: sms secrets shared with unauthed users
spencern Nov 1, 2018
3d3c4cb
fix: dashboard routes available for unauthed users
spencern Nov 1, 2018
09d6420
Merge pull request #4758 from reactioncommerce/propel-ecs-multiple-co…
spencern Nov 5, 2018
7815d9d
chore: update CHANGELOG for rc.6
spencern Nov 6, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions .circleci/bin/ecs-deploy-feature-branch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#!/bin/bash

sudo apt-get -y install python3-pip wget
sudo pip3 install awscli

export ENVIRONMENT=feat
export CLUSTER=core
export SERVICE_SUFFIX=$CIRCLE_BRANCH
export SERVICE1=reaction-core
export CONTAINER1=core
export core_CIRCLE_SHA1=$CIRCLE_SHA1

PROPEL_CONFIG_FILE="propel-feat.yaml"
if [ ! -f ${PROPEL_CONFIG_FILE} ]; then
echo "Propel configuration file not found!"
exit 1
fi

if [ -z "${AWS_REGION}" ]; then
export AWS_REGION=us-west-2
fi

ENV_NAME_UPPERCASE=$(echo $ENVIRONMENT | awk '{print toupper($0)}')
AWS_ACCESS_KEY_ID_VAR_NAME=CLOUDFORMATION_${ENV_NAME_UPPERCASE}_AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY_VAR_NAME=CLOUDFORMATION_${ENV_NAME_UPPERCASE}_AWS_SECRET_ACCESS_KEY

if [ "${!AWS_ACCESS_KEY_ID_VAR_NAME}" ]; then
export AWS_ACCESS_KEY_ID=${!AWS_ACCESS_KEY_ID_VAR_NAME}
fi

if [ "${!AWS_SECRET_ACCESS_KEY_VAR_NAME}" ]; then
export AWS_SECRET_ACCESS_KEY=${!AWS_SECRET_ACCESS_KEY_VAR_NAME}
fi

echo Running aws s3 cp s3://${S3_PROPEL_ARTIFACTS_BUCKET}/propel-linux-amd64 ./propel
aws s3 cp s3://${S3_PROPEL_ARTIFACTS_BUCKET}/propel-linux-amd64 ./propel

sudo mv propel /usr/local/bin/propel
sudo chmod +x /usr/local/bin/propel

RELEASE_DESCRIPTION="CircleCI build URL: ${CIRCLE_BUILD_URL}"
propel param copy -f ${PROPEL_CONFIG_FILE} --env $ENVIRONMENT --cluster $CLUSTER --service $SERVICE1 --container $CONTAINER1 --suffix $SERVICE_SUFFIX --overwrite
propel param set ROOT_URL=https://${SERVICE1}-${SERVICE_SUFFIX}.$ENVIRONMENT.reactioncommerce.com/ -f ${PROPEL_CONFIG_FILE} --env $ENVIRONMENT --cluster $CLUSTER --service $SERVICE1 --container $CONTAINER1 --suffix $SERVICE_SUFFIX --overwrite
propel release create --deploy -f ${PROPEL_CONFIG_FILE} --env $ENVIRONMENT --cluster $CLUSTER --descr "${RELEASE_DESCRIPTION}" --service $SERVICE1 --suffix $SERVICE_SUFFIX

export SERVICE2=storefront
export CONTAINER2=storefront
propel param copy -f ${PROPEL_CONFIG_FILE} --env $ENVIRONMENT --cluster $CLUSTER --service $SERVICE2 --container $CONTAINER2 --suffix $SERVICE_SUFFIX --overwrite
propel param set CANONICAL_URL=https://${SERVICE1}-${SERVICE_SUFFIX}.$ENVIRONMENT.reactioncommerce.com -f ${PROPEL_CONFIG_FILE} --env $ENVIRONMENT --cluster $CLUSTER --service $SERVICE2 --container $CONTAINER2 --suffix $SERVICE_SUFFIX --overwrite
propel param set OAUTH2_REDIRECT_URL=https://${SERVICE2}-${SERVICE_SUFFIX}.$ENVIRONMENT.reactioncommerce.com/callback -f ${PROPEL_CONFIG_FILE} --env $ENVIRONMENT --cluster $CLUSTER --service $SERVICE2 --container $CONTAINER2 --suffix $SERVICE_SUFFIX --overwrite
propel param set OAUTH2_IDP_HOST_URL=https://${SERVICE1}-${SERVICE_SUFFIX}.$ENVIRONMENT.reactioncommerce.com -f ${PROPEL_CONFIG_FILE} --env $ENVIRONMENT --cluster $CLUSTER --service $SERVICE2 --container $CONTAINER2 --suffix $SERVICE_SUFFIX --overwrite
propel param set EXTERNAL_GRAPHQL_URL=https://${SERVICE1}-${SERVICE_SUFFIX}.$ENVIRONMENT.reactioncommerce.com/graphql-alpha -f ${PROPEL_CONFIG_FILE} --env $ENVIRONMENT --cluster $CLUSTER --service $SERVICE2 --container $CONTAINER2 --suffix $SERVICE_SUFFIX --overwrite
propel param set INTERNAL_GRAPHQL_URL=https://${SERVICE1}-${SERVICE_SUFFIX}.$ENVIRONMENT.reactioncommerce.com/graphql-alpha -f ${PROPEL_CONFIG_FILE} --env $ENVIRONMENT --cluster $CLUSTER --service $SERVICE2 --container $CONTAINER2 --suffix $SERVICE_SUFFIX --overwrite
propel release create --deploy -f ${PROPEL_CONFIG_FILE} --env $ENVIRONMENT --cluster $CLUSTER --descr "${RELEASE_DESCRIPTION}" --service $SERVICE2 --suffix $SERVICE_SUFFIX
39 changes: 39 additions & 0 deletions .circleci/bin/ecs-deploy-release-branch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/bin/bash

sudo apt-get -y install python3-pip wget
sudo pip3 install awscli

export ENVIRONMENT=staging
export CLUSTER=core
export core_CIRCLE_SHA1=$CIRCLE_SHA1

PROPEL_CONFIG_FILE="propel.yaml"
if [ ! -f ${PROPEL_CONFIG_FILE} ]; then
echo "Propel configuration file not found!"
exit 1
fi

if [ -z "${AWS_REGION}" ]; then
export AWS_REGION=us-west-2
fi

ENV_NAME_UPPERCASE=$(echo $ENVIRONMENT | awk '{print toupper($0)}')
AWS_ACCESS_KEY_ID_VAR_NAME=CLOUDFORMATION_${ENV_NAME_UPPERCASE}_AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY_VAR_NAME=CLOUDFORMATION_${ENV_NAME_UPPERCASE}_AWS_SECRET_ACCESS_KEY

if [ "${!AWS_ACCESS_KEY_ID_VAR_NAME}" ]; then
export AWS_ACCESS_KEY_ID=${!AWS_ACCESS_KEY_ID_VAR_NAME}
fi

if [ "${!AWS_SECRET_ACCESS_KEY_VAR_NAME}" ]; then
export AWS_SECRET_ACCESS_KEY=${!AWS_SECRET_ACCESS_KEY_VAR_NAME}
fi

echo Running aws s3 cp s3://${S3_PROPEL_ARTIFACTS_BUCKET}/propel-linux-amd64 ./propel
aws s3 cp s3://${S3_PROPEL_ARTIFACTS_BUCKET}/propel-linux-amd64 ./propel

sudo mv propel /usr/local/bin/propel
sudo chmod +x /usr/local/bin/propel

RELEASE_DESCRIPTION="CircleCI build URL: ${CIRCLE_BUILD_URL}"
propel release create --deploy --env $ENVIRONMENT --cluster $CLUSTER --descr "${RELEASE_DESCRIPTION}"
64 changes: 0 additions & 64 deletions .circleci/bin/ecs-deploy.sh

This file was deleted.

28 changes: 22 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,24 @@ jobs:
echo "No deploy for forks"
fi

deploy-to-ecs:
deploy-to-ecs-release-branch:
<<: *defaults
steps:
- checkout
- run:
name: Deploy new task definition and update service in ECS
command: |
.circleci/bin/ecs-deploy.sh
.circleci/bin/ecs-deploy-release-branch.sh
no_output_timeout: 30m

deploy-to-ecs-feature-branch:
<<: *defaults
steps:
- checkout
- run:
name: Deploy new task definition and update service in ECS
command: |
.circleci/bin/ecs-deploy-feature-branch.sh
no_output_timeout: 30m

deploy-docs:
Expand Down Expand Up @@ -336,12 +346,18 @@ workflows:
context: reaction-publish-docker
requires:
- docker-build
- deploy-to-ecs:
- deploy-to-ecs-release-branch:
requires:
- docker-push
# filters:
# branches:
# only: /^release-2\.0.\d+$/
filters:
branches:
only: /^release-2.*/
- deploy-to-ecs-feature-branch:
requires:
- docker-push
filters:
branches:
only: /^feat.*/
- deploy-docs:
requires:
- test-unit
Expand Down
11 changes: 11 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
REACTION_EMAIL=me@example.com
REACTION_AUTH=somepassword
REACTION_USER=ReactionAdmin
MONGO_URL=mongodb://mongo:27017/reaction
MONGO_OPLOG_URL=mongodb://mongo:27017/local
ROOT_URL=http://localhost:3000
HYDRA_ADMIN_URL=http://hydra:4445
HYDRA_TOKEN_URL=http://hydra:4444/oauth2/token
HYDRA_OAUTH2_INTROSPECT_URL=http://hydra:4445/oauth2/introspect
OAUTH2_CLIENT_DOMAINS=http://localhost:4000
SKIP_FIXTURES=1
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
.fileStorage/
.vscode
.idea
.env
.env*
!.env.example
.c9
*.csv
*.dat
Expand Down
26 changes: 13 additions & 13 deletions .meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ meteor-base@1.4.0 # Packages every Meteor app needs to have
mobile-experience@1.0.5 # Packages for a great mobile UX
blaze-html-templates@1.0.4 # Compile .html files into Meteor Blaze views
es5-shim@4.8.0 # ECMAScript 5 compatibility for older browsers.
ecmascript@0.12.0-rc18.14 # Enable ECMAScript2015+ syntax in app code
ecmascript@0.12.0 # Enable ECMAScript2015+ syntax in app code
audit-argument-checks@1.0.7 # ensure meteor method argument validation
browser-policy@1.1.0 # security-related policies enforced by newer browsers
juliancwirko:postcss@1.3.0 # CSS post-processing plugin (replaces standard-minifier-css)
session@1.1.8 # ReactiveDict whose contents are preserved across Hot Code Push
tracker@1.2.0 # Meteor transparent reactive programming library
mongo@1.6.0-rc18.14
mongo@1.6.0
reactive-var@1.0.11
reactive-dict@1.2.1
check@1.3.1
Expand All @@ -27,22 +27,22 @@ underscore@1.0.10
logging@1.1.20
reload@1.2.0
ejson@1.1.0
less@2.8.0-rc18.14
less@2.8.0
service-configuration@1.0.11
mdg:validated-method
shell-server@0.4.0-rc18.14
dynamic-import@0.5.0-rc18.14
standard-minifier-js@2.4.0-rc18.14
shell-server@0.4.0
dynamic-import@0.5.0
standard-minifier-js@2.4.0

# Meteor Auth Packages
accounts-base@1.4.3-rc18.14
accounts-base@1.4.3
accounts-password@1.5.1
accounts-facebook@1.3.2-rc18.14
accounts-google@1.3.2-rc18.14
accounts-twitter@1.4.2-rc18.14
oauth-encryption@1.3.1-rc18.14
facebook-config-ui@1.0.2-rc18.14
google-config-ui@1.0.1-rc18.14
accounts-facebook@1.3.2
accounts-google@1.3.2
accounts-twitter@1.4.2
oauth-encryption@1.3.1
facebook-config-ui@1.0.2
google-config-ui@1.0.1
twitter-config-ui@1.0.0

# Community Packages
Expand Down
2 changes: 1 addition & 1 deletion .meteor/release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
METEOR@1.8-rc.14
METEOR@1.8
Loading