These are chat archives for reactioncommerce/reaction

31st
Mar 2017
Sami Baral
@imaslarab
Mar 31 2017 04:25
Hi @all, I've been working with @mikeumus , and have just started with RC.
And we are having a issue in route. The route changes on every selection of child variants (product/:variantId). How do you handle this?
Michael Duane Mooring
@mikeumus
Mar 31 2017 05:57
We're making a custom cart/checkout that requires every product variant selection to have a choice from the user (like a normal form, why did you guys not do it like this?)

@zenweasel, what was the thing you said on how you'd do this with the cart?

I think the analogy of a form is good. When you fill out a form, the next input doesn't overide and forget the last, I think this is an inevitable refactor for RC in the future and surprised there isn't more flac right now here in the Gitter for this.

Michael Duane Mooring
@mikeumus
Mar 31 2017 06:09
@spencern, your customers don't just choose a single option per product, speak up man how do you do it?
Super customized old version of RC?
;)
Brent Hoover
@zenweasel
Mar 31 2017 06:55
@mikeumus Could you clarify what you are talking about?
Vigy
@vigyano
Mar 31 2017 07:41
I enabled Shippo with test API key and it shows the list of carrier but on checkout it shows "configure now"? Is shippo integration working? am I missing any other config?
Brent Hoover
@zenweasel
Mar 31 2017 07:44
Cart_checkout.png
Seems to be working for me
Vigy
@vigyano
Mar 31 2017 07:45
I see, after enabling API key, is there something I need to do in each products?
Brent Hoover
@zenweasel
Mar 31 2017 07:46
No, but you might need to enable carriers in the Shippo admin
Oh, did you edit your address? It’s not reactive?
You need to add/edit an address for it to look at shipping methods again
Vigy
@vigyano
Mar 31 2017 07:47
oh! that might be it. Let me check.
Nope, even deleted the address and added, but shippo carriers are not showing
blob
blob
Brent Hoover
@zenweasel
Mar 31 2017 07:52
that’s weird
Vigy
@vigyano
Mar 31 2017 07:53
I am in development branch
Brent Hoover
@zenweasel
Mar 31 2017 07:54
Yep, me too
hrath2015
@hrath2015
Mar 31 2017 07:58
@vigyano try delete everything from cart and startover
Vigy
@vigyano
Mar 31 2017 07:59
I did that too, let me try again
no luck, I did it different in different laptop and same issue.
tried both in windows and mac.
Brent Hoover
@zenweasel
Mar 31 2017 08:02
don’t know. I just added our API to my local install and it just worked.
Vigy
@vigyano
Mar 31 2017 08:02
will try without custom plugin
Brent Hoover
@zenweasel
Mar 31 2017 08:03
did you create a custom Shipping.json file?
Vigy
@vigyano
Mar 31 2017 08:05
yes :worried:
Brent Hoover
@zenweasel
Mar 31 2017 08:05
Try not using that
I’m using the stock one here...
Vigy
@vigyano
Mar 31 2017 08:08
I need to spin up the docker image again, can I directly edit the shipping collection?
can i drop all documents in shipping collection directly in db and enable shippo again?
Brent Hoover
@zenweasel
Mar 31 2017 08:11
You could try that, not sure if it would work or not
Vigy
@vigyano
Mar 31 2017 08:18
not working
Brent Hoover
@zenweasel
Mar 31 2017 08:19
Yeah, I think you need to try loading the default Shipping.json
Vigy
@vigyano
Mar 31 2017 08:19
ok, trying in my local
Vigy
@vigyano
Mar 31 2017 08:25
used stock shipping.json and same issue
Brent Hoover
@zenweasel
Mar 31 2017 08:25
Yeah, I’m stumped then
Vigy
@vigyano
Mar 31 2017 08:26
I will remove the custom plugin and try reaction base
Brent Hoover
@zenweasel
Mar 31 2017 08:27
when you test it are you logging in as an admin or an anonymous user?
Vigy
@vigyano
Mar 31 2017 08:27
I used anonymous user, but same result when I do with admin
Brent Hoover
@zenweasel
Mar 31 2017 08:27
Hmmm, I am trying to figure out how I could replicate this if it’s a bug
Vigy
@vigyano
Mar 31 2017 08:28
let me try with base reaction without any custom plugin and report back
regarding shippo, I signed up --> added payment --> activated shippo account --> picked API test key and used in reaction. Is there anything else I need to do at shippo end?
Brent Hoover
@zenweasel
Mar 31 2017 08:31
No, I don’t think so.
I didn’t have Shippo configured. I just plugged in our API Key and boom, eveeything came up
Vigy
@vigyano
Mar 31 2017 08:32
hmmm, I deleted the custom plugin and started reaction default and none of the styles are applied
blob
Brent Hoover
@zenweasel
Mar 31 2017 08:33
Yeah, you got something going on with your install there
Vigy
@vigyano
Mar 31 2017 08:33
I think this is not related to shippo, something else.
let me try in my mac
Brent Hoover
@zenweasel
Mar 31 2017 08:33
Yeah, definitely not shippo related. Sounds lke a build error
when you run it locally are you running it in a Docker container?
Vigy
@vigyano
Mar 31 2017 08:39
no , just comandline reaction
Vigy
@vigyano
Mar 31 2017 08:55
that reaction styles/theme error is fixed by reinstalling reactoin and Imagemagic
now testing the shippo with reaction default
Screen Shot 2017-03-31 at 1.57.58 AM.png
removed custom plugin and reinstalled reaction and added shippo api and getting this error at checkout when trying to add address
Brent Hoover
@zenweasel
Mar 31 2017 09:00
You’re on development?
Vigy
@vigyano
Mar 31 2017 09:00
yes
Brent Hoover
@zenweasel
Mar 31 2017 09:00
I don’t know. I am running on development here and am not having any issues
Vigy
@vigyano
Mar 31 2017 09:01
I tested both in mac and windows
Brent Hoover
@zenweasel
Mar 31 2017 09:01
I can try a fresh clone and see if anything is different. But no one else is reporting it broken
Vigy
@vigyano
Mar 31 2017 09:02
hmm, do you think I may miss something in shippo end?
but the API works and populates the carrier in shipping collection
Brent Hoover
@zenweasel
Mar 31 2017 09:03
it looks like you may be not getting a response
Trying to parse the response received from Shippo
shippoRates would appear to be undefined
Can you put in a console.log of what shippoShipment is?
there
Vigy
@vigyano
Mar 31 2017 09:07
ok, let me try
Vigy
@vigyano
Mar 31 2017 09:17
I got the response, there is object rates: [ { .... }] but not rates_list
>
rates: [
{
object_created: '2017-03-31T09:14:15.471Z',
object_id: 'xxxxxxxxxxxxx,
object_owner: 'xxxxxxxxxxx',
shipment: 'bf460c19c6e2498ab04913ca2a44c0f0',
attributes: [
Object
],
amount: '21.18',
currency: 'USD',
amount_local: '21.18',
currency_local: 'USD',
provider: 'USPS',
provider_image_75: 'https://shippo-static.s3.amazonaws.com/providers/75/USPS.png',
provider_image_200: 'https://shippo-static.s3.amazonaws.com/providers/200/USPS.png',
servicelevel: [
Object
],
days: 1,
arrives_by: null,
duration_terms: 'Overnight delivery to most U.S. locations.',
messages: [],
carrier_account: 'xxxxxxxxxxx',
test: true,
zone: '1'
}, ...
when I change rates_list to rates as shippoShipment.rates it works
Vigy
@vigyano
Mar 31 2017 09:22
blob
Vigy
@vigyano
Mar 31 2017 09:29
@zenweasel - found it, so the issue is due to shippo API versioning at Version 2017-03-29, the rates_list is changed to rates and few others. Your might be calling old API version and so it works.
blob
Brent Hoover
@zenweasel
Mar 31 2017 09:30
  rates_list:
   [ { object_state: 'VALID',
       object_purpose: 'PURCHASE',
       object_created: '2017-03-31T09:29:07.764Z',
       object_updated: '2017-03-31T09:29:07.764Z',
       object_id: 'ee07e39dab964e1c891ef614ac82efbe',
       object_owner: 'admin@reactioncommerce.com',
       shipment: '366a8459d3e44b88ba64e25202be0945',
       available_shippo: true,
       attributes: [],
       amount: '11.24',
       currency: 'USD',
       amount_local: '11.24',
       currency_local: 'USD',
Yeah, I get rates_list
so they just changed their API yesterday?
nice they roll out a change that will break everything for everybody
Vigy
@vigyano
Mar 31 2017 09:34
yup and the changes on those name are bad, it should break many others
Brent Hoover
@zenweasel
Mar 31 2017 09:34
Do they allow you to select version # in your admin panel?
obviously they didn’t roll it out for us
Vigy
@vigyano
Mar 31 2017 09:36
I don't see anywhere to select the version in their dashboard, but it depends on our call to specify the version
Brent Hoover
@zenweasel
Mar 31 2017 09:36
you would think
Vigy
@vigyano
Mar 31 2017 09:37
curl https://api.goshippo.com/shipments/  \
    -H "Authorization: ShippoToken shippo_test_051893b9e43a610f5b48639522df2b9d9084e3d0" \
    -H "Shippo-API-Version: YYYY-MM-DD" \
    -d '{ ... }'
# now this API request uses the API version "YYYY-MM-DD"
so, this specifies the version -- Shippo-API-Version
Brent Hoover
@zenweasel
Mar 31 2017 09:37
so what I don’t understand still is why it works for me and not for you
Vigy
@vigyano
Mar 31 2017 09:40
hmm, can it be related to global region if they are rolling out by regions
Brent Hoover
@zenweasel
Mar 31 2017 09:41
I can’t believe they would be so stupid to roll out a breaking change like that
:worried: :gun:
Vigy
@vigyano
Mar 31 2017 09:41
:smile:
hengsoheak
@hengsoheak
Mar 31 2017 09:41
Sorry I'm a new members,
i would like to ask all members here about Reaction because I'm planning to build a e commerce website base on API after research I found Reaction is really dynamic but I do not play around with it yet. So Could I use Reaction for my e commerce application and it may not much on debug ?
Brent Hoover
@zenweasel
Mar 31 2017 09:42
I’m trying reinstalling my node stuff to see if the npm package rev'd
Vigy
@vigyano
Mar 31 2017 09:45
in shippo node_modules, it seems their API response header provides the version.
_get_headers: function(requestData) {
        var apiVersion = this._shippo.get('version');
Brent Hoover
@zenweasel
Mar 31 2017 09:45
I am guessing it’s a version pinning thing
this has bit us before
Vigy
@vigyano
Mar 31 2017 09:48
it might be, but shouldn't their server response same version to all the requests
Brent Hoover
@zenweasel
Mar 31 2017 09:48
Well, I mean possibly you have a newer version of the npm package and that uses the newer version #
Vigy
@vigyano
Mar 31 2017 09:49
yup, that should be it.
"shippo": "^1.2.0",
Brent Hoover
@zenweasel
Mar 31 2017 09:49
nope
still working for me
they must be doing it by login?
API key I mean
Vigy
@vigyano
Mar 31 2017 09:51
it can be, I created shippo account just today and they might pin the new version to response to new users
Brent Hoover
@zenweasel
Mar 31 2017 09:51
Right, that’s the only thing I can think of
Which is also lame
Vigy
@vigyano
Mar 31 2017 09:52
I agree
Brent Hoover
@zenweasel
Mar 31 2017 09:52
why would they think that just because you signed up for an account today that you are writing your software today
Vigy
@vigyano
Mar 31 2017 09:53
haha :smile:
maybe they can reduce the users who are still using old version
Brent Hoover
@zenweasel
Mar 31 2017 09:54
yeah, this is a textbook case of how not to deprecate an API
Vigy
@vigyano
Mar 31 2017 09:54
this way, they could monitor the existing user API calls and make appropriate actions, maybe ... don't know.
still there are many other better ways to gracefully migrate the existing user base
Brent Hoover
@zenweasel
Mar 31 2017 09:55
especially since the API is literally the only thing they produce
we just wrote this software two months ago, that’s hardly “legacy"
hjopefully there is just an easy way for us to force the old version
do you know what the old version was?
Vigy
@vigyano
Mar 31 2017 09:58
yeah, they have it in their docs, let me check
last version is 2016-10-25
on top left corner
Brent Hoover
@zenweasel
Mar 31 2017 10:01
Ok, I am writing up an issue for it
Vigy
@vigyano
Mar 31 2017 10:01
I am almost finishing the issue
Brent Hoover
@zenweasel
Mar 31 2017 10:02
Ok
Vigy
@vigyano
Mar 31 2017 10:14
@zenweasel -- here is the issue reactioncommerce/reaction#2069
Brent Hoover
@zenweasel
Mar 31 2017 10:14
:+1:
Vigy
@vigyano
Mar 31 2017 10:14
thanks for the help to figure out the issue
now, I got to sleep
Brent Hoover
@zenweasel
Mar 31 2017 10:15
Good night
Vigy
@vigyano
Mar 31 2017 10:16
have a great day!
Brent Hoover
@zenweasel
Mar 31 2017 10:18
:smile:
Stevaras
@stevaras
Mar 31 2017 10:39
Hello. I want to ask if there is an open issue for a specific behavior in development branch.
1) I create a new product.
2) I put some fields like title subtitle and stuff but I don't publish yet.
3) I upload an image
4) I remove the image and the fields are all cleared although the revision is still there in db
5) If I put again something in the title then most of the times it brings back the fields I have lost
I don't seem to find this issue in github. Are you familiar with it ?
Lorenzo Campanis
@lcampanis
Mar 31 2017 11:02
Hi all! Are there any docs that can help us with migrations (the reaction way)? How do the mechanics behind reaction reset work and do they help with migrations at all, how versioning would work without conflicting with reaction's migration versions (probably add a very high version number on ours?).
Brent Hoover
@zenweasel
Mar 31 2017 11:06
Here’s the package we’re using for migrations: https://github.com/percolatestudio/meteor-migrations It’s pretty simple
it just mainly provides a mechnism to prevent your from running a migration twice
reaction reset is pretty much just meteor reset plus wiping out out the node_modules directory
@stevaras No, I have not seen that issue
Elvis Piobbico
@Elvissaccio_twitter
Mar 31 2017 13:35
hi
Brent Hoover
@zenweasel
Mar 31 2017 13:35
Hello
Elvis Piobbico
@Elvissaccio_twitter
Mar 31 2017 13:36
i have finally discover reaction commerce
:-)
Brent Hoover
@zenweasel
Mar 31 2017 13:36
Welcome/Mabuhay
Elvis Piobbico
@Elvissaccio_twitter
Mar 31 2017 13:36
great
system
i dont want disturb
but
if anyone can explain some little things
i'm so happy
:-)
Brent Hoover
@zenweasel
Mar 31 2017 13:37
I can try
Elvis Piobbico
@Elvissaccio_twitter
Mar 31 2017 13:37
great
for example is already available any tools for the user about customize template
?
i mean like a page builder
or any other things similar
Brent Hoover
@zenweasel
Mar 31 2017 13:38
You mean like a GUI?
Elvis Piobbico
@Elvissaccio_twitter
Mar 31 2017 13:39
i mean like page builder
Brent Hoover
@zenweasel
Mar 31 2017 13:39
what is “page builder”?
Elvis Piobbico
@Elvissaccio_twitter
Mar 31 2017 13:39
just sec
rc-desktop.png
i can see user can configure the grid
then i think is possible alo other customization
Brent Hoover
@zenweasel
Mar 31 2017 13:41
No, but that’s where we are going, for example you can create your own React compomnents for the Product Detail Page and select them from the admin
Elvis Piobbico
@Elvissaccio_twitter
Mar 31 2017 13:42
mmm this is good
with our system admin we configure v1 for check all things
is possible create a marketplace ?
Brent Hoover
@zenweasel
Mar 31 2017 13:43
that’s what we are in the process of doing. If you look at our PR’s you can see the pending changes
Elvis Piobbico
@Elvissaccio_twitter
Mar 31 2017 13:43
great
do you have an estimation about marketplace ?
Brent Hoover
@zenweasel
Mar 31 2017 13:44
No, except that it’s Next. In the next month or so
Elvis Piobbico
@Elvissaccio_twitter
Mar 31 2017 13:45
oh this is very good sound
so in one month (more or less) release the marketplace part ?
Brent Hoover
@zenweasel
Mar 31 2017 13:46
Yes, a lot of work has already been done. There are several very active contributors and it is our next focus
Elvis Piobbico
@Elvissaccio_twitter
Mar 31 2017 13:47
great
:-)
@zenweasel is already multistore ?
Brent Hoover
@zenweasel
Mar 31 2017 13:49
You can have multiple shops but there is no UI for it. But the database/schema already accomodates multiple shops
Elvis Piobbico
@Elvissaccio_twitter
Mar 31 2017 13:50
ok
great
then need only working in ui
right?
Brent Hoover
@zenweasel
Mar 31 2017 13:50
well, marketiplace is more than multiple-shops
it’s the ability ro grant people the rights to create shops, approve products, etc. etc.
It’s a pretty complicated thing
Elvis Piobbico
@Elvissaccio_twitter
Mar 31 2017 13:51
yes multistore is another thing about marketplace
Lorenzo Campanis
@lcampanis
Mar 31 2017 13:53
@zenweasel Thanks. Looked at it in detail, it's straightforward.
To avoid conflicting with Reaction's migrations though, you use migrations with versions as well I think here. So in case you have migrations and we have migrations, that won't work as migration "latest". Probably take RC migrations and add them to ours so that they run under our "latest" version and not yours?
Then regarding RC data structures, it's a question of how the mechanics behind adding new layouts (or any shop/product data) and if they have been documented.
Say a new package is added with layouts. Where should this layout exist, in order to write the migration? We know most places from experience, but in reality, is there a doc or a diagram to say that a new layout would need to sit (and be changed) in a few different collections specifically?
Brent Hoover
@zenweasel
Mar 31 2017 13:57
Re: migrations Are you saying you want all RC migrations to run before yours?
Lorenzo Campanis
@lcampanis
Mar 31 2017 14:04
The process is still fuzzy to me actually.. trying to see what the best way is to have RC migrations and ours run easily. So thought of just taking RC and add them to ours, say these https://github.com/reactioncommerce/reaction/tree/master/imports/plugins/core/versions/server/migrations
Brent Hoover
@zenweasel
Mar 31 2017 14:06
it all depends on how you are using them. The versions currently don’t correspond to anything and what we have done so far is not really order-dependent
Maybe a simple way to do it would be just start yours at a different number range, e.g. 4000+
what we plan on using migrations for mostly is for upgrades, when we change something about a schema or data structure
Lorenzo Campanis
@lcampanis
Mar 31 2017 14:10

We can start at 10000, but since

Meteor.startup(function() {
  Migrations.migrateTo('latest');
});

Yours will not be picked up with version 3 https://github.com/reactioncommerce/reaction/blob/master/imports/plugins/core/versions/server/migrations/3_reset_package_registry.js#L6, when ours is 10000.
So we'll have to bring them in as ours under version 10000 probably every time we have migrations coming from RC?

Brent Hoover
@zenweasel
Mar 31 2017 14:12
right, latest just meant to run from 0 to last
you could migrate just to a specific version
so if you have not run any, it will run 0, 1, 2, 3, etc.
so if you are 10000, it will run 1, 2, 3, 10000
Jeremy Shimko
@jshimko
Mar 31 2017 14:14
Should we maybe consider something like this?
Meteor.startup(function() {
  Migrations.migrateTo(process.env.REACTION_CURRENT_MIGRATION || 'latest');
});
as it is now, there’s no way to be anywhere other than latest
rollback is possible, but not without editing that code manually
Brent Hoover
@zenweasel
Mar 31 2017 14:15
no, you can rollback from the command line
Jeremy Shimko
@jshimko
Mar 31 2017 14:15
Oh, and that deletes the previous “latest”?
Brent Hoover
@zenweasel
Mar 31 2017 14:16
it runs the “down” process you have created
Jeremy Shimko
@jshimko
Mar 31 2017 14:16
but what happens when you restart the app?
Brent Hoover
@zenweasel
Mar 31 2017 14:16
that’s not rollback
that’s controlling what migrations run
Problem is, that would break the suggestion I just made about version
this I mean Migrations.migrateTo(process.env.REACTION_CURRENT_MIGRATION
Jeremy Shimko
@jshimko
Mar 31 2017 14:19
doesn’t adding a 10000 mean you can no longer add 7, 8, 9, etc and get them to happen?
Brent Hoover
@zenweasel
Mar 31 2017 14:19
Nope
Jeremy Shimko
@jshimko
Mar 31 2017 14:19
Oh, ok. Hadn’t tried that before
Brent Hoover
@zenweasel
Mar 31 2017 14:19
well, actually I should double-check that, I am just assuming it’s running how I think it runs
Lorenzo Campanis
@lcampanis
Mar 31 2017 14:20
thought so too... so running all migrations in sequence from 0 is weird no?
Brent Hoover
@zenweasel
Mar 31 2017 14:20
why?
that’s pretty much how I have always done it
Jeremy Shimko
@jshimko
Mar 31 2017 14:20
I assumed it ran to the highest number no matter what and wouldn’t choose a lower number if it appeared later. But that assumption was not based on any actual attempts to test that.
Lorenzo Campanis
@lcampanis
Mar 31 2017 14:21
by 0 we mean the very fist migration in history right?
Or just the first in the set you just want to run at a given time?
if I have run 0-100 in the past, why would I run them again?
Brent Hoover
@zenweasel
Mar 31 2017 14:21
it doesn’t, that’s not what I meant
it never runs one that ran already again. That’s pretty much it’s “one job"
you can set this env variable currently: Migrations.migrateTo(process.env.MIGRATE);
Lorenzo Campanis
@lcampanis
Mar 31 2017 14:24
Great that make sense. So "latest" means start from last run to highest number.. In which case it will run 10-100 for RC then then go to ours from 10000-10010?
Brent Hoover
@zenweasel
Mar 31 2017 14:24
as far as I can see it runs all migrations that have not already run and runs them in order
Jeremy Shimko
@jshimko
Mar 31 2017 14:25
yes
Brent Hoover
@zenweasel
Mar 31 2017 14:25
so if 4 has not run, even if you already ran 10000, 4 would run next time
Jeremy Shimko
@jshimko
Mar 31 2017 14:25
that’s the part I’m not 100% positive of.
Brent Hoover
@zenweasel
Mar 31 2017 14:25
that’s what I get from reading the code
@lcampanis Yes, that’s correct
but @jshimko has a point that we should test that to make sure that running 10000 doesn’t mean it will only run migrations > 10000 next time
Lorenzo Campanis
@lcampanis
Mar 31 2017 14:28
Yes that's one.
Then using process.env.MIGRATE would be used to rollback (or avoid running past some future migration) - but the number you use there is now mixed, how would it know which 1000* to run down?
Brent Hoover
@zenweasel
Mar 31 2017 14:28
honestly I don’t see a use case for needing to migrate to a certain version in our world
because if you check out a version of RC, you get the migrations that are there for that version
this is more for when you keep migrations and code separate from my experience
Jeremy Shimko
@jshimko
Mar 31 2017 14:29

but if this exists in the app…

Meteor.startup(function() {
  Migrations.migrateTo('latest');
});

I thought the expected behavior is that it will bring you up to the latest available migration on app start regardless of whether you've migrated down with the CLI previously

Brent Hoover
@zenweasel
Mar 31 2017 14:29
and…?
Lorenzo Campanis
@lcampanis
Mar 31 2017 14:30
yeah... so process.env.MIGRATE would need to set for rolling back no?
Jeremy Shimko
@jshimko
Mar 31 2017 14:30
what if that’s not what I want because the latest migration broke my app?
Brent Hoover
@zenweasel
Mar 31 2017 14:30
if it’s a env variable, doesn’t it always exist?
so you will permanently lock your migrations to that as long as that variable is set
Jeremy Shimko
@jshimko
Mar 31 2017 14:31
the current migrateTo point is a hard coded string, no?
Lorenzo Campanis
@lcampanis
Mar 31 2017 14:31
and this doesn't affect us then?
Meteor.startup(function() {
  Migrations.migrateTo('latest');
});
yes it seems like
doesn’t that override whatever you have passed in?
Brent Hoover
@zenweasel
Mar 31 2017 14:34
yes, but I think that env variable overrides what you pass in at as a function param
Jeremy Shimko
@jshimko
Mar 31 2017 14:34
@zenweasel I think that’s intended to be used instead of hard coding it like we did
I didn’t even know that existed
as it is now in Reaction, I think there’s no way to not be on the latest migration when the app starts
Brent Hoover
@zenweasel
Mar 31 2017 14:35
Yeah, that was sort of the intent
but I have no problem with have a env variable to override it
I feel like we aren’t talking about the problem anymore
Lorenzo Campanis
@lcampanis
Mar 31 2017 14:40
yeah problem still kinda persists I think, I hope I'm wrong.. So we say we run
10-11 from RC
10010-10011 from us
Rollback to 10009 (RC stays)
Rollback to 10 (you run down all of ours)
Brent Hoover
@zenweasel
Mar 31 2017 14:41
Yeah, you might just want to create your own migration system
this package was never meant to be the solve-all solution
Lorenzo Campanis
@lcampanis
Mar 31 2017 14:42
Eventually yes. So probably take RC's migrations and make them ours is probably the simplest
Brent Hoover
@zenweasel
Mar 31 2017 14:42
maybe we could have some sort of “vendor” tagging for migrations so that RC and others migrations run on separate rtracks
what sort of things are you planning on doing with migrations Lorenzo?
if you look at the migrations package, it’s just one file. Create your own migration collection and you're done
you could just copy the “versions” plug-in, and change the collection name
then start your own migrations at 1
Lorenzo Campanis
@lcampanis
Mar 31 2017 14:48
That's what we thought. Just wanted to see the power on the existing migrations.. For now migrations are needed mainly around shops, so thought if we add a new layout, it should be added in Shops as well. Should we add it with a migration, should we not (cause it will run by RC's init). It's a process that is unclear still as it's not documented exactly how things initialise and where things go after init, so putting a migration together will need full understanding of RC's architecture.
Brent Hoover
@zenweasel
Mar 31 2017 14:49
Yeah, that comment is fair
there’s some dark, dark magic going on there
migrations are a good way to do data changes that you would want to move into production
Lorenzo Campanis
@lcampanis
Mar 31 2017 14:50
lol.. okay, having that said, we will document this as we go along, cause it's dark yes.. Cool thanks! More soon :)
Brent Hoover
@zenweasel
Mar 31 2017 14:50
we had sort of kept the profile on them low because we didn’t feel the API was robust enough for a lot of use
maybe we could even create another plugin included with RC that’s just for custom migrations
to answer your second question about layouts. Beyond what’s already in the documentation the short answer is no, no more documentation. But the shorter answer is that they are all in Shops.layouts
Lorenzo Campanis
@lcampanis
Mar 31 2017 14:53
nice one thanks @zenweasel
Brent Hoover
@zenweasel
Mar 31 2017 14:54
:+1:
I do wish we had the stuff about layouts better documented
Elvis Piobbico
@Elvissaccio_twitter
Mar 31 2017 16:00
@zenweasel but the requirements for ram is 12gb?
Brent Hoover
@zenweasel
Mar 31 2017 16:05
we recommand at least 1, perfer 2
not sure where you got 12 from
Elvis Piobbico
@Elvissaccio_twitter
Mar 31 2017 16:06
oh
because we have faced little issue
on aws

root@ip-172-31-77-200:~/reaction# reaction

Using settings file at settings/dev.settings.json

Setting up plugin imports...

Setting up style imports...

Even with METEOR_ALLOW_SUPERUSER or --allow-superuser, permissions in your app
directory will be incorrect if you ever attempt to perform any Meteor tasks as
a normal user. If you need to fix your permissions, run the following command
from the root of your project:

sudo chown -Rh <username> .meteor/local

[[[[[ ~/reaction ]]]]]

=> Started proxy.
=> Started MongoDB.
Unexpected mongo exit code null. Restarting.
/root/.meteor/packages/meteor-tool/.1.4.3_2.13aht4s++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/utils/fiber-helpers.js:148
Fiber(runWithEnvironment).run();
^

Error: spawn ENOMEM
at exports._errnoException (util.js:907:11)
at ChildProcess.spawn (internal/child_process.js:309:11)
at Object.exports.spawn (childprocess.js:367:9)
at spawnMongod (/tools/runners/run-mongo.js:67:24)
at launchOneMongoAndWaitForReadyForInitiate (/tools/runners/run-mongo.js:483:12)
at launchMongo (/tools/runners/run-mongo.js:723:7)
at [object Object].
.extend._startOrRestart (/tools/runners/run-mongo.js:830:19)
at [object Object].<anonymous> (/tools/runners/run-mongo.js:897:14)
at runWithEnvironment (/tools/utils/fiber-helpers.js:112:21)
root@ip-172-31-77-200:~/reaction# reaction
I got this message until I raise mem to 12GB

Brent Hoover
@zenweasel
Mar 31 2017 16:08
Are you trying to run meteor with sudo?
Elvis Piobbico
@Elvissaccio_twitter
Mar 31 2017 16:08
just sec checking
Jeremy Shimko
@jshimko
Mar 31 2017 16:08
no, he’s running as root
Elvis Piobbico
@Elvissaccio_twitter
Mar 31 2017 16:09
I'm running directly as root
Brent Hoover
@zenweasel
Mar 31 2017 16:13
Well, I think @jshimko can probably answer this question better than I can so I am going to bed.
Elvis Piobbico
@Elvissaccio_twitter
Mar 31 2017 16:16
@zenweasel thanks
@jshimko if you can help us
we are so happy
:-)
Jeremy Shimko
@jshimko
Mar 31 2017 16:27
what’s the question?
Elvis Piobbico
@Elvissaccio_twitter
Mar 31 2017 16:28
:-)
Jeremy Shimko
@jshimko
Mar 31 2017 16:29
is there some reason you’re running the development environment on a remote server?
Elvis Piobbico
@Elvissaccio_twitter
Mar 31 2017 16:30
just sec
...to test...
Arturo
@paperbaker
Mar 31 2017 22:41
hey everyone. i've created a couple products in reaction and on the front page it shows the items at $0.00. This happening with anyone else?
it shows the real price in the product view
Arturo
@paperbaker
Mar 31 2017 22:51
latest reaction docker image, ubuntu 16, 2gb ram, https://pastebin.com/X3PsXrwJ docker logs so far
Arturo
@paperbaker
Mar 31 2017 23:03
lol is it because you need a product variant and an "available option"?
i guess that makes sense?
Arturo
@paperbaker
Mar 31 2017 23:16
that didn't work.
Arturo
@paperbaker
Mar 31 2017 23:26
I'm sorry. I figured it out. Things were simply not set to "public". Heh.
xuanvinhvu
@xuanvinhvu
Mar 31 2017 23:49
what's the recommended way to bulk add products into reaction?