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 v2.1.0 #5409

Merged
merged 472 commits into from
Aug 8, 2019
Merged

release v2.1.0 #5409

merged 472 commits into from
Aug 8, 2019

Conversation

kieckhafer
Copy link
Member

v2.1.0

Reaction v2.1.0 adds minor features and performance enhancements, fixes bugs and contains no breaking changes on top of v2.0.0.

This release is being coordinated with reaction-platform and is designed to work with the same versions of example-storefront and reaction-hydra.

Notable changes

Introduction of Catalyst
Our new Catalyst design system has been introduced into the Reaction codebase, and is used on various components including ConfirmDialog and Button.

Tag slugs are now editable independently of tag name
In previous versions of Reaction, tag slugs were always saved as a slugified version of the tag name, would always change if the tag name was updated, and couldn't be changed independently of the tag name.

This update initially saves tag slugs as a slugified version of the tag name, but then allows operators to independently change the tag slug if desired, and also does not change the tag slug automatically if the tag name is changed.

Order related GraphQL mutations
A createRefund GraphQL mutation has been added to allow refunds to be processed via GraphQL instead of older meteor methods.

Dataloaders introduced into the codebase
Added the first couple of DataLoaders for Shops and SimpleInventory. Shops will benefit product listing pages as product and variant resolvers all query Shops collection for each product. SimpleInventory query benefits from batching.

Bulk simple inventory mutation
When running large inventory import via an external sync system, the lack of a bulk mutation made the import takes many hours. This update introduces a bulk import option which cuts down import time significantly.

Overhaul of eslint rules, and bulk fix of over 500 eslint warnings
We've updated to using v2.0.0 of our Reaction ESLint Config package, and have brought our eslint warnings down from 800 to under 300.

Feature

  • feat: catalog partial publish / rerun transformations (#5355)
  • feat(product table): show Action dropdown, even if no products are selected (#5391)
  • feat: filter products by id in products table (#5387)
  • feat: editable tag slug (#5382)
  • feat: add createRefund GraphQL mutation (#5354)
  • feat: add handle to tag autosuggest results (#5262)
  • featL Add DataLoaders for Shops and SimpleInventory (#5294)
  • feat: Introduce DataLoaders infrastructure (#5280)
  • feat: new button component to wrap MUI button with isWaiting loading state (#5266)
  • feat: bulk simple inventory mutation (#5229)
  • feat: integrate catalyst ConfirmDialog component from new Catalyst package (#5372)

Fixes

Performance Improvements

  • perf: wrap tests in check to make sure app is ready when they run (#5317)
  • perf: up data transfer limit to allow bigger sizes (#5396)

Docs

  • docs(admin): Introducing Reaction Admin (#5400)
  • docs(readme): introducing the Storefront Component Library to develop (#5398)
  • docs: Update README.md (#5319)

Chores

  • chore: updated Dockerfile to change .meteor/ permissions to the node … (#5353)
  • chore(ci): add eslint check to only check changed files and fail when warnings are thrown (#5357)
  • chore(ci): Work more robustly on forks (#5386)
  • chore: fix no-undef lint issues (#5360)
  • Update Material-UI 4.x (#5278)
  • chore: Update README DCO - sign-off not sign (#5318)
  • chore: update snyk ignore (#5331)
  • chore: update CHANGELOG, update version (#5260)
  • chore: use npm command rather than meteor npm (#5328)
  • chore: update js-doc throughout the app, batch 1 (#5309)
  • chore: fix all react/no-deprecated and react/prop-type eslint warnings (#5307)
  • chore: update reaction-eslint-config version in package.json (#5320)
  • Organize integration tests (#5316)
  • chore: add overrides for eslint rules that stlll need fixing (#5308)
  • chore: fix all id-length eslint warnings (#5298)
  • chore: update lodash to fix snyk critical error (#5299)
  • chore: fix all max-len eslint warnings (#5296)
  • chore: fix prefer-const eslint error (#5290)

Refactors

  • refactor: add title as backup in product admin breadcrumb (#5342)
  • refactor: add isSoldOut prop to variants and options in Catalog (#5289)
  • refactor: how to get reaction version (#5324)
  • refactor: fulfillment section of Orders 2.0 (#5302)
  • refactor: payments section of Orders 2.0 (#5279)

Tests

  • test: add integration test for ping query (#5326)

Breaking Changes

None

kieckhafer and others added 30 commits July 10, 2019 14:19
Signed-off-by: Erik Kieckhafer <[email protected]>
Signed-off-by: Erik Kieckhafer <[email protected]>
…tAudit-idLength

chore: fix all `id-length` eslint warnings
…taloaders

Add DataLoaders for Shops and SimpleInventory
…method calls with custom validators to shave shave off response time

Signed-off-by: Alex Haproff <[email protected]>
Signed-off-by: Erik Kieckhafer <[email protected]>
Signed-off-by: Erik Kieckhafer <[email protected]>
options in the `Catalog` collection.

Signed-off-by: Will Lopez <[email protected]>
Signed-off-by: Erik Kieckhafer <[email protected]>
…lintOverridesForRemainingRules

chore: add overrides for eslint rules that stlll need fixing
Signed-off-by: Erik Kieckhafer <[email protected]>
…tch inventory docs when the call is made internally, i.e. in the consumer

Signed-off-by: Alex Haproff <[email protected]>
…agFinding

refactor: add handle to tag autosuggest results
Signed-off-by: Eric Dobbertin <[email protected]>
…n why simpl-schema was superseded by custom validators

Signed-off-by: Alex Haproff <[email protected]>
Copy link
Contributor

@spencern spencern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Thanks for getting this moving @kieckhafer!
I left a few suggestions in the comments.
Overall, I'd like to try to make the feat/fixes/chores/etc section as consistent as possible - we're close there, but there are a few sections that have a PR reference that doesn't quite fit.

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
machikoyasuda
machikoyasuda previously approved these changes Aug 2, 2019
Copy link
Contributor

@machikoyasuda machikoyasuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! i made one small suggestion to the changelog.

Signed-off-by: Erik Kieckhafer <[email protected]>

Co-Authored-By: machiko <[email protected]>
Signed-off-by: Erik Kieckhafer <[email protected]>
Signed-off-by: Erik Kieckhafer <[email protected]>
Signed-off-by: Erik Kieckhafer <[email protected]>
@kieckhafer
Copy link
Member Author

@spencern all comments addressed

Copy link
Contributor

@spencern spencern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kieckhafer It seems your eslint-changed-files check is firing for any file changed in this release - what would you suggest we do in this case?

Will you also update the PR notes/description with the updated changelog?

Just a few more changes.

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved

## Contributors

Thanks to @janus-reith for contributing to this release! 🎉
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@kieckhafer
Copy link
Member Author

@spencern Hmmm... good question about that CI run. We could remove the check in this PR only. It would still be there in develop then.

It makes sense it's firing, at least it's doing its job, but this wasn't really the intention, it's going to put an unnecessary delay on this to fix all of those before it gets merged.

@spencern
Copy link
Contributor

spencern commented Aug 3, 2019

@kieckhafer I'd be okay releasing/merging this this time if it will catch future issues as you've intended with one caveat. I want the master branch to be completely green - if we merge this, what will it do when the master branch rebuilds?

@kieckhafer
Copy link
Member Author

kieckhafer commented Aug 3, 2019

I’m not sure if master will be green.

It seems like the issue is we had all these changes already merged to develop before we added the eslint check, so they weren’t flagged the first time around.

Going forward, this won’t happen again because all new releases will be from after the time the eslint CI check was added.

But I don’t know what’ll happen now, my guess is it’ll be failing until all these are fixed, which unfortunately would in the end basically defeat the purpose of adding the check if we need to fix 2/3 or them right now.

If we disable the check just in this PR and this merge, and then re-enable it after, then that should also be OK as any new PRs into develop (and then eventually to master in another release) will have to pass this CI when they go to develop.

EDIT: rethinking it more... I still don’t know for sure, but I’m thinking it might actually be green. This only fails when changed files don’t pass lint warnings. If this is merged, then a regular build has no changes files, so it should bypass this check.

@spencern
Copy link
Contributor

spencern commented Aug 5, 2019

@kieckhafer I'm onboard with either approach. I had similar thoughts that perhaps it would be green for the master branch as well after merging because it wouldn't have a branch to diff against, but you know the script better than I.

spencern
spencern previously approved these changes Aug 5, 2019
Copy link
Contributor

@spencern spencern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notes are good to go. 👍

@aldeed
Copy link
Contributor

aldeed commented Aug 5, 2019

#5414 needs to get fixed in the release branch before merging this.

kieckhafer and others added 2 commits August 6, 2019 13:34
…esIntoRelease2.1.0

revert change that broke payment capture
willopez and others added 2 commits August 7, 2019 15:03
…33IntoReleaseBranch

fix: cherry-pick bugfix PR into release-2.1.0
Copy link
Contributor

@jeffcorpuz jeffcorpuz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me!

@kieckhafer
Copy link
Member Author

kieckhafer commented Aug 8, 2019

We've chosen to merge this, even though eslint-changed-files is failing, because we're under the assumption in this instance, this will pass CI once it's merged since there will no longer be any changed files, and in the future, all issues will be fixed before it gets to this point.

This is happening because the new CI check was introduced after half of the changes were made in this release, so all files changed before the introduction will be flagged.

cc @spencern

@spencern spencern merged commit 746f5ac into master Aug 8, 2019
@spencern spencern deleted the release-v2.1.0 branch August 8, 2019 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong template reference for coreOrderShippingSummary and coreOrderShippingInvoice