by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 09 07:12
    loan-laux commented #6269
  • Jul 08 20:07

    willopez on trunk

    chore: update accounts package … Merge pull request #6269 from o… (compare)

  • Jul 08 20:07
    willopez closed #6269
  • Jul 08 13:30
    loan-laux review_requested #6269
  • Jul 08 13:30
    loan-laux review_requested #6269
  • Jul 08 13:29
    loan-laux opened #6269
  • Jul 08 13:22
    loan-laux synchronize #6268
  • Jul 08 13:22
    loan-laux closed #6268
  • Jul 08 11:45
    loan-laux synchronize #6268
  • Jul 08 11:36
    loan-laux review_requested #6268
  • Jul 08 11:36
    loan-laux review_requested #6268
  • Jul 08 11:36
    loan-laux opened #6268
  • Jul 04 02:03
    almousa1990 commented #6266
  • Jul 03 22:58
    almousa1990 commented #6266
  • Jul 02 17:40

    mikemurray on trunk

    chore: use yalc for package lin… chore: use yalc update to keep … chore: add script to run yalc u… and 6 more (compare)

  • Jul 02 17:40
    mikemurray closed #6266
  • Jul 02 17:40
    mikemurray closed #6248
  • Jul 01 22:57
    mikemurray edited #6266
  • Jul 01 22:47
    mikemurray edited #6266
  • Jul 01 22:46
    mikemurray edited #6266
rochadsouzaiit
@rochadsouzaiit
One more thing, since I have multiple stores, I can't set shopType as "primary", right?
Loan Laux
@loan-laux
@rochadsouzaiit Some things may not work properly if there’s no primary shop, because most mechanisms fall back on this primary shop if no shop is provided, or if they’re not yet wired to accept a shopId as part of their parameters. I’d suggest you have at least one primary shop, which will be there as a bit of a dummy (no actual products listed or anything).
rochadsouzaiit
@rochadsouzaiit
I' ll do it and while creating the first user ("system manager"). However, what "primary" means? I saw that "other" is another possible value
I just did the test to create a second store (store n2) with the same user (the only user I have that is "system manager") and I get two Shops with shopType: "other"
Loan Laux
@loan-laux
Indeed. You can use any value that you want and that you’ll make use of later with your own custom logic. Now for the primary shop, I’d suggest giving it the name of your marketplace or platform. It’s meant to represent the overall project.
rochadsouzaiit
@rochadsouzaiit
image.png
I create the second store using mutation createShop
and both are "other"
I'm asking it since you suggest to keep the "primary"
At the time I have just one store, that store was "primary"
Loan Laux
@loan-laux
The first store created should be primary and any others created afterwards will be other
rochadsouzaiit
@rochadsouzaiit
then I added the second one and both got shopType: "other"
Loan Laux
@loan-laux
In a marketplace configuration, the primary shop is used more as a fallback really. Reaction still sometimes checks for the primary shop ID for mechanisms that haven’t yet been refactored to use the new dynamic shop IDs, or as a fallback if no shop ID is provided.
rochadsouzaiit
@rochadsouzaiit
But should I "force" to have a "primary" or let it be as RC set it (both as "other")?
Just to give you some context, my product has N stores but each store has its own shopping cart
and are seen as one, always
Loan Laux
@loan-laux
I honestly don’t know why you ended up with no primary shop, but the normal behavior is that the first one you create gets the primary status. So yes, I’d recommend creating one, to avoid getting into issues.
rochadsouzaiit
@rochadsouzaiit
Alright! Thank you so much @loan-laux, will do that.
Loan Laux
@loan-laux
I’m also curious as to why you’re inserting users and accounts manually… Is this because you’re not using the IDP and Hydra at all?
rochadsouzaiit
@rochadsouzaiit
you are right
I already have a product that just list point of interests, and now those POI will have the capability of sell products, and so on
And I'm using RC
As I can see, I cant manage multiple stores/ store owners of multiple stores from RC admin, right?
If I could, I would add stores/ store owners through RC admin
and assign an account to shop owners (a more primitive method by now)
Loan Laux
@loan-laux
That’s correct, reaction-admin doesn’t have multi-shop capacities yet (although I’m working on it as we speak)
rochadsouzaiit
@rochadsouzaiit
Eventually, I will have to create a kind of dashboard to manage that (stores, owners, ...)
If so, I will share it
Loan Laux
@loan-laux
So you’re plugging RC directly into your own identity management?
rochadsouzaiit
@rochadsouzaiit
yes, a kind of
Loan Laux
@loan-laux
And this identity management doesn’t support OAuth, I imagine?
rochadsouzaiit
@rochadsouzaiit
basically when a my-user logs in I will check if has a rc-user assigned, otherwise I create a new one
rochadsouzaiit
@rochadsouzaiit
At the moment, no, but will :)
createdforfunn
@createdforfunn
@loan-laux How to override default classes of Reaction Commerce to provide my own custom implementation?
Jason J. Nathan
@jasonnathan
sorry for the silly question - what's the default admin account? (if it's documented somewhere, please share a link)
13 replies
Jason J. Nathan
@jasonnathan
Hi, I've setup reaction-development-platform on a local EC2 instance on AWS. I've modified all the env files to point to a domain I am using.
http://api.mydomain:3000
http://mydomain:4000
etc
For all instances but I'm getting an error creating an account. something about required parameter missing.
Is there something else I should do?
7 replies
Loan Laux
@loan-laux
@rochadsouzaiit I’m sure there are better ways to integrate the two together… Either OAuth or a token-based API. Just my opinion, but I would really discourage you from shipping this to production as-is.
8 replies
@createdforfunn What do you mean by default classes? On the API, on the storefront, on the admin?
createdforfunn
@createdforfunn

@createdforfunn What do you mean by default classes? On the API, on the storefront, on the admin?

on the API or Plugin ... suppose I want to override a class and provide my own implementation .... how to do it ?

Loan Laux
@loan-laux
Generally speaking, you’d create a new class extending the built-in one. class YourClass extends OtherClass
createdforfunn
@createdforfunn

Generally speaking, you’d create a new class extending the built-in one. class YourClass extends OtherClass

ok ... so after that whenever any part of the application requests for “OtherClass” then “YourClass” will be provided instead ... Am I correct ?

Loan Laux
@loan-laux
Correct. On the storefront, there’s a global component context, so you can simply swap any component there with your own implementation and it’ll be replaced throughout the app. On the API, off the top of my head, there’s no real use of classes in a way that you’d want to extend them… But you would indeed need to replace usage if there was a need for it.
createdforfunn
@createdforfunn
@loan-laux thanks
anbeangry
@anbeangry
Is RC now support an api for APM w/o modify core ?
I didn't find out that any document relate to it
Loan Laux
@loan-laux
@anbeangry You can easily run Reaction on PM2/Keymetrics if you want to.
Synsoft Dev
@SynsoftDev
Hello, Is there any graphl query which returns email log (job)
Loan Laux
@loan-laux
@SynsoftDev I think for now it’s fetched with Meteor’s DDP, unfortunately
anbeangry
@anbeangry
@loanlaux thanks, but I'm find solution for integrating New Relic for trace the client side tho
Cristian Camilo Cucunubá
@CristianCucunuba
Hi @loan-laux , have you work with custom plugins that require their own permissions? how would you make sure those permissions are added in the groups of each shop (owner or shop-manager)?. I was thinking to added them recurrently for each shop in the startup function of the plugin but maybe you did it in another way.