These are chat archives for reactioncommerce/reaction

15th
Feb 2019
Bün Çolak
@BunColak
Feb 15 06:13
It says in the documentation that we can pass renderas a prop to components to overwrite the existing one. But this does not work. It seems that ProductDetail.js has no checks for the render prop?
@loan-laux do you have any recommendation about it?
Karbal
@karbal
Feb 15 07:23
Hello Mr @loan-laux
What is missing now in the graphql solution is subscribe and authentication (login, creation account)
Loan Laux
@loan-laux
Feb 15 09:13
@antecrypto Are you running your make command within Windows' Linux subsystem?
@cortesa Did you declare your mutations inside Reaction.registerPackage?
@BunColak I would create a new component that extends ProductDetail, or make a PR to the starter-kit to fix this.
rlamostre0
@rlamostre0
Feb 15 09:16
good day, how do we install reaction commerce on kubernetes?
Loan Laux
@loan-laux
Feb 15 09:18
@karbal Authentication will never be done through GraphQL as the project currently stands, because it's handled by OAuth. As far as subscriptions, this is coming. There's a PR on that which has been merged recently and adds a ping/pong sub through GraphQL. Now that this is in place as a test, I would guess reactivity is coming to some areas of Reaction's GQL API.
@rlamostre0 No official guide on this, sorry. :(
Or at least I'm not aware of any. Maybe someone in the team can comment?
rlamostre0
@rlamostre0
Feb 15 09:24
@loan-laux I can't run docker build on kubernetes, I get stuck on mongodb line
Loan Laux
@loan-laux
Feb 15 11:16
Can't help with that as I don't have enough experience on Kubernetes. Sorry @rlamostre0.
However, I would strongly advise to run a production build on Kubernetes. As for MongoDB, you could probably try a PaaS solution like MongoDB Atlas?
Bün Çolak
@BunColak
Feb 15 11:24
@loan-laux hmm. I also want to modify core plugins on reaction like accounts. How should I move on?
Is there a guide for this?
ajay yadav
@ajay7868
Feb 15 12:22
any help me out how to deploy on aws '
i am done with local setup now i want to check on aws
ajay yadav
@ajay7868
Feb 15 12:37
?
Andrés Cortés
@cortesa
Feb 15 13:08

@loan-laux

@cortesa Did you declare your mutations inside Reaction.registerPackage?
I think so, this is my register.jsfile

image.png
and this the index where you can find in the path showed above
image.png
this index points to a file where I define the method
Andrés Cortés
@cortesa
Feb 15 13:14
oh!!! may be is he way I'm calling the mutation, any help on how to call a mutation inside a custom plugin?
Andrés Cortés
@cortesa
Feb 15 13:33
I read is something like context.mutations.MyMutation but context is undefined, how I can access this GraphQL-context?
oh!! thanks @loan-laux for a the answer
Janus Reith
@janus-reith
Feb 15 13:39
@cortesa Make sure context is passed as parameter for your function
You can could take a look at the other core plugins to see how they do it.
Usually those calls are split into a function which the team refers to as "resolver" which then calls the main query or mutation that is passed in context.
Loan Laux
@loan-laux
Feb 15 13:55
Exactly @cortesa, @janus-reith was quicker than me. You can see an example of context being passed into a resolver function here: https://docs.reactioncommerce.com/docs/graphql-create-mutation#step-7-create-the-graphql-mutation-resolver-file
@ajay7868 You should be able to deploy a Reaction architecture with ECS fairly easily. Works the same as any other Dockerized app you'd deploy on ECS. I don't think there's a tutorial for that specifically on Reaction, but I've followed the ECS docs whenever I had to do it and it worked great.
@BunColak Technically, you can override any core plugin. Now, what would you like to override? Something on the admin panel? In the plugin's server code?
Bün Çolak
@BunColak
Feb 15 14:07
@loan-laux Server code, but I do not want to change the code directly as I would like to keep it updated to the releases. For example adding a new field to users like names or birthdays.
Loan Laux
@loan-laux
Feb 15 14:14
Once again thanks @janus-reith, I would've sent you the same page @BunColak
Bün Çolak
@BunColak
Feb 15 14:14
Thx a lot, what about the UI? How would I change it accordingly like signup page. I see that it is on core module.
Loan Laux
@loan-laux
Feb 15 15:22

That would be an old-school override on the Meteor front-end. There's a whole API to replace React components there, more info here: https://docs.reactioncommerce.com/docs/components-api.

However, keep in mind that the new Operator UI will land soon (currently available for demo/dev at /operator), so you'll most likely have to re-make your front-end overrides made to admin panels. I don't think the user login flow will get replaced anytime soon so you should be fine on this side.

Denis Kealy
@DenisKealy
Feb 15 15:48

Hi there,

I am trying to understand theming in relation to the reaction-next-starterkit and the Reaction Design System components. The example given in src/custom/componentTheme.js does not seem to function as described in the preceding comments. Pasted below from componentTheme.js:

export default {
  // This is an example. Uncomment this line to change the color of all buttons with the "important" action type.
  // Go to /cart with an empty cart to see this change on the "Continue shopping" button
  // rui_buttonBackgroundColor_important: "#20427B" 
};

Uncommenting the final line (rui_buttonBackgroundColor_important: "...") does not change any of the Button components with actionType="important".

I am wondering if this is due to this example being outdated or if it is a problem relating to my installation. Should uncommenting this line affect the ("Continue shopping") button in the empty cart page, as stated?

The MUI theming is working as stated using the reactionTheme.js file. But I cannot seem to get theming to work for Reaction Design System components. I have also tried, to no avail, using the rui_components object as stated here: Reaction Design System Docs: Theming Components
I would primarily like to know whether the example given in componentTheme.js should work on a valid installation? But any guidance is appreciated. Using v2.0.0-rc.9 of reaction-platform and all sub-projects.
antecrypto
@antecrypto
Feb 15 16:08
@loan-laux I am running make command within Windows Linux subsystem
Andrés Cortés
@cortesa
Feb 15 17:15
@janus-reith, @loan-laux, cool I'll try it, thanks a lot guys
Andrés Cortés
@cortesa
Feb 15 19:46
@loan-laux , @janus-reith , I am try to call mutation from checkout client page the same way example payment does but need to call mutation from context object, I follow this way:
image.png
to then make the call context.mutations.myMethod()
but when I build it the console said:
image.png