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
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
472 commits
Select commit Hold shift + click to select a range
40740c0
fix prop on chip
kieckhafer Jul 10, 2019
a5fb890
Merge remote-tracking branch 'origin/develop' into ref-kieckhafer-ord…
kieckhafer Jul 10, 2019
843e6dd
remove tabs from this PR, add to Refunds PR
kieckhafer Jul 10, 2019
ce80b87
feat(inventory-shops-dataloaders): convert all integer ids to strings…
Jul 10, 2019
28c0174
update todo
kieckhafer Jul 10, 2019
b6c20a4
Merge pull request #5301 from janus-reith/develop
kieckhafer Jul 10, 2019
5012845
Merge pull request #5298 from reactioncommerce/chore-kieckhafer-eslin…
kieckhafer Jul 10, 2019
05630ee
Merge pull request #5294 from alex-haproff/feat-70-inventory-shops-da…
focusaurus Jul 10, 2019
4b61f90
fix(5305-slow-simplschema-validate): replace simpl-schema.validate() …
Jul 11, 2019
fa5b887
fix(5305-slow-simplschema-validate): fix eslint issues
Jul 11, 2019
16e3a71
chore: fix react/no-deprecated warnings for componentWillReceiveProps
kieckhafer Jul 11, 2019
90b6757
chore: fix react/no-deprecated warnings for componentWillMount
kieckhafer Jul 11, 2019
035b574
chore: fix react/prop-types warnings
kieckhafer Jul 11, 2019
16fb774
add overrides for eslint rules that stlll need fixing
kieckhafer Jul 11, 2019
e650025
add `consistent-return` to rule overrides
kieckhafer Jul 11, 2019
2f01876
add promise/no-callback-in-promise
kieckhafer Jul 11, 2019
773621f
various js-doc eslint updates
kieckhafer Jul 11, 2019
22365c7
refactor: add migration which adds `isSoldOut` prop to variants +
willopez Jul 12, 2019
c33c968
capitalize all param types
kieckhafer Jul 12, 2019
7e339a5
Merge pull request #5308 from reactioncommerce/chore-kieckhafer-addEs…
kieckhafer Jul 12, 2019
f70c504
chore: fix jsdoc syntax errors for graphql mutations and queries
kieckhafer Jul 12, 2019
d4a4682
capitalize letters where needed
kieckhafer Jul 12, 2019
960e11e
capitaliziation of params and returns
kieckhafer Jul 12, 2019
3fe1814
fix(5313-dataloaders-not-found): use SimpleInventory collection to fe…
Jul 12, 2019
36b3f1b
Merge pull request #5262 from reactioncommerce/ref-kieckhafer-betterT…
mikemurray Jul 12, 2019
890e6d3
test: organize integration tests
aldeed Jul 12, 2019
8fec106
fix(5305-slow-simplschema-validate): add JSDoc and comments to explai…
Jul 12, 2019
c171a95
test: split inventory tests into separate files
aldeed Jul 12, 2019
7f705e9
Merge branch 'develop' into feat-mikemurray-mui-4.0
mikemurray Jul 12, 2019
b17860c
perf: wrap tests in check to make sure app is ready when they run
kieckhafer Jul 12, 2019
96a5064
Merge branch 'develop' of github.com:/reactioncommerce/reaction into …
willopez Jul 12, 2019
f68fd2c
refoctor: clean up
willopez Jul 12, 2019
b8931e8
chore: Update README DCO - sign-off not sign
spencern Jul 12, 2019
b0ca5c9
Merge pull request #5316 from reactioncommerce/test-aldeed-organize-i…
aldeed Jul 12, 2019
5db0305
Update README.md
rymorgan Jul 12, 2019
e3a90fe
add order/fulfillment permissions
kieckhafer Jul 12, 2019
7d4b4c2
remove styled component
kieckhafer Jul 12, 2019
4b8f3ea
use var instead of hardcoded color
kieckhafer Jul 12, 2019
dd9ec3d
Update the image again with some tweaks
rymorgan Jul 12, 2019
53bf215
update tests with new permissions
kieckhafer Jul 12, 2019
7fcb1cb
update eslint rules to v2.0.0
kieckhafer Jul 12, 2019
1688871
Merge branch 'develop' of github.com:/reactioncommerce/reaction into …
willopez Jul 12, 2019
8fe9387
update eslint version to 6.0.1
kieckhafer Jul 12, 2019
fb3fb77
turn off `no-unsupported-features/es-syntax`
kieckhafer Jul 12, 2019
9d9e623
add warningis for new node based rules
kieckhafer Jul 12, 2019
19dcf82
refactor: throw error if inventory info is not found.
willopez Jul 12, 2019
a188251
refactor: consolidate logic that finds app setting
willopez Jul 12, 2019
d34174d
Merge pull request #5302 from reactioncommerce/ref-kieckhafer-orderFu…
kieckhafer Jul 13, 2019
15feeb7
Merge pull request #5320 from reactioncommerce/chore-kieckhafer-updat…
kieckhafer Jul 13, 2019
602accd
Merge remote-tracking branch 'origin/develop' into chore-kieckhafer-e…
kieckhafer Jul 13, 2019
c9506f1
chore: remove warning overrides no longer needed
kieckhafer Jul 13, 2019
ccb3738
Merge pull request #5307 from reactioncommerce/chore-kieckhafer-eslin…
kieckhafer Jul 13, 2019
880741e
fix(5313-dataloaders-not-found): only use dataloaders when registered
Jul 15, 2019
10b266d
fix(5313-dataloaders-not-found): eslint fix
Jul 15, 2019
4661610
(refactor): how to get reaction version
mpaktiti Jul 15, 2019
f4f09d9
Merge pull request #5324 from reactioncommerce/refactor-mpaktiti-get-…
focusaurus Jul 15, 2019
82fabec
Merge pull request #5314 from alex-haproff/fix-5313-dataloaders-not-f…
willopez Jul 15, 2019
49db5b2
test: add integration test for ping query
aldeed Jul 15, 2019
9d1af7e
Merge pull request #5309 from reactioncommerce/chore-kieckhafer-eslin…
kieckhafer Jul 16, 2019
f9c1720
Merge pull request #5306 from alex-haproff/fix-5305-slow-simplschema-…
aldeed Jul 16, 2019
ad7db24
chore: use npm command rather than meteor npm
aldeed Jul 16, 2019
110cccf
Merge pull request #5328 from reactioncommerce/chore-aldeed-use-stand…
aldeed Jul 16, 2019
b875284
Merge pull request #5260 from reactioncommerce/master
jeffcorpuz Jul 17, 2019
b1f115c
remove snyk ignore
jeffcorpuz Jul 17, 2019
ba1a0cd
Merge pull request #5331 from reactioncommerce/chore-remove-snyk-igno…
aldeed Jul 17, 2019
d3c8b42
Merge branch 'develop' into refactor-willopez-add-inventory-info-to-v…
aldeed Jul 17, 2019
e1f5c36
refactor: rewrite inventory publishProductToCatalog
aldeed Jul 17, 2019
670ccef
refactor: rewrite updateInventoryBooleansInCatalog
aldeed Jul 17, 2019
80329f7
test: add tests for inventory catalog
aldeed Jul 17, 2019
7d3cec0
refactor: update migration 68 utils
aldeed Jul 17, 2019
9bb7b18
fix: guard against null
aldeed Jul 18, 2019
d55f78d
fix: remove unnecessary filtering
aldeed Jul 18, 2019
8f29d3f
Merge pull request #5289 from reactioncommerce/refactor-willopez-add-…
aldeed Jul 18, 2019
fd60180
(fix) make permalink required
mpaktiti Jul 18, 2019
7040dda
(fix) auto-update permalink only if null
mpaktiti Jul 18, 2019
f65aca8
(fix) set permalink label for required handle
mpaktiti Jul 18, 2019
d8d2f6e
Merge pull request #5318 from reactioncommerce/chore-update-readme-dco
spencern Jul 18, 2019
8fce6d2
Merge branch 'develop' into rymorgan-new-operator-image
spencern Jul 18, 2019
c5da6d8
Merge pull request #5326 from reactioncommerce/test-aldeed-ping-integ…
kieckhafer Jul 18, 2019
c846da7
Merge pull request #5319 from reactioncommerce/rymorgan-new-operator-…
spencern Jul 18, 2019
9dbc5e4
refactor: move startup script into before function
kieckhafer Jul 18, 2019
c8c332b
chore: add jsdoc
kieckhafer Jul 18, 2019
5b5e902
chore: add consistent return, batch 1
kieckhafer Jul 18, 2019
c742aa8
chore: remove warn override for consistent-return rule
kieckhafer Jul 18, 2019
0b0f281
chore: add jsdoc
kieckhafer Jul 18, 2019
9bf30c9
chore: consistent-return fixes
kieckhafer Jul 18, 2019
7344100
test: fix Meteor app tests
aldeed Jul 18, 2019
f85a3ec
chore: consistent-return updates
kieckhafer Jul 18, 2019
5bcc1ea
test: fix failing Meteor tests
aldeed Jul 19, 2019
a01e7dd
chore: lint fixes
kieckhafer Jul 19, 2019
1148a4d
chore: lint fixes
kieckhafer Jul 19, 2019
caba753
refactor: add title to breadcrumb name display
kieckhafer Jul 19, 2019
914a4e2
Merge branch 'develop' into feat-mikemurray-mui-4.0
mikemurray Jul 19, 2019
ddbeb83
Merge pull request #5342 from reactioncommerce/ref-kieckhafer-addTitl…
mikemurray Jul 19, 2019
91026a9
chore: lint fixes
kieckhafer Jul 19, 2019
245d6b6
chore: add latest material icons package
mikemurray Jul 19, 2019
0607afa
fix: remove invalid prop
mikemurray Jul 19, 2019
a11a5b1
fix: list and icon spacing
mikemurray Jul 19, 2019
b521d52
fix: use checkbox padding for cell
mikemurray Jul 19, 2019
214cecb
fix: use checkbox padding for cell
mikemurray Jul 19, 2019
6fdaf39
fix: use checkbox padding for cells
mikemurray Jul 19, 2019
ad7380d
chore: update package lock
mikemurray Jul 19, 2019
f4f511c
fix: override checkbox padding to match initial style
mikemurray Jul 19, 2019
e10edc8
fix: override svg icon font-size to fix rem size issues
mikemurray Jul 19, 2019
d7e2e4d
chore: update to MUI 4.2.1
mikemurray Jul 19, 2019
d0e4cd1
chore: linit fixes
kieckhafer Jul 19, 2019
2a6c521
style: update spacing to meet 4.0 unit sizes
kieckhafer Jul 19, 2019
af25442
style: lint fix
kieckhafer Jul 19, 2019
fbd59ff
chore: lint fixes
kieckhafer Jul 19, 2019
9831ad7
Merge pull request #5278 from reactioncommerce/feat-mikemurray-mui-4.0
kieckhafer Jul 19, 2019
09d4d49
(fix) Set unique index on unique keys
brent-hoover Jul 22, 2019
c4fae3e
(fix) Make handle/slug unique
brent-hoover Jul 22, 2019
0f7ea6a
(fix) Remove unique on slug/handle
brent-hoover Jul 22, 2019
383e7c1
Merge branch 'develop' into fix-4735-mpaktiti-catalog
mikemurray Jul 22, 2019
491450e
test: fix remaining failing Meteor tests
aldeed Jul 22, 2019
26dc320
chore: fix lint error
aldeed Jul 22, 2019
f8055f5
test: increase Meteor test timeouts
aldeed Jul 22, 2019
27a6adc
Merge branch 'develop' into test-kieckhafer-wrapInIsAppReady
aldeed Jul 22, 2019
e46ec2b
refactor: move return off of `Alerts`
kieckhafer Jul 23, 2019
b5a3577
fix: revert removing a return
kieckhafer Jul 23, 2019
7c8c8e5
chore: updated Dockerfile to change .meteor/ permissions to the node …
nnnnat Jul 23, 2019
88ca342
feat: first pass at a catalog publisher transform pattern.
nnnnat Jul 23, 2019
54172e0
Merge pull request #5334 from reactioncommerce/chore-kieckhafer-eslin…
aldeed Jul 23, 2019
dc03719
feature: add createRefund GraphQL mutation
kieckhafer Jul 23, 2019
bc91e71
Merge pull request #5353 from reactioncommerce/chore-nnnnat-docker-perm
nnnnat Jul 23, 2019
63c7724
(fix) Fix integration test that wasn't creating uniques
brent-hoover Jul 22, 2019
408ada9
Merge pull request #5350 from reactioncommerce/fix-make-catalog-index…
Jul 24, 2019
227f871
ci: add lint check for change files
kieckhafer Jul 24, 2019
afd3e2e
chore: remove unneeded npm aliast
kieckhafer Jul 24, 2019
5f6feec
ci: add check to fine changed files and run lint against them
kieckhafer Jul 24, 2019
e1bbc3f
docs: comment updates
kieckhafer Jul 24, 2019
e3d1751
fix: indentation
kieckhafer Jul 24, 2019
b97af9a
ci: add new eslint check to workflow
kieckhafer Jul 24, 2019
8858908
(fix) Add migration for index
brent-hoover Jul 24, 2019
287ba77
fix: add spaces instead of .. inbetween branch names
kieckhafer Jul 24, 2019
00fa642
(fix) Import migration so it runs
brent-hoover Jul 24, 2019
05ec094
(fix) Fix error in error message
brent-hoover Jul 24, 2019
57534c9
temp: comment out other tests to only test new CI integration
kieckhafer Jul 24, 2019
5ec3d9f
temp: uncomment some build jobs
kieckhafer Jul 24, 2019
6ce2cdb
temp: changed files log
kieckhafer Jul 24, 2019
17db2b8
temp: remove only js flag
kieckhafer Jul 24, 2019
610a2c5
temp: add file check back in
kieckhafer Jul 24, 2019
dde5df0
temp: add change to trigger build
kieckhafer Jul 24, 2019
2503674
temp: add origin to branch name
kieckhafer Jul 24, 2019
6a20616
temp: force CI push
kieckhafer Jul 24, 2019
ce1b0f0
chore: fix no-undef lint issues
kieckhafer Jul 24, 2019
0a3f1b4
temp: yaml change
kieckhafer Jul 24, 2019
896552f
temp: fix placing of parans
kieckhafer Jul 24, 2019
ce47c5b
ref: remove unneeded comments
kieckhafer Jul 24, 2019
e4f2444
chore: fix no-undef lint issues
kieckhafer Jul 24, 2019
1ef1ed0
chore: add lint alias
kieckhafer Jul 24, 2019
3f211a0
Merge pull request #5360 from reactioncommerce/chore-kieckhafer-eslin…
kieckhafer Jul 24, 2019
d0f7c86
ref: move commands into bash script
kieckhafer Jul 24, 2019
eccc33d
Merge remote-tracking branch 'origin/develop' into ci-kieckhafer-addB…
kieckhafer Jul 24, 2019
68141fe
fix: allow excecute file permission
kieckhafer Jul 24, 2019
c0c41e4
temp: remove temporary file changes that were used for testing
kieckhafer Jul 24, 2019
0adaa05
test: re-enable all CI tests now that testing is over
kieckhafer Jul 24, 2019
5483142
refactor(ci): bash script refactorings
focusaurus Jul 24, 2019
3224913
(fix) Corrections from C/R
brent-hoover Jul 25, 2019
439348c
feat: add min amount to simple schema, and test to go along with it
kieckhafer Jul 25, 2019
2348cfb
temp: comment to force CI run, will remove if tests pass as expected
kieckhafer Jul 25, 2019
4c8af7c
temp: remove temp updates to force CI run
kieckhafer Jul 25, 2019
deb08d7
ref: update simpleschema to 0 min with exclusiveMin set to true
kieckhafer Jul 25, 2019
794e7a1
docs: add comments linking to stripe docs
kieckhafer Jul 25, 2019
5b7fe08
ref: send updated order to email instead of old order
kieckhafer Jul 25, 2019
30b748b
test: add test with refund return
kieckhafer Jul 25, 2019
49b7911
chore: lint fix
kieckhafer Jul 25, 2019
fad7a34
Merge pull request #5357 from reactioncommerce/ci-kieckhafer-addByCha…
mikemurray Jul 25, 2019
4be1616
feature: integrate ConfirmDialog from new Catalist package.
willopez Jul 25, 2019
8a9e844
feature: integrate ConfirmDialog from new Catalyst package.
willopez Jul 25, 2019
3add610
fix: return undefined for unvalidated state
mikemurray Jul 25, 2019
eefe703
Merge branch 'willopez-refactor-integrate-catalyst-component' of gith…
willopez Jul 25, 2019
6558c68
Merge pull request #5371 from reactioncommerce/fix-mikemurray-red-tex…
kieckhafer Jul 25, 2019
efaadd1
Merge pull request #5358 from reactioncommerce/brent-add-catalog-prod…
Jul 25, 2019
64d771c
Merge branch 'develop' of github.com:/reactioncommerce/reaction into …
focusaurus Jul 26, 2019
ffe7d92
tests: fix failing order refund test
focusaurus Jul 26, 2019
b763bf3
Merge branch 'develop' into feat-nnnat-catalog-partial-publish
aldeed Jul 26, 2019
d20d3f0
refactor: remove publisherTransforms pattern
aldeed Jul 26, 2019
b7b4b6b
test: add partial publish unit tests
aldeed Jul 26, 2019
090b3bc
ref: add filter to no include deleted files in git diff
kieckhafer Jul 26, 2019
55c2508
docs: fix eslint issues
kieckhafer Jul 26, 2019
b5fe816
chore: ignore lint issue in test
kieckhafer Jul 26, 2019
d5f4058
Merge pull request #5317 from reactioncommerce/test-kieckhafer-wrapIn…
kieckhafer Jul 26, 2019
07b5238
Merge branch 'develop' into fix-4735-mpaktiti-catalog
mikemurray Jul 26, 2019
60a0fc4
Merge pull request #5372 from reactioncommerce/willopez-refactor-inte…
mikemurray Jul 26, 2019
49f4733
Merge remote-tracking branch 'origin/develop' into feat-kieckhafer-cr…
kieckhafer Jul 26, 2019
cefd195
Merge pull request #5354 from reactioncommerce/feat-kieckhafer-create…
kieckhafer Jul 26, 2019
f48a554
Merge branch 'develop' into fix-4735-mpaktiti-catalog
mikemurray Jul 26, 2019
7037276
refactor: disable jsdoc for functions thay live inside meteor methods
mikemurray Jul 26, 2019
7662bab
Merge pull request #5264 from reactioncommerce/fix-4735-mpaktiti-catalog
mikemurray Jul 26, 2019
e8df275
feat: add slug as mutation inputs
mikemurray Jul 29, 2019
fad407f
feat: update the slug if passed as input
mikemurray Jul 29, 2019
bb774af
feat: set the slug if passed as input
mikemurray Jul 29, 2019
d979f23
feat: allow editing of tag slug
mikemurray Jul 29, 2019
38921b7
fix: prop warning
mikemurray Jul 29, 2019
ce4bd1d
fix: prop warning
mikemurray Jul 29, 2019
2583d39
feat: update translation for tag field
mikemurray Jul 29, 2019
d85de14
feat: add cleaner error message for duplicate slug
mikemurray Jul 29, 2019
da97e1a
feat: add cleaner error message for duplicate slug
mikemurray Jul 29, 2019
c8b8bad
feat: show errors with an inline alert
mikemurray Jul 29, 2019
d0e9a71
fix: don't reset form on error
mikemurray Jul 29, 2019
4052a37
Merge pull request #5382 from reactioncommerce/feat-5380-mikemurray-t…
machikoyasuda Jul 29, 2019
48e7d37
chore(ci): Work more robustly on forks
focusaurus Jul 30, 2019
06ad83b
Merge pull request #5386 from reactioncommerce/fix-eslint-on-forks
kieckhafer Jul 30, 2019
9295a32
feat: add filters for productIds
mikemurray Jul 30, 2019
d361445
feat: add ability to filter by product ids
mikemurray Jul 30, 2019
0208710
Merge pull request #5387 from reactioncommerce/feat-5385-bilk-product…
machikoyasuda Jul 30, 2019
f296baa
feat(producttable): #5388 - show action dropdown, even if no products…
Jul 31, 2019
83ab062
chore: lint
Jul 31, 2019
21d24ff
refactor: reformat
Jul 31, 2019
0fc4ccd
refactor: use a variable instead
Jul 31, 2019
d64c42a
fix: oops
Jul 31, 2019
6f07dfb
Merge pull request #5391 from reactioncommerce/feat-5388-action-dropdown
machikoyasuda Jul 31, 2019
8f84dbb
Merge pull request #5355 from reactioncommerce/feat-nnnat-catalog-par…
kieckhafer Jul 31, 2019
1547290
perf: up data transfer limit to allow bigger sizes
kieckhafer Jul 31, 2019
9d7c05a
add BODY_PARSER_SIZE_LIMIT to env for config
kieckhafer Jul 31, 2019
1589434
docs(readme): rename Component Library to Storefront Component Library
Jul 31, 2019
775f165
docs(readme): correct a couple of small typos and infelicities of lan…
Jul 31, 2019
51e50a0
docs(readme): don't even use Catalyst UI in the alt title + update image
Jul 31, 2019
5729c31
ref: change value to number instead of string, add validator
kieckhafer Jul 31, 2019
933fc9c
fix: remove extra text
kieckhafer Jul 31, 2019
3902f7d
feat(copy): use Reaction Admin instead of Operator UI
Aug 1, 2019
7fdfef0
docs(readme): banish Operator UI from readme
Aug 1, 2019
9ce7072
feat(title): show Reaction Admin as the default backup title
Aug 1, 2019
d76fa74
test: use real context rather than mock
aldeed Aug 1, 2019
3e399da
Merge remote-tracking branch 'origin/test-aldeed-fix-test-fixtures-pu…
kieckhafer Aug 1, 2019
8ac5607
Merge remote-tracking branch 'origin/test-aldeed-fix-test-fixtures-pu…
kieckhafer Aug 1, 2019
2be8b0c
Merge pull request #5396 from reactioncommerce/perf-kieckhafer-addPar…
kieckhafer Aug 1, 2019
869ffd4
Merge pull request #5400 from reactioncommerce/feat-5399-reaction-admin
kieckhafer Aug 1, 2019
988eb47
Merge remote-tracking branch 'origin/develop' into docs-update-develo…
Aug 1, 2019
e534568
Merge pull request #5398 from reactioncommerce/docs-update-develop-re…
machikoyasuda Aug 1, 2019
4e5b043
chore: bump version to 2.1.0
spencern Aug 1, 2019
51c2dbf
docs: Init changelog for version 2.1.0
spencern Aug 1, 2019
3f4ba97
docs: turn pull references v2.1.0 notes into links
spencern Aug 1, 2019
34c865c
docs: a little bit of changelog formatting
spencern Aug 1, 2019
30a0abe
docs: consistant formatting for PR list
kieckhafer Aug 2, 2019
b8410c0
docs: update changelog for 2.1.0 release
kieckhafer Aug 2, 2019
019972c
fix: spell check
kieckhafer Aug 2, 2019
091dc2b
fix: spell check
kieckhafer Aug 2, 2019
523e5c0
docs: update Catalyst name
kieckhafer Aug 2, 2019
c184863
Update CHANGELOG.md
kieckhafer Aug 2, 2019
4b35fcb
docs: update docs
kieckhafer Aug 2, 2019
523a056
docs: update docs
kieckhafer Aug 2, 2019
8a39405
docs: add community contributor
kieckhafer Aug 2, 2019
b65cfed
docs: add missing colon
kieckhafer Aug 2, 2019
26dcd3c
docs: clarify statement about meteor methods
kieckhafer Aug 2, 2019
866febf
revert change that broke payment capture
kieckhafer Aug 6, 2019
f24b6a2
Merge pull request #5425 from reactioncommerce/fix-kieckhafer-pullFix…
aldeed Aug 6, 2019
5c36bea
fix: prevent product publish error when variants are not visible
willopez Aug 7, 2019
a65e733
Merge pull request #5438 from reactioncommerce/fix-kieckhafer-Merge54…
kieckhafer Aug 7, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
16 changes: 16 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,19 @@ jobs:
command: |
npm run lint -- --quiet

eslint-changed-files:
<<: *defaults
steps:
- checkout
- restore_cache:
keys:
- reaction-v2-node-modules-{{ checksum "package.json" }}-{{ checksum "package-lock.json" }}
- reaction-v2-node-modules-{{ .Branch }}
- reaction-v2-node-modules-master
- run:
name: Run Lint for Changed Files
command: .circleci/eslint-changed-files.sh

graphql-lint:
<<: *defaults
steps:
Expand Down Expand Up @@ -350,6 +363,9 @@ workflows:
- eslint:
requires:
- build
- eslint-changed-files:
requires:
- build
- graphql-lint:
requires:
- build
Expand Down
44 changes: 44 additions & 0 deletions .circleci/eslint-changed-files.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#!/usr/bin/env bash

# Please Use Google Shell Style: https://google.github.io/styleguide/shell.xml

# ---- Start unofficial bash strict mode boilerplate
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
set -o errexit # always exit on error
set -o errtrace # trap errors in functions as well
set -o pipefail # don't ignore exit codes when piping output
set -o posix # more strict failures in subshells
# set -x # enable debugging

IFS=$'\n\t'
# ---- End unofficial bash strict mode boilerplate

# Determine PR number from pull request link
CIRCLE_PR_NUMBER="${CIRCLE_PR_NUMBER:-${CIRCLE_PULL_REQUEST##*/}}"
if [[ -n "${CIRCLE_PR_NUMBER}" ]]; then
# Get PR from github API
org_repo=$(git remote -v |
head -1 |
awk '{print $2}' |
cut -d : -f 2 |
sed 's/\.git$//')
url="https://api.github.com/repos/${org_repo}/pulls/${CIRCLE_PR_NUMBER}"
# Determine target/base branch from API response
TARGET_BRANCH=$(curl --silent --location "${url}" | jq -r '.base.ref' || true)
fi

if [[ -z "${TARGET_BRANCH}" ]] || [[ ${TARGET_BRANCH} == "null" ]]; then
echo "Not a PR. Skipping eslint-changed-files."
exit 0
fi

echo "Getting list of changed files..."
CHANGED_FILES=$(git diff --diff-filter=d --name-only "origin/${TARGET_BRANCH}"..$CIRCLE_BRANCH -- '*.js')

# If we have changed files
if [[ -n "${CHANGED_FILES}" ]]; then
echo "Files have been changed. Run eslint against these files."
echo "${CHANGED_FILES}" | xargs npm run lint:warnings
else
echo "We have no changed files, don't run eslint-changed-files"
fi
2 changes: 1 addition & 1 deletion .github/issue_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ Not obligatory, but suggest a fix/reason for the bug


### Versions
(run `reaction -v` from your reaction directory)
(run `npm run version --silent` from your reaction directory)
6 changes: 3 additions & 3 deletions .reaction/jsdoc/templates/fixtures/documents/binder.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var dataBinderOptions = exports.dataBinderOptions = {
/**
* You can unbind previously bound objects from here.
*
* @param {string} path The path that was bound using {@link module:documents/binder.bind}
* @param {String} path The path that was bound using {@link module:documents/binder.bind}
* @param {*} record The object that was bound
*/
exports.unbind = function ( path, record ) {
Expand Down Expand Up @@ -63,9 +63,9 @@ exports.unbind = function ( path, record ) {

/**
* Bind to a property somewhere in an object. The property is found using dot notation and can be arbitrarily deep.
* @param {string} path The path into the object to locate the property. For instance this could be `"_id"`, `"name.last"`.
* @param {String} path The path into the object to locate the property. For instance this could be `"_id"`, `"name.last"`.
* or `"some.really.really.long.path.including.an.array.2.name"`
* @param {object} record Anything you can hang a property off of
* @param {Object} record Anything you can hang a property off of
* @param {options} options What you wanna do with the doohicky when yoyu bind it.
* @param {function(*):Promise|*=} options.getter This is the method to run when getting the value. When it runs, you will receive
* a single parameter which is the current value as the object understands it. You can return the value directly, just raise an event or
Expand Down
100 changes: 50 additions & 50 deletions .reaction/jsdoc/templates/fixtures/documents/collector.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var CollectorBase = dcl( Destroyable, {
}
/**
* The collection that being managed
* @type {object|array}
* @type {Object|Array}
*/
this.heap = obj || {};
// mixin the probe
Expand All @@ -43,7 +43,7 @@ var CollectorBase = dcl( Destroyable, {
* See http://en.wikipedia.org/wiki/Fisher-Yates_shuffle.
* @function
* @memberOf module:documents/collector~CollectorBase#
* @returns {array}
* @returns {Array}
*/
this.shuffle = sys.bind( sys.shuffle, this, this.heap );

Expand All @@ -60,9 +60,9 @@ var CollectorBase = dcl( Destroyable, {
* Iterate over each item in the collection, or a subset that matches a query. This supports two signatures:
* `.each(query, function)` and `.each(function)`. If you pass in a query, only the items that match the query
* are iterated over.
* @param {object=} query A query to evaluate
* @param {Object=} query A query to evaluate
* @param {function(val, key)} iterator Function to execute against each item in the collection
* @param {object=} thisobj The value of `this`
* @param {Object=} thisobj The value of `this`
*/
each : function ( query, iterator, thisobj ) {
if ( sys.isPlainObject( query ) ) {
Expand All @@ -75,14 +75,14 @@ var CollectorBase = dcl( Destroyable, {
},
/**
* Returns the collection as an array. If it is already an array, it just returns that.
* @return {array}
* @returns {Array}
*/
toArray : function () {
return sys.toArray( this.heap );
},
/**
* Supports conversion to a JSON string or for passing over the wire
* @return {object}
* @return {Object}
* @returns {Object|array}
*/
toJSON : function () {
Expand All @@ -92,9 +92,9 @@ var CollectorBase = dcl( Destroyable, {
* Maps the contents to an array by iterating over it and transforming it. You supply the iterator. Supports two signatures:
* `.map(query, function)` and `.map(function)`. If you pass in a query, only the items that match the query
* are iterated over.
* @param {object=} query A query to evaluate
* @param {Object=} query A query to evaluate
* @param {function(val, key)} iterator Function to execute against each item in the collection
* @param {object=} thisobj The value of `this`
* @param {Object=} thisobj The value of `this`
*/
map : function ( query, iterator, thisobj ) {
if ( sys.isPlainObject( query ) ) {
Expand All @@ -110,10 +110,10 @@ var CollectorBase = dcl( Destroyable, {
* callback, where each successive callback execution consumes the return value of the previous execution. If accumulator
* is not passed, the first element of the collection will be used as the initial accumulator value.
* are iterated over.
* @param {object=} query A query to evaluate
* @param {Object=} query A query to evaluate
* @param {function(result, val, key)} iterator The function that will be executed in each item in the collection
* @param {*=} accumulator Initial value of the accumulator.
* @param {object=} thisobj The value of `this`
* @param {Object=} thisobj The value of `this`
* @return {*}
*/
reduce : function ( query, iterator, accumulator, thisobj ) {
Expand All @@ -129,11 +129,11 @@ var CollectorBase = dcl( Destroyable, {
* Creates an object composed of keys returned from running each element
* of the collection through the given callback. The corresponding value of each key
* is the number of times the key was returned by the callback.
* @param {object=} query A query to evaluate. If you pass in a query, only the items that match the query
* @param {Object=} query A query to evaluate. If you pass in a query, only the items that match the query
* are iterated over.
* @param {function(value, key, collection)} iterator
* @param {object=} thisobj The value of `this`
* @return {object}
* @param {Object=} thisobj The value of `this`
* @return {Object}
*/
countBy : function ( query, iterator, thisobj ) {
if ( sys.isPlainObject( query ) ) {
Expand All @@ -148,11 +148,11 @@ var CollectorBase = dcl( Destroyable, {
* Creates an object composed of keys returned from running each element of the collection through the callback.
* The corresponding value of each key is an array of elements passed to callback that returned the key.
* The callback is invoked with three arguments: (value, index|key, collection).
* @param {object=} query A query to evaluate . If you pass in a query, only the items that match the query
* @param {Object=} query A query to evaluate . If you pass in a query, only the items that match the query
* are iterated over.
* @param {function(value, key, collection)} iterator
* @param {object=} thisobj The value of `this`
* @return {object}
* @param {Object=} thisobj The value of `this`
* @return {Object}
*/
groupBy : function ( query, iterator, thisobj ) {
if ( sys.isPlainObject( query ) ) {
Expand All @@ -166,9 +166,9 @@ var CollectorBase = dcl( Destroyable, {
/**
* Reduce the collection to a single value. Supports two signatures:
* `.pluck(query, function)` and `.pluck(function)`
* @param {object=} query The query to evaluate. If you pass in a query, only the items that match the query
* @param {Object=} query The query to evaluate. If you pass in a query, only the items that match the query
* are iterated over.
* @param {string} property The property that will be 'plucked' from the contents of the collection
* @param {String} property The property that will be 'plucked' from the contents of the collection
* @return {*}
*/
pluck : function ( query, property ) {
Expand All @@ -184,11 +184,11 @@ var CollectorBase = dcl( Destroyable, {
},
/**
* Returns a sorted copy of the collection.
* @param {object=} query The query to evaluate. If you pass in a query, only the items that match the query
* @param {Object=} query The query to evaluate. If you pass in a query, only the items that match the query
* are iterated over.
* @param {function(value, key)} iterator
* @param {object=} thisobj The value of `this`
* @return {array}
* @param {Object=} thisobj The value of `this`
* @returns {Array}
*/
sortBy : function ( query, iterator, thisobj ) {
if ( sys.isPlainObject( query ) ) {
Expand All @@ -202,10 +202,10 @@ var CollectorBase = dcl( Destroyable, {
/**
* Retrieves the maximum value of an array. If callback is passed,
* it will be executed for each value in the array to generate the criterion by which the value is ranked.
* @param {object=} query A query to evaluate . If you pass in a query, only the items that match the query
* @param {Object=} query A query to evaluate . If you pass in a query, only the items that match the query
* are iterated over.
* @param {function(value, key, collection)} iterator
* @param {object=} thisobj The value of `this`
* @param {Object=} thisobj The value of `this`
* @return {number}
*/
max : function ( query, iterator, thisobj ) {
Expand All @@ -220,10 +220,10 @@ var CollectorBase = dcl( Destroyable, {
/**
* Retrieves the minimum value of an array. If callback is passed,
* it will be executed for each value in the array to generate the criterion by which the value is ranked.
* @param {object=} query A query to evaluate . If you pass in a query, only the items that match the query
* @param {Object=} query A query to evaluate . If you pass in a query, only the items that match the query
* are iterated over.
* @param {function(value, key, collection)} iterator
* @param {object=} thisobj The value of `this`
* @param {Object=} thisobj The value of `this`
* @return {number}
*/
min : function ( query, iterator, thisobj ) {
Expand Down Expand Up @@ -273,7 +273,7 @@ var ACollector = dcl( CollectorBase, {
this.heap = obj || [];
/**
* Creates an array of array elements not present in the other arrays using strict equality for comparisons, i.e. ===.
* @returns {array}
* @returns {Array}
*/
this.difference = sys.bind( sys.difference, this, this.heap );
/**
Expand Down Expand Up @@ -329,10 +329,10 @@ var ACollector = dcl( CollectorBase, {
/**
* Flattens a nested array (the nesting can be to any depth). If isShallow is truthy, array will only be flattened a single level.
* If callback is passed, each element of array is passed through a callback before flattening.
* @param {object=} query A query to evaluate . If you pass in a query, only the items that match the query
* @param {Object=} query A query to evaluate . If you pass in a query, only the items that match the query
* are iterated over.
* @param {function(value, key, collection)} iterator,
* @param {object=} thisobj The value of `this`
* @param {Object=} thisobj The value of `this`
* @return {number}
*/
flatten : function ( query, iterator, thisobj ) {
Expand Down Expand Up @@ -380,8 +380,8 @@ exports.object = function ( obj ) {
Returns true if all items match the query. Aliases as `all`
@function

@param {object} qu The query to execute
@returns {boolean}
@param {Object} qu The query to execute
@returns {Boolean}
@name every
@memberOf module:documents/collector~CollectorBase#
*/
Expand All @@ -391,8 +391,8 @@ exports.object = function ( obj ) {
Returns true if any of the items match the query. Aliases as `any`
@function

@param {object} qu The query to execute
@returns {boolean}
@param {Object} qu The query to execute
@returns {Boolean}
@memberOf module:documents/collector~CollectorBase#
@name some
*/
Expand All @@ -401,8 +401,8 @@ exports.object = function ( obj ) {
/**
Returns the set of unique records that match a query

@param {object} qu The query to execute.
@return {array}
@param {Object} qu The query to execute.
@returns {Array}
@memberOf module:documents/collector~CollectorBase#
@name unique
@method
Expand All @@ -412,8 +412,8 @@ exports.object = function ( obj ) {
Returns true if all items match the query. Aliases as `every`
@function

@param {object} qu The query to execute
@returns {boolean}
@param {Object} qu The query to execute
@returns {Boolean}
@name all
@memberOf module:documents/collector~CollectorBase#
*/
Expand All @@ -423,8 +423,8 @@ exports.object = function ( obj ) {
Returns true if any of the items match the query. Aliases as `all`
@function

@param {object} qu The query to execute
@returns {boolean}
@param {Object} qu The query to execute
@returns {Boolean}
@memberOf module:documents/collector~CollectorBase#
@name any
*/
Expand All @@ -433,8 +433,8 @@ exports.object = function ( obj ) {
/**
Remove all items in the object/array that match the query

@param {object} qu The query to execute. See {@link module:ink/probe.queryOperators} for the operators you can use.
@return {object|array} The array or object as appropriate without the records.
@param {Object} qu The query to execute. See {@link module:ink/probe.queryOperators} for the operators you can use.
@return {Object|Array} The array or object as appropriate without the records.
@memberOf module:documents/collector~CollectorBase#
@name remove
@method
Expand All @@ -444,8 +444,8 @@ exports.object = function ( obj ) {
Returns the first record that matches the query and returns its key or index depending on whether `obj` is an object or array respectively.
Aliased as `seekKey`.

@param {object} qu The query to execute.
@returns {object}
@param {Object} qu The query to execute.
@returns {Object}
@memberOf module:documents/collector~CollectorBase#
@name findOneKey
@method
Expand All @@ -455,8 +455,8 @@ exports.object = function ( obj ) {
/**
Returns the first record that matches the query. Aliased as `seek`.

@param {object} qu The query to execute.
@returns {object}
@param {Object} qu The query to execute.
@returns {Object}
@memberOf module:documents/collector~CollectorBase#
@name findOne
@method
Expand All @@ -467,8 +467,8 @@ exports.object = function ( obj ) {
Find all records that match a query and returns the keys for those items. This is similar to {@link module:ink/probe.find} but instead of returning
records, returns the keys. If `obj` is an object it will return the hash key. If 'obj' is an array, it will return the index

@param {object} qu The query to execute.
@returns {array}
@param {Object} qu The query to execute.
@returns {Array}
@memberOf module:documents/collector~CollectorBase#
@name findKeys
@method
Expand All @@ -478,8 +478,8 @@ exports.object = function ( obj ) {
/**
Find all records that match a query

@param {object} qu The query to execute.
@returns {array} The results
@param {Object} qu The query to execute.
@returns {Array} The results
@memberOf module:documents/collector~CollectorBase#
@name find
@method
Expand All @@ -488,8 +488,8 @@ exports.object = function ( obj ) {
/**
Updates all records in obj that match the query. See {@link module:ink/probe.updateOperators} for the operators that are supported.

@param {object} qu The query which will be used to identify the records to updated
@param {object} setDocument The update operator. See {@link module:ink/probe.updateOperators}
@param {Object} qu The query which will be used to identify the records to updated
@param {Object} setDocument The update operator. See {@link module:ink/probe.updateOperators}
@memberOf module:documents/collector~CollectorBase#
@name update
@method
Expand Down
Loading