These are chat archives for reactioncommerce/reaction

28th
Feb 2018
Brent Hoover
@zenweasel
Feb 28 2018 05:10
Hey everybody, release 1.8.2 is out and it features React 16 (amongst other thing) https://github.com/reactioncommerce/reaction/releases/tag/v1.8.2
Loan Laux
@loanlaux
Feb 28 2018 06:57
Awesome! Is it React 16.3 with the new Context API?
Brent Hoover
@zenweasel
Feb 28 2018 06:58
16.2
Loan Laux
@loanlaux
Feb 28 2018 06:59
Oops, seems like 16.3 hasn't been rolled out of alpha/beta yet
I'm super excited about this stable Context API
For things like search etc, which require to make "isolated" compents communicate with each other
Amalan Jenicious
@amalan-shenll
Feb 28 2018 11:53
hi
how can i get url of uploaded image to Media.insert
thank you
Michael Jenny
@prinzdezibel
Feb 28 2018 11:58
@amalan-shenll CFS resources are exposed through a URL similar to that:
http://localhost:4000/assets/files/Media/xGxd4dteZ2TgKCm7Z/yellow.jpeg?token=eyJhdXRoVG9rZW4iOiJHT3ZLVU95T0JsQndib3hwdXJkeGNKUXVFaVYybU9JMEZjelgyOHdrUjJwIn0%3D&store=large
Amalan Jenicious
@amalan-shenll
Feb 28 2018 12:06
@prinzdezibel
const fileObj = new FS.File(file);
fileObj.metadata = {
type: "banners",
ownerId: userId,
shopId
};
Media.insert(fileObj,function(err,res){
if(err){
Alerts.toast("Image Selection Failed Retry Again.", "error");
} else {
     here i want uploaded url is there any predefined method 


    Alerts.toast("Image Selection Success.", "success");
  }
});
Michael Jenny
@prinzdezibel
Feb 28 2018 12:09
I think the media document has a url method
Amalan Jenicious
@amalan-shenll
Feb 28 2018 12:13
i tried but its undifined
const media = Media.find({_id:id});
console.log(media.url())//url is undifined
i am getting like this
Brent Hoover
@zenweasel
Feb 28 2018 12:17
I think that method wants an argument specifying which size
Aladin
@redgenie
Feb 28 2018 12:26
Is there a marketplace for plugins, themes, resources for Reaction Commerce?
Brent Hoover
@zenweasel
Feb 28 2018 12:28
No, just a list of a few plugs in in the docs
Aladin
@redgenie
Feb 28 2018 12:30
Ok, nice
I think that Reaction should start focusing on that part
Like Laravel, Wordpress and other successful projects, they had some kind of community plugins/themes/extensions around
Aladin
@redgenie
Feb 28 2018 13:05
Did anyone try Reaction with Zeit now?
Aladin
@redgenie
Feb 28 2018 15:06
Another question. How is Reaction Commerce horizontally scaled in, say, Kubernetes? Files need to be hosted somewhere shared if we are going to have many containers. Could Reaction Commerce store files in S3?
BasantHasaan
@BasantHasaan
Feb 28 2018 16:03
can I customize search in reaction to use regex instead of search-mongo ?
Michael Jenny
@prinzdezibel
Feb 28 2018 16:57
@redgenie We're in the process of getting rid of CollectionFS and the new solution should also be able to work with S3.
but we're not quite there.
nomiAA
@nomiAA
Feb 28 2018 17:17
Who can help me please, I downloaded the project and every time I make a change in the code it takes him 10 minutes to rebuild the project
it stuck on "Downloading missing packages"
fabien huet
@fabien-h
Feb 28 2018 17:34
Hi
the images are manager with collection fs
is it possible to manage then with something else ?
to have an s3 adapter or something ?
(I mean, still grid fs, but to move the images from the database to something more appropriate to manage file)
fabien huet
@fabien-h
Feb 28 2018 17:40
(sorry, rephrase again ; still collectionFS, but with s3 instead of gridFS)
Aladin
@redgenie
Feb 28 2018 17:43
@fabien-h the team just replied to me earlier saying: "We're in the process of getting rid of CollectionFS and the new solution should also be able to work with S3."
fabien huet
@fabien-h
Feb 28 2018 17:43
do they have a timeframe for that ?
Aladin
@redgenie
Feb 28 2018 17:44
They didn’t specify any. @prinzdezibel just added "but we're not quite there.” to the above statement
fabien huet
@fabien-h
Feb 28 2018 17:45
Is it documented (the fact that they are working on it) ? And do you think I may do something ?
Aladin
@redgenie
Feb 28 2018 17:46
I’m new to reaction, I don’t really know what are their plans. Maybe @prinzdezibel can help
Brent Hoover
@zenweasel
Feb 28 2018 21:50
Here’s the PR for replacing CFS: reactioncommerce/reaction#3782
William Moss
@willmoss1000
Feb 28 2018 22:11
Hi, when I add the following dependencies to my plugin I get an error due to multiple instances of react running. I've tried adding externals but not luck. The only way I can get it to work is to install via npm then remove dependencies from the package.json in my plugin. Is there a proper way to fix this? "peerDependencies": { "rc-rate": "^2.4.0", "react-simple-popover": "^0.2.4", "wnumb": "^1.1.0" },
*also added as dependencies
William Moss
@willmoss1000
Feb 28 2018 22:21
  • please ignore - apologies
Jacob Tadesse
@zemoer
Feb 28 2018 23:57
hi there. I’m going through the plugin tutorial, and after step 3 I should have a beesknees/client/index.js that only consists of two import statements: one that imports ./templates and another that imports ./defaults. However, just doing this leads to a localhost:3000 page with a missing navbar in chrome, and even an empty page in safari and chrome. When I add an import statement for ./static in that index.js, the page loads properly all of a sudden, even without having an actual ‘static’ folder.