8000 updated packages, adds reaction-inventory · github4f/reaction@2bdf522 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2bdf522

Browse files
author
aaronjudd
committed
updated packages, adds reaction-inventory
1 parent 8c57514 commit 2bdf522

File tree

8 files changed

+103
-15
lines changed

8 files changed

+103
-15
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"env": {
44
"browser": true,
55
"node": true,
6-
"meteor": true,
6+
"meteor": true
77
},
88
"ecmaFeatures": {
99
"arrowFunctions": true,

.meteor/packages

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,15 @@ random
2626
ejson
2727
check
2828
underscore
29-
less
3029
oauth-encryption
3130
audit-argument-checks
32-
spiderable
33-
nemo64:bootstrap
31+
32+
# Recommended Packages
33+
34+
less # dependency of bootstrap, core-theme
35+
spiderable # use ongoworks:spiderable with Docker
36+
nemo64:bootstrap # required only with bootstrap-theme
37+
# meteorhacks:sikka # additional ddp, login security
3438

3539
# Meteor Auth Packages
3640

@@ -46,11 +50,12 @@ accounts-oauth
4650
reactioncommerce:core
4751
reactioncommerce:bootstrap-theme
4852
reactioncommerce:reaction-accounts
53+
reactioncommerce:reaction-inventory
4954
reactioncommerce:reaction-shipping
5055
reactioncommerce:reaction-analytics-libs
5156
reactioncommerce:reaction-analytics
5257
reactioncommerce:reaction-social
53-
58+
# reactioncommerce:launchdock
5459

5560
# Reaction Payment Packages
5661

@@ -60,10 +65,9 @@ reactioncommerce:reaction-stripe
6065
#reactioncommerce:reaction-braintree
6166

6267
# Testing packages
63-
64-
#velocity:html-reporter
65-
#sanjo:jasmine
66-
#velocity:helpers
68+
# velocity:html-reporter
69+
# sanjo:jasmine
70+
# velocity:helpers
6771

6872
# Performance & Debugging Tools
6973

.meteor/versions

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,14 @@ raix:ui-dropped-event@0.0.7
126126
random@1.0.5
127127
rate-limit@1.0.0
128128
reactioncommerce:bootstrap-theme@1.7.0
129-
reactioncommerce:core@0.9.4
129+
reactioncommerce:core@0.9.5
130130
reactioncommerce:core-theme@1.8.0
131131
reactioncommerce:reaction-accounts@1.5.2
132-
reactioncommerce:reaction-analytics@1.1.1
132+
reactioncommerce:reaction-analytics@1.2.0
133133
reactioncommerce:reaction-analytics-libs@1.1.0
134+
reactioncommerce:reaction-inventory@0.1.0
134135
reactioncommerce:reaction-paypal@1.2.3
135-
reactioncommerce:reaction-shipping@0.6.1
136+
reactioncommerce:reaction-shipping@0.6.2
136137
reactioncommerce:reaction-social@0.4.1
137138
reactioncommerce:reaction-stripe@3.0.1
138139
reactive-dict@1.1.3

circle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ dependencies:
1919
test:
2020
override:
2121
- cd $HOME/reaction
22-
- VELOCITY_TEST_PACKAGES=1 meteor test-packages --driver-package velocity:html-reporter --velocity --release velocity:METEOR@1.2.1_1
22+
- VELOCITY_TEST_PACKAGES=1 meteor test-packages --driver-package velocity:html-reporter --velocity --release VELOCITY_MIRROR_METEOR_RELEASE
2323
- docker run -d -p :80:80 reactioncommerce/prequel; sleep 10
2424
- curl --retry 10 --retry-delay 5 -v http://localhost
2525

docs/developer/inventory.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Inventory
2+
The [reactioncommerce:reaction-inventory](https://github.com/reactioncommerce/reaction-inventory) package implements inventory methods that are triggered with **collection hooks**.
3+
4+
The hooks trigger updates to the `Inventory` collection on `Product` and `Cart` collection changes.
5+
6+
# Methods
7+
## "inventory/setStatus"
8+
Sets matching inventory `Inventory.workflow.status` to a new status. Defaults to `new` to `reserved`.
9+
10+
## "inventory/clearStatus"
11+
Accepts a status and currentStatus. Used to reset status on inventory item. Defaults to "new".
12+
13+
## "inventory/clearReserve"
14+
Resets `reserved` ReactionCore.Schemas.CartItem objects to `new`.
15+
16+
## "inventory/addReserve"
17+
Set `reserved` status ReactionCore.Schemas.CartItem object.
18+
19+
## "inventory/backorder"
20+
Set `backorder` status for a ReactionCore.Schemas.CartItem object.
21+
22+
## "inventory/lowStock"
23+
WIP - will be used to send email notifications on low inventory levels.
24+
25+
## "inventory/register"
26+
Check a `ReactionCore.Schemas.Product` object and update `Inventory` collection with inventory documents.
27+
28+
## "inventory/adjust"
29+
Adjusts existing `ReactionCore.Schemas.Product` documents when changes are made we get the inventoryQuantity for each product variant,and compare the qty to the qty in the inventory records we will add inventoryItems as needed to have the same amount as the inventoryQuantity but when deleting, we'll refuse to delete anything not **workflow.status="new"**.
30+
31+
## "inventory/remove"
32+
Remove an inventory item permanently
33+
34+
## "inventory/shipped"
35+
Set status of inventory to `shipped`.
36+
37+
## "inventory/return"
38+
Set status of returned inventory to `return`.
39+
40+
## "inventory/returnToStock"
41+
Set status of `return` items to `new`.

docs/developer/package-cycles.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
Package authors should choose a support path for their packages, and use the "cycle" key in the package registry to indicate the kind of support the package will have.
2+
3+
**Core**
4+
5+
Transfer repository to reactioncommerce organization.
6+
7+
You can transfer the package repo to the Reaction Commerce Github organization (where you'll be given admin rights to the repo). Do this if you would prefer to not to be solely responsible for ongoing updates and compatibility maintenance. We'll adopt these packages as our own, and should be considered the most stable packages, and will be identified as **Core** packages. Packages of this type should also provide reasonable integration testing coverage. Security tests on publications and methods are required. Must include continuous integration config file.
8+
9+
Core packages should be reliable for use as dependencies by other packages.
10+
11+
Any documentation blocks should contain your organization and author information, while if you need to document a maintainer, you can use `Reaction Commerce <maintainer at reactioncommerce.org>`.
12+
13+
In the package registry, packages of this type should be configured cycle:1. `Cycle` is a reference to a software lifecycle.
14+
15+
```
16+
cycle: 1 // core
17+
```
18+
19+
**Community**
20+
21+
We can create a reactioncommerce org **community fork** of your package repo, and maintain a supported fork that we publish as a `reactioncommerce:*` package. These packages may be included in the default `.meteor/packages` file for Reaction. Packages of this type should be configured as `Community` , `cycle: 2` in the package registry. Ideally these packages have CI and some testing coverage.
22+
23+
**Public**
24+
25+
You want to manage all org, control and package publishing. You'll be responsible for compatibility updates and ensure that corresponding Atmosphere package updates are published for every major Reaction release to maintain compatibility. Packages of this type should be configured as `Public` , `cycle: 3` in the package registry.
26+
27+
We'll do limited testing on these packages, so they will only be made available as optional packages that have to be manually added.
28+
29+
**Local** All other package types should be `cycle:4`.
30+
31+
**Licensing**
32+
33+
Reaction is GPL v3 licensed. Package licensing may be GPL v3 compatible licenses such as GPL v3, MIT, APACHE v2.

docs/developer/packages.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Packages
22
Reaction packages are Meteor packages that add a call to `ReactionCore.registerPackage` declaring the package structure to the Reaction registry.
3-
43
- [Core Packages](#core-packages)
54
- [Public packages](#public-packages)
65
- [Private packages](#private-packages)
@@ -9,6 +8,7 @@ Reaction packages are Meteor packages that add a call to `ReactionCore.registerP
98
- [Permissions](#permissions)
109
- [Owner](#owner)
1110
- [Admin](#admin)
11+
1212
- [Dashboard](#dashboard)
1313
- [Routes](#routes)
1414
- [Collections](#collections)
@@ -230,9 +230,11 @@ layout: [
230230
For more details about layouts, and workflows see: [workflow.md](workflow.md)
231231

232232
**_Special Usage_**
233-
- `cycle` 1- Core, 2- Stable, 3- Testing 4- Early
233+
- `cycle` 1- Core, 2- Community, 3- Public 4 - Local
234234
- `container` group alike for presentation _example: used to connect settings on dashboard app card registry object_
235235

236+
See: [package-cycles.md](package-cycles.md)
237+
236238
**Dynamic Templates**
237239

238240
The `provides` property is a "placement" value, loading it as `dynamic template` where the other conditions match a request from the `reactionApps` helper.

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"scripts": {
3+
"reaction": "meteor --raw-logs --settings settings/dev.settings.json",
4+
"reaction reset": "meteor reset && meteor --raw-logs --settings settings/dev.settings.json",
5+
"reaction clean": "./bin/reset.sh"
6+
}
7+
}

0 commit comments

Comments
 (0)
0