These are chat archives for reactioncommerce/reaction

28th
Sep 2016
Aaron Judd
@aaronjudd
Sep 28 2016 01:18
@ennysantana reaction init will create the folder that you cd into.. by default that’s reaction… once you are in that folder, you should then not get that error (which is saying. you are not in a reaction folder, because you created an empty folder I think)
reaction init actually clones the github repo for you..
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 28 2016 04:00
MongoError: not authorized on reaction-db to execute command { insert: "system.indexes", documents: [ { ns: "reaction-db.users", key: { username: 1 }, name: "username_1", unique: 1, sparse: 1 } ], ordered: true }
getting the error in heroku + mlab
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 28 2016 04:09
doesn't matter, was set read-only flag on the db for the user ))
3Maestros
@3Maestros
Sep 28 2016 04:15
@mikemurray I was looking at the file imports/plugins/included/default-theme/client/styles/products/productGrid.less trying to play with the image size in the product list display
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 28 2016 04:16
2016-09-28T04:15:15.393102+00:00 app[web.1]: 04:15:15.391Z  WARN Reaction: Reaction.Email.getMailUrl() - no email provider configured
2016-09-28T04:15:15.431509+00:00 app[web.1]: 04:15:15.431Z ERROR Reaction: Mail not configured
another error
3Maestros
@3Maestros
Sep 28 2016 04:17
I have tried changing the max-width to 12% which seem to work but I want it to reduce it further, changing to any number to below 12 is not having any effect. Any clue?
 // Small product: default
  &.product-small {
    max-width: 25%;

    @media screen and (max-width: @screen-lg-min) {
      max-width: 33%;
      .flex-basis(33%);
    }

    @media screen and (max-width: @screen-sm-max) {
      max-width: 50%;
      .flex-basis(50%);
    }

    @media screen and (max-width: @screen-xs-max) {
      max-width: 100%;

      .product-grid-item-images {
        height: 100px;
      }
    }
  }
Mark Downey
@markdowney
Sep 28 2016 12:11
Hi all. I’m trying to figure out the best way to make routes accessible to all anonymous/guest users ?
AFAIU, the docs recommend adding a new default permission for each route
Brent Hoover
@zenweasel
Sep 28 2016 12:12
that’s correct
Mark Downey
@markdowney
Sep 28 2016 12:13
so if i have a dozen public static pages, you recommend adding a permission for each?
Brent Hoover
@zenweasel
Sep 28 2016 12:13
just for the route
so pretty much yeah
Mark Downey
@markdowney
Sep 28 2016 12:14
also, existing users won’t have the permission for the route yet, right?
Brent Hoover
@zenweasel
Sep 28 2016 12:15
correct, you would need to write a migration script to add that permission
we have plans for a static pages module soon that will take the pain out of doing this sort of stuff
Mark Downey
@markdowney
Sep 28 2016 12:16
got it, thanks!
Brent Hoover
@zenweasel
Sep 28 2016 12:16
:+1:
Mark Downey
@markdowney
Sep 28 2016 12:17
yeah, sounds a bit painful atm :sweat_smile:
Brent Hoover
@zenweasel
Sep 28 2016 12:18
true, it’s a lot of work just to add an “about” page
Mark Downey
@markdowney
Sep 28 2016 12:20
yep, i was expecting an attribute in the registry to define the audience of the route
 "audience" : [
        "guest",
        "anonymous"
    ],
Brent Hoover
@zenweasel
Sep 28 2016 12:21
Yeah, that’s supposed to work, but when I wrote that documentation it wasn’t working so that’s why I spell out setting it explicitly
it may be working now, you might want to give it a try, but when you are creating a store from scratch it’s sort of 6 of one….
Mark Downey
@markdowney
Sep 28 2016 12:23
ok thx, i’ll give it a shot
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 28 2016 12:51
i can't access to admin dashboard, even i set the env variables
REACTION_AUTH:  ***
REACTION_EMAIL: ***
REACTION_USER:  ***
getting User not found flash error
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 28 2016 13:04
did you verify/activate it?
see the link in the logs
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 28 2016 13:09
@EpifaniaCollection how?
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 28 2016 13:10
see the logs generated at the startup of the reaction
something like: <HOST>/#/reset-password/VX1AI5LzpnOHruP4tsdfsfdfsdfYSsdsdsdfsdfsdfsdfsfEx4uv
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 28 2016 13:12
2016-09-28T13:00:35.092243+00:00 app[web.1]: 13:00:35.090Z  INFO Reaction: Load default data from /private/data/
2016-09-28T13:00:35.968322+00:00 app[web.1]: 13:00:35.967Z  INFO Reaction: JobServer started
2016-09-28T13:00:36.137440+00:00 app[web.1]: 13:00:36.137Z  WARN Reaction: Skipped loading settings from reaction.json.
2016-09-28T13:00:40.686115+00:00 app[web.1]: 13:00:40.685Z  INFO Reaction: Starting createDefaultAdminUser
2016-09-28T13:00:40.694110+00:00 app[web.1]: 13:00:40.693Z  INFO Reaction: Not creating default admin user, already exists
2016-09-28T13:00:40.698553+00:00 app[web.1]: 13:00:40.698Z  WARN Reaction: OpenExchangeRates API not configured. Not adding fetchRates job
2016-09-28T13:00:40.702796+00:00 app[web.1]: 13:00:40.702Z  WARN Reaction: OpenExchangeRates API not configured. Not adding flushRates job
2016-09-28T13:00:40.713002+00:00 app[web.1]: 13:00:40.712Z  INFO Reaction: Reaction.init() has run
2016-09-28T13:00:40.713127+00:00 app[web.1]: 13:00:40.713Z  INFO Reaction: Reaction initialization finished.
i hosted on heroku
Brent Hoover
@zenweasel
Sep 28 2016 13:13
you have to reset Reaction after you have set the variables, otherwise it will create a random user and it will not check again
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 28 2016 13:13
Not creating default admin user, already exists -> I guess the link was listed in the 1st run, when the user was created.
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 28 2016 13:14
how to reset?
Brent Hoover
@zenweasel
Sep 28 2016 13:14
reaction reset -n
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 28 2016 13:15
how to do in heroku? :)
Brent Hoover
@zenweasel
Sep 28 2016 13:15
do you have access to the db?
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 28 2016 13:15
yeah, i use mlab
Brent Hoover
@zenweasel
Sep 28 2016 13:16
you can just delete all users and restart
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 28 2016 13:16
in users collection?
Brent Hoover
@zenweasel
Sep 28 2016 13:17
let me double check that real quick
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 28 2016 13:18
/d/t/w/p/w/c/reaction  heroku run reaction reset -n
Running reaction reset -n on ⬢ demo... up, run.1768
bash: reaction: command not found
Brent Hoover
@zenweasel
Sep 28 2016 13:20
Yes, the users collection
or you can try heroku run meteor reset
which would do that same thing as we want to do here with reaction reset
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 28 2016 13:23
the same
bash: meteor: command not found
Brent Hoover
@zenweasel
Sep 28 2016 13:27
then if you can’t run any commands the best way is to remove the user records as I suggested
then restart, it should see there is no default admin and create one from the environment variables
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 28 2016 13:40
did
but Oops! Please validate your email first.
i didn't get any email message
Brent Hoover
@zenweasel
Sep 28 2016 13:40
that default admin does not require you to validate your email
also, you will need to set up your email settings to get email
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 28 2016 13:41

that default admin does not require you to validate your email

if so, why i can't log in?

Brent Hoover
@zenweasel
Sep 28 2016 13:41
I don’t know. I have never seen that before.
but normally we just reaction reset
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 28 2016 13:42

also, you will need to set up your email settings to get email

which service to use?

Brent Hoover
@zenweasel
Sep 28 2016 13:43
that’s up to you. We support most/all of them
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 28 2016 13:43
what service do you use?
hrath2015
@hrath2015
Sep 28 2016 13:45
@hbakhtiyor do one thing go in user collection and set the value to true and u r good to go
blob
Brent Hoover
@zenweasel
Sep 28 2016 13:47
Yes, mailgun, and @hrath2015 is correct
not sure why that’s not set correct but you can just fix it
hrath2015
@hrath2015
Sep 28 2016 13:48
field name is verified
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 28 2016 13:48
tried @hrath2015 suggestion, and works
thanks ))
hrath2015
@hrath2015
Sep 28 2016 13:48
:thumbsup:
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 28 2016 13:49
what anothers use for email delivery?
hrath2015
@hrath2015
Sep 28 2016 13:49
the reason it is asking u to do validation is because it is doing production deployment
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 28 2016 13:49
I tested gmail
but not sure how it will do on big amounts of emails
hrath2015
@hrath2015
Sep 28 2016 13:50
are u using docker and prod yml
Brent Hoover
@zenweasel
Sep 28 2016 13:50
mailgun or sendgrid are solid choices, we use maligun internally
I think both have free tiers that give you a ton of emails before you have to pay
hrath2015
@hrath2015
Sep 28 2016 13:50
sorry messages were for @hbakhtiyor
Brent Hoover
@zenweasel
Sep 28 2016 13:51
@hrath2015 as were mine
hrath2015
@hrath2015
Sep 28 2016 13:51
:smile:
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 28 2016 13:52
@hrath2015 no, heroku+mlab+meteor-buildpack-horse
does it available any themes, rather than default?
Brent Hoover
@zenweasel
Sep 28 2016 13:54
there is the theme as part of the tutorial, but generally no. Most people create their own themes
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 28 2016 13:56

Most people create their own themes

not open source?

Brent Hoover
@zenweasel
Sep 28 2016 13:57
they are usually created for specific stores, so no. I hope that we will more themes at some point
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 28 2016 13:58
https://en.wikipedia.org/wiki/Tajikistani_somoni
doesn't available the currency
why we can't add custom currency via admin dashboard?
ISO 4217 code: TJS
((
Brent Hoover
@zenweasel
Sep 28 2016 13:59
we’ve never had that feature request before. But you can add one by changing the Shops.json
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 28 2016 13:59
I guess it would be as simple as updating the Shops.json and propose a PullRequest
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 28 2016 14:00
would be nice to do via GUI
Brent Hoover
@zenweasel
Sep 28 2016 14:00
it’s pretty rare that people want to add a new currency
"currencies" [
  "PHP": {
    "format": "%s %v",
    "symbol": "PHP"
  }
]
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 28 2016 14:07
screenshot-demo.herokuapp.com 2016-09-28 19-03-56.png
i unchecked all languages, except Russian
but it also included Arabic too in the dropbox
i don't need the dropbox, how to remove it?
also i set base language to russian, but still all elements text in english
like "Add to cart", ...
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 28 2016 14:09
Translation is not ready. Waiting for contributors.
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 28 2016 14:10
oops ((
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 28 2016 14:10
should you want to contribute, the file is: ru.json
Brent Hoover
@zenweasel
Sep 28 2016 14:11
Aaron is working on submitting all languages to a translation service (not by robots, by humans)
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 28 2016 14:11

i unchecked all languages, except Russian
but it also included Arabic too in the dropbox

is it bug?

Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 28 2016 14:14
can you check in the DB, collection Shops, if the "ar" enable is True or False?
Brent Hoover
@zenweasel
Sep 28 2016 14:21
just tested it here and not seeing that issue
unchecked all but one language, only see that one language
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 28 2016 14:23
@EpifaniaCollection false
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 28 2016 14:24
@zenweasel I have opened 3 issues. Do I have to notify someone, or it's enough to have them listed there? Most are UI/CSS related I guess.
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 28 2016 14:25
after refreshing browser display correctly
Brent Hoover
@zenweasel
Sep 28 2016 14:29
@EpifaniaCollection Yes, we track issues quite closely
we have a UI/UX review schedule for release 19 or 20 I believe
where we will try to clear up all UX-related issues
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 28 2016 14:31
not pushing, but just as an estimate: ~3/4 months from now, right?
Brent Hoover
@zenweasel
Sep 28 2016 14:31
before the end of the year almost certainly
barring unforeseen circumstances
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 28 2016 14:32
#1444 is really an issue
Brent Hoover
@zenweasel
Sep 28 2016 14:32
I’ve noticed that behavior before and never opened an issue (and I have opened 100’s of issues) because I didn’t think that was a big deal
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 28 2016 14:33
a suggestion of quick fix would help
Brent Hoover
@zenweasel
Sep 28 2016 14:33
it’s really an issue for you?
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 28 2016 14:33
yes, because I have ~4 images per product
sorry, 4 per option
Brent Hoover
@zenweasel
Sep 28 2016 14:33
uh-huh
I’m not saying you’re wrong, just trying to understand
I thought it looked “glitchy” but basically worked
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 28 2016 14:34
which framework does the frontend use?
Brent Hoover
@zenweasel
Sep 28 2016 14:36
@hbakhtiyor not sure what you mean by “framework"
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 28 2016 14:37
@zenweasel e.g. https://shop.maryhit.com/epifania/product/vp200/e2vuRSJfpKrPCreWG . just move slightly the mouse over one of the options, and they will all cycle. A quick work around would be to replace mouse hoover with click, as well as list down all 4 images, not only the other 3.
Brent Hoover
@zenweasel
Sep 28 2016 14:38
yeah, that’s the behavior I saw
I guess I saw it as annoying but not critical
more because the images jump around when they are different sizes
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 28 2016 14:39
yes... I need to see where to control that as well..
Brent Hoover
@zenweasel
Sep 28 2016 14:40
probably the display area(s) need to be a set size and not change
In terms of getting a quick fix I would probably try to ping @mikemurray and see if he can suggest a workaround. I’m on paternity leave and won’t have time to look at it too much
seems like it would be pretty simple problem to fix
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 28 2016 14:42
congratulations :)
Brent Hoover
@zenweasel
Sep 28 2016 14:43
thanks :+1:
I think if you dug in and tried to fix it you would probably get help when you get stuck
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 28 2016 14:45
yes, some .less files , and I found some hoover actions.
Brent Hoover
@zenweasel
Sep 28 2016 14:46
those would be mine
actually just a joke
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 28 2016 14:48
single o :)
Brent Hoover
@zenweasel
Sep 28 2016 14:49
yeah, it would be easier for Mike to answer some specific question than to look at the issue. He is in the middle of a pretty complex rewrite of the PDP he is trying to get out
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 28 2016 14:49
@zenweasel like angular, ...
Brent Hoover
@zenweasel
Sep 28 2016 14:50
which actually might even fix your issue :smile:
@hbakhtiyor We currently are a mix of Blaze and React
@EpifaniaCollection check out reactioncommerce/reaction#1356 and see if the issue is still happening there. That’s the PDP completely rewritten in React (amongst other things)
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 28 2016 15:04
Brent Hoover
@zenweasel
Sep 28 2016 15:05
not sure what you mean
that link just points to a directory
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 28 2016 15:05
e.g. productDetail.less ?
or productGrid.less
which controls the view in question
Brent Hoover
@zenweasel
Sep 28 2016 15:05
without really digging in I couldn’t tell you
but you can just view your data with that branch
actually, it involves a lot of schema changes so you’d want to use a backup
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 28 2016 15:07
I noticed there are hundreds of files changed by that branch.
probably it would be better to wait few more days, till it's merged.
Brent Hoover
@zenweasel
Sep 28 2016 15:07
Yes, the PDP page is being rewriten. so I think Mike would not be likely to fix something in code that’s going to go away
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 28 2016 20:06
Hello
I am trying to make spiderable work
I have installed phantom and the ongoworks:spiderable
like here: reactioncommerce/reaction#1063
(/opt/reaction/install-phantom.sh ,etc)
I restarted the docker container.
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 28 2016 20:08
Is there anything more ?
Jeremy Shimko
@jshimko
Sep 28 2016 20:09
it appears the Node version doesn’t end up in the PATH where it needs to be for the Meteor package. That commit mentioned there installs it in the OS instead. I haven’t personally tested it, but @spencern says it works.
oh… apparently this has already been merged to development
reactioncommerce/reaction#1419
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 28 2016 20:11
myself I had to install also: apt-get install libfontconfig
(otherwise: /opt/nodejs/lib/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory )
you may want to add it in the script
Jeremy Shimko
@jshimko
Sep 28 2016 20:12
are you on debian?
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 28 2016 20:12
yes, on the official docker images
sorry, ubuntu
Jeremy Shimko
@jshimko
Sep 28 2016 20:12
They’re usually pretty close, but that may be why
I’m in the middle of something right now, but I’ll take a look tonight or tomorrow.
carlosduall
@carlosduall
Sep 28 2016 20:18
Hi we are develop teamand we want to collaborate with de the process of development, where we can start?
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 28 2016 20:40
@carlosduall you may want to read the home page as well as get in touch with @aaronjudd
carlosduall
@carlosduall
Sep 28 2016 20:40
Thanks
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 28 2016 21:24
@jshimko Indeed you don't need apt-get install libfontconfig as in the new script it's being installed I guess as a dependency on the other packages you've put there.
So now, phantom is installed; I added curl so I could do: meteor add ongoworks:spiderable
I don't see the difference in the source. Actually I don't see the difference even in @spencern 's example: https://staging.getoutfitted.com/product/blue-snowbelle-outfit?_escaped_fragment_=
I expected to see something similar to @aaronjudd 's printscreen here: reactioncommerce/reaction#1063