These are chat archives for reactioncommerce/reaction

13th
Dec 2017
machiko
@machikoyasuda
Dec 13 2017 00:24
Reminder: Community call tomorrow! Subscribe at youtube.com/reactioncommerce
Nick Baldwin
@nbaldwin
Dec 13 2017 02:21
@rhaix Does it go away if you go into the product and change the inventory manually?
Josh Cox
@joshuacox
Dec 13 2017 03:08
@childproof well something is wrong, there should be an error if you don't have perms, and if you do have perms it should output test when catting the test file
lets try something more verbose whoami && ls -lh ~/.reaction && rm -Rf ~/.reaction && mkdir ~/.reaction && ls -lh ~/.reaction && echo test > ~/.reaction/test && ls -lh ~/.reaction/test && date -I >> ~/.reaction/test && cat ~/.reaction/test && rm ~/.reaction/test && ls -lh ~/.reaction
gopeshcitpl
@gopeshcitpl
Dec 13 2017 05:26
yesterday, i had updated the reaction latest version 1.6.1. it was updated successfully. but when i changes the files and uploaded on the server. it is taking time to running the app.
is there any loading issues in reaction latest version?
Brent Hoover
@zenweasel
Dec 13 2017 05:27
Nope
gopeshcitpl
@gopeshcitpl
Dec 13 2017 05:28
it was loading smoothly reaction prior version
But, i am getting very slow refresh.
Brent Hoover
@zenweasel
Dec 13 2017 05:28
We’re running it here w/o any issues: https://swag.getreaction.io/
Have you reset your node-modules after updating?
gopeshcitpl
@gopeshcitpl
Dec 13 2017 05:29
yes
the site is working but after changing the file then changes is reflecting very late.
Brent Hoover
@zenweasel
Dec 13 2017 05:32
not sure what you mean exactly. After making code changes or…..?
gopeshcitpl
@gopeshcitpl
Dec 13 2017 05:40
After making code changes
Brent Hoover
@zenweasel
Dec 13 2017 05:41
Nothing has really changed that would affect that. The changes from 1.6.0 to 1.6.1 are very small.
gopeshcitpl
@gopeshcitpl
Dec 13 2017 05:42
the meteor server taking time to restarted the app
Brent Hoover
@zenweasel
Dec 13 2017 05:45
I don’t know what to tell you. Nothing significant to server restart happened in the last update. You can see the changes here: https://github.com/reactioncommerce/reaction/pull/3394/files
gopeshcitpl
@gopeshcitpl
Dec 13 2017 05:46
ok thanks
Aladin
@redgenie
Dec 13 2017 06:33
Hello
Any real production site made using reaction ?
To get some inspiration from
Aladin
@redgenie
Dec 13 2017 06:35
With marketplace?
Brent Hoover
@zenweasel
Dec 13 2017 06:36
artlimes is a marketplace
hitachi19
@hitachi19
Dec 13 2017 13:02
where can i find the definition of “@reactioncommerce” in the code?
'import { registerSchema } from "@reactioncommerce/reaction-collections";'
@zenweasel hi @hitachi19
where can i find the definition of “@reactioncommerce” in the code?
'import { registerSchema } from "@reactioncommerce/reaction-collections";'
Loan Laux
@loanlaux
Dec 13 2017 13:22
@hitachi19 It's in package.json, under babel
hitachi19
@hitachi19
Dec 13 2017 13:25
@loanlaux i find it, thank you very much!
hitachi19
@hitachi19
Dec 13 2017 13:33
@loanlaux and what is the use of ‘.reaction’ folder ?just for deploy dock and jsdoc?
Loan Laux
@loanlaux
Dec 13 2017 13:34
@hitachi19 That's basically it
hitachi19
@hitachi19
Dec 13 2017 13:35
I understand, thank you very much again!
Loan Laux
@loanlaux
Dec 13 2017 13:35
Cheers :)
hitachi19
@hitachi19
Dec 13 2017 13:36
Cheers :)
Joe Mattelaer
@ducsuus
Dec 13 2017 16:25
Are workflows used to define the templates inside a given page (inside the template specified by the route)? Is there a guide/example I can find on making a new workflow for a new page? I'm trying to copy the checkout and not having a lot of luck :/
machiko
@machikoyasuda
Dec 13 2017 16:45
:tv: Reaction Community Call in 15 min! youtube.com/reactioncommerce
machiko
@machikoyasuda
Dec 13 2017 17:02
Feel free to post your questions here or in YouTube
Samson Paul Jr.
@SamsonPaulJr
Dec 13 2017 17:06
docker pull reactioncommerce/reaction doesn't pull the update of 1.6.1x, is the build failing?
Michael Jenny
@prinzdezibel
Dec 13 2017 17:24
Actually the README explaining how to get the swag shop running is not in master yet.
Aaron Judd
@aaronjudd
Dec 13 2017 17:25

@samsonpaul just tested https://hub.docker.com/r/reactioncommerce/reaction/tags/ ->

cd reaction
docker pull reactioncommerce/reaction
docker-compose -f docker-compose.yml up

Success.

Michael Jenny
@prinzdezibel
Dec 13 2017 17:46
@ducsuus Sorry, I've misunderstood your question during community call. First question you need to ask yourself: Do you really need a workflow at all? If it's just about rendering a template for a specific route, you wouldn't
Michael Jenny
@prinzdezibel
Dec 13 2017 17:57
Workflows - the way Reaction uses it at the moment - are probably not very similar to workflow processes you find in other projects like Zope or maybe Django (not sure about that). They are dealing a lot with how to get from workflow state A to workflow state B. They offer you means to implement guards to check if a specific workflow transition is valid, do check permissions, etc. On the other hand, workflows in Reaction are tightly coupled to the way how a certain workflow state is rendered. In future, we'd like to be more flexible with this, e.g. being able to modify an existing workflow to provide additional steps - as @spencern mentioned.
Michael Jenny
@prinzdezibel
Dec 13 2017 18:08
But to summarize the things you would probably need to implement your own workflow:
  • have layout defined in your plugin's register.js (see register.js from core plugin checkout)
  • have a route in registry that matches your new workflow (see also register.js)
  • if you want multiple workflow steps, like during checkout process, you need workflow_process and workflow_steps object in that layout array, otherwise a workflow_process is enough. See also: https://docs.reactioncommerce.com/reaction-docs/master/layout
  • Provide Meteor methods to push the states in your workflow. Check this for an example: checkout/server/methods/workflow.js
  • Have a property on a collection that adheres to the Workflow schema (This is where the current state of your workflow will be saved when you pushed it via meteor.call("pushWorkflowXYZ")
Joe Mattelaer
@ducsuus
Dec 13 2017 18:19
@prinzdezibel Thanks for the clarification! Do you think the structure of how workflows are "defined" will change much in the future?
Michael Jenny
@prinzdezibel
Dec 13 2017 18:54
Re @ducsuus: Actually, yes, I think so. I think it would make sense to have the workflow know about the possible states, knowing about the transitions and also having the calls that trigger the transitions Meteor.call("pushWorkflow") separated from UI. I've done a PR (reactioncommerce/reaction#3365) that addresses these points. But this is only a first proposal. The Reaction team needs to review if this is really the direction we want to take (it's using javascript-state-machine) and if meets the requirements and needs that I may have overlooked.
Aladin
@redgenie
Dec 13 2017 20:33
Hello. After some playing around and even loving Reaction, I still have a hard time to build trust in the solution. I’m not sure if this is in a mature enough state to be a production/entreprise grade platform. I even contacted the Reaction Platform team through the Get Quote page since nearly a week and I still didn’t receive any response.
Would you recommend this for an entreprise-grade multi-vendor marketplace or should I go with a solid solution for now and migrate later when Reaction matures?
Aladin
@redgenie
Dec 13 2017 20:55
And finally, if I chose say Yokart. Would it be easy to migrate to Reaction later?
Aaron Judd
@aaronjudd
Dec 13 2017 21:09
@redgenie looking to see what happened to your Platform inquiry and get a response back to you, but if you’d like direct messsage me re: platform, please feel free to, and i’d be happy to answer any questions.
Brent Hoover
@zenweasel
Dec 13 2017 21:11
@redgenie What makes you feel that it’s not production-ready?
Aladin
@redgenie
Dec 13 2017 21:15
@zenweasel the exampe sites that are made are not really inspiring trust. I checked the list of real websites made using Reaction. There’s the bolivian website and few others. They look nearly like they’re stock Reaction and don’t feel like they’re full-fledged websites.
http://www.yo-kart.com/multivendor-marketplace-packages.html if you check this page, you’ll be able to see the demo, a full-featured website that is very convincing unlike Reaction. Plus, the team is slow to responde with quotes, while Yokart has 999$ 1999$ and 5999$ packages for setting things up.
Brent Hoover
@zenweasel
Dec 13 2017 21:17
It’s very true that we are much earlier than other players like Magento. I guess it depends if you want to be in for the start of something or the end
Yes, I don’t know what happened with your sales inquiry.
Aladin
@redgenie
Dec 13 2017 21:19
@zenweasel, if it was something like my own startup, I would’ve chosen it eyes-closed. But I’m not confident that it can be used as an entreprise (lack of clear documentation, I still didn’t find any good plugin to follow, plugins ecosystem is non-existent).
Brent Hoover
@zenweasel
Dec 13 2017 21:20
Those are legitimate criticisms that we are working on
I think right now we are a better choice for people who expect they are going to be doing a lot of customisation, if you are looking for something more “out-of-the-box” then perhaps a more mature solution might be a better choice.
I’m never about telling you RC is right for you, only you can decide that. “Enterprise” is a very loaded word. But I think you might want to talk to Aaron before completely bailing.
Aladin
@redgenie
Dec 13 2017 21:22
So should I talk to him here or by email?
Brent Hoover
@zenweasel
Dec 13 2017 21:23
Your call. If you are want to talk about your budget, etc. maybe that’s better for a private convo?
but we are both glad to answer questions here as well
Possibly we could partner up to try and get your project going
rhaix
@rhaix
Dec 13 2017 21:33
Guys, is there any reason why a product image would display in the grid (thumbnail) and not in that same product's detail page? I checked the database and it stored the image in all formats (small, medium, etc), so probably not that, I created a plugin where you can make an http request and it creates the product in reaction, everything else looks like it works nicely except the image that should be displaying in the details page. Am I missing something?
Brent Hoover
@zenweasel
Dec 13 2017 21:33
@rhaix if you look in the metadata for the image, what shows there?
rhaix
@rhaix
Dec 13 2017 21:39
i'll post it here
brb
"metadata" : {
    "ownerId" : "admin",
    "productId" : "HGxsWkJnPv2gwv3pG",
    "variantId" : "HGxsWkJnPv2gwv3pG",
    "shopId" : "J8Bhq3uTtdgwZx3rz",
    "priority" : 0,
    "toGrid" : 1,
    "workflow" : "published"
},
Brent Hoover
@zenweasel
Dec 13 2017 21:40
so I don’t think productId and variantId should be set to the same value
that’s probably why you are seeing some strange behavior
rhaix
@rhaix
Dec 13 2017 21:47
the thing is, these are single products with no variant, how should I handle it in this case then?
Brent Hoover
@zenweasel
Dec 13 2017 21:47
I don’t think you can sell a product with no variants. You must have at least one
rhaix
@rhaix
Dec 13 2017 21:50
Wait, so, let's say I have an red Iphone 8 case, and I only have that product with no other product variations(no other colors, only iphone 8) this hypothetical product would still have 1 product entry in the DB and also a variant entry?
Brent Hoover
@zenweasel
Dec 13 2017 21:51
Yeah. The top-level product is for putting all the product information in but the variant is actually what you sell
rhaix
@rhaix
Dec 13 2017 21:55
Interesting, so many things make sense now, so I would also have to create a variant object to insert in the products database to get the desired behavior. Thanks @zenweasel , I'll let you know if that fixes my issues.
Brent Hoover
@zenweasel
Dec 13 2017 21:56
:+1:
rhaix
@rhaix
Dec 13 2017 21:57
Oh one last question, I wasn't sure if the ownerId matters too much, since I'm handling things serverside with no user tied to these products I hard-coded "admin", is that something I should look into?
Brent Hoover
@zenweasel
Dec 13 2017 22:01
in my work I have just been leaving that off and have not seen any ill effects so far. I don’t know exactly where that is used, if it is.
rhaix
@rhaix
Dec 13 2017 22:04
cool, thanks
Aladin
@redgenie
Dec 13 2017 22:16
Not sure if it’s the right place to ask this question, but does anyone know a good solution for the whole delivery process? As in delivery software that does tracking and warehouse …etc. We are building our own DHL.
childproof
@childproof
Dec 13 2017 22:23
if did it from root and with my normal username outside of the reaction directory and in the running it in the reaction directory. There console didnt respond with anything. I am thinking of just redoing this on another os. What ubuntu os would you recommend?
Brent Hoover
@zenweasel
Dec 13 2017 22:25
I’m using Linux Mint here as a desktop. So that would make it easier to walk you through stuff if you run into problems. For whatever that’s worth
The key thing is to try and do everything w/o root privileges
childproof
@childproof
Dec 13 2017 22:28
From the initial start I have been trying to figure out how to do these permissions. All the articles online make absolutely no sense and most of them tell you to do it different ways and I guess none of them have successfully worked for me. So say I just install a fresh server install. What is my first step to do with privileges and permissions in order to safely install and run reaction?
Brent Hoover
@zenweasel
Dec 13 2017 22:29
I just recently rewrote the installation instructions for Linux. Is that what you followed?
childproof
@childproof
Dec 13 2017 22:34
Yes I been using the linux documentation for install and this is now my 7th attempt of starting over from the beginning. I have done everything. Is there any way you can also add a section on which commands should be done in order to set proper user privileges from a fresh install before the user begins the reaction installation process?
Brent Hoover
@zenweasel
Dec 13 2017 22:35
Yeah, that’s one of the challenges I ran into at least with installing Node. I actually completely hosed my system one time by trying to change the privileges according to their documentation
problem is, is that it differs amongst distros so there is not one single canonical way to get it installed that’s going to work for everybody
Hint: If you are on Ubuntu, do not issue the chown command they have there
childproof
@childproof
Dec 13 2017 22:37
Would I be better of using windows server and doing it through windows? I am just trying to install it so that I can do web design on it.
Brent Hoover
@zenweasel
Dec 13 2017 22:38
imho, once you get it installed you will be happier developing on Linux rather than Windows
I used Ubuntu as my primary web-dev workstation for years and was very happy with it
ymmv obviously
childproof
@childproof
Dec 13 2017 22:44
Why were you more comfortable on ubuntu? It is so complicated and as you said the many distributions cause most of the codes to be unknown if it will mess your os up or work at times because there are so many codes floating around. With windows wouldn't it be much easier through their GUI and stable codes?
Brent Hoover
@zenweasel
Dec 13 2017 22:45
I found it to be a lot faster, and most of the web runs on Linux. When it comes to deployment and things pretty much all documentation, etc. is targeted at Linux.
But if you more comfortable with Windows you should totally do that. Or do OSX and get the best of both worlds
childproof
@childproof
Dec 13 2017 23:03
Did you guys hear how reaction made 8.5 million in funding to upgrade reaction? It is on the blog.
Brent Hoover
@zenweasel
Dec 13 2017 23:05
Yep, I heard
but we spent it all on OSX laptops :cry:
childproof
@childproof
Dec 13 2017 23:07
That is a joke right?
Brent Hoover
@zenweasel
Dec 13 2017 23:07
It is
childproof
@childproof
Dec 13 2017 23:08
I hate mac more than I hate presidential elections.
Brent Hoover
@zenweasel
Dec 13 2017 23:08
Ok
childproof
@childproof
Dec 13 2017 23:11
Why do you use mint instead of ubuntu and if I use mint will codes for ubuntu work on mint ? Is there a lot of support material online for mint?
Brent Hoover
@zenweasel
Dec 13 2017 23:11
Mint is just a slightly slicker version of Ubuntu
that’s why it’s called “Mint”, it’s just a “flavour"
childproof
@childproof
Dec 13 2017 23:12
oh ok so you mean everything will work on it.
Brent Hoover
@zenweasel
Dec 13 2017 23:12
Yeah, it’s just ubuntu under the covers. Just packaged together to make a nicer desktop and some stuff preinstalled
I just installed on my Windows laptop as dual-boot and it was a breeze
childproof
@childproof
Dec 13 2017 23:13
But mint is not good for running a server right?
Brent Hoover
@zenweasel
Dec 13 2017 23:13
No, but it’s just Ubuntu
So everything about the underpinnings would be the same, and mostly the same as any debian distro