These are chat archives for reactioncommerce/reaction

23rd
Sep 2016
felixlvh
@felixlvh
Sep 23 2016 07:03
hi, does any one interested in a project building an ecommerce site from an API
hrath2015
@hrath2015
Sep 23 2016 09:12
@zenweasel Will it be possible to share the link/location for LargeSearchProducts.json file. thanks
hrath2015
@hrath2015
Sep 23 2016 09:26
Never mind found it. Thanks
Brent Hoover
@zenweasel
Sep 23 2016 09:42
that eventually got removed, it was just for testing search
where did you find it?
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 23 2016 09:44
@zenweasel : reg. localization -> is it only me or the localization is not saved usually? I select non-engl lang and no change..
thought of reusing it.
@EpifaniaCollection u mean changing language from i18n chooser from header.? Try ru and open product page there u can see change. Also if u select arabic then layout will become RTL.
hrath2015
@hrath2015
Sep 23 2016 09:52
@zenweasel read me of the search pluging needs to be updated if file is removed. Thanks
Brent Hoover
@zenweasel
Sep 23 2016 10:29
@hrath2015 Yes, you are correct
@EpifaniaCollection There was a bug where language selection was not being saved after refresh but it should be fixed in the current release
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 23 2016 10:33
I have yday's docker image, and does not stick..
Brent Hoover
@zenweasel
Sep 23 2016 10:34
which version of the code are you using?
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 23 2016 10:35
I know only the docker tag... Is there a file which i can query for build number?
if not, it would be very useful to have even an /version route to provide all details. It would help long term debugging of any site with reaction.
I can see the language remains highlighted in the i18n menu, but no translation as such. I tried ru
Brent Hoover
@zenweasel
Sep 23 2016 10:37
git rev-parse --verify HEAD
or in package.json
  "description": "Reaction is a modern reactive, real-time event driven ecommerce platform.",
  "version": "0.16.1",
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 23 2016 10:39
I cannot access it right now, I will and update.
Brent Hoover
@zenweasel
Sep 23 2016 10:40
7691cfc656c7e356ac5f5eddfcb7eacf49a92238 is the correct commit hash
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 23 2016 10:41
I would req. the docker build logs to make the mapping
I will look into it
hrath2015
@hrath2015
Sep 23 2016 10:42
@EpifaniaCollection Please check in Translations collection if shopId is set or not. I had this issue due to timing of loading of data. If not set then this is the reason for nothing changing when u change language on ui
Brent Hoover
@zenweasel
Sep 23 2016 10:49
I will double-check that it’s fixed here, but first: dinner
Abd ar-Rahman Hamidi
@hbakhtiyor
Sep 23 2016 12:13
@jshimko any eta of releasing mobile apps?
Jeremy Shimko
@jshimko
Sep 23 2016 13:59
First rule of Software Club...
;) no, there’s not currently an ETA. It’s in line behind a lot of other higher priorities right now.
However, if someone in the community contributes a working solution, it could happen any time. It’s just not what internal developers are working on at this point.
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 23 2016 16:36
Hi @jshimko
I am trying to follow your suggestions for submitting the ro-translation
but apparently development is behind master. is this expected?
therefore the ro.json translation (based on en.json in the master) has tokens which the development does not have yet.
hrath2015
@hrath2015
Sep 23 2016 17:00
@EpifaniaCollection your translations collection is empty. Reason behind no change on UI when using different language.
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 23 2016 17:02
@hrath2015 - thanks for suggestion. I am looking now, and I see it's populated with all languages
PS: I am using the latest docker image.
@hrath2015 - reg. shopId -> I do not see such a field in Translations collection
blob
_id i18n ns language translation entryText
these are the only fields. Am I missing something?
hrath2015
@hrath2015
Sep 23 2016 17:12
@EpifaniaCollection see below snap shot from MongoDB.
blob
this is how collection should have been populated during start up..
untill unless I am missing something completely
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 23 2016 17:16
my db is 2 month old
aparently it was added lately
I do not have shopId
I am wondering what is the best approach to upgrade the DB
hrath2015
@hrath2015
Sep 23 2016 17:26
Can u please check your MongoDB if the collection is really empty. db.getCollection('Translations').find({})
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 23 2016 17:29
Translations Collection Stats:
Documents 23
Total doc size 210.64 KB
Average doc size 9.16 KB
Pre-allocated size 268 KB
is not empty, but the entries do not have the shopId field
I installed the latest version, and I see shopId is there...
I will drop and reimport translations.
I think I will have to do the same with other tables as well. (unless someone know a migration tool for mongodb)
hrath2015
@hrath2015
Sep 23 2016 17:33
is language change working now
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 23 2016 17:33
I am yet to do the drop&reimport of translations.json.
as well as updating (probably manually) the shopId in the json before importing it
I installed in parallel a new version which is totally empty
hrath2015
@hrath2015
Sep 23 2016 17:34
this all u are doing in dev or test server right?
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 23 2016 17:34
yes
hrath2015
@hrath2015
Sep 23 2016 17:35
then try this db.getCollection('Translations').update({},{$unset: {shopId:1}},false,true) and update
db.getCollection('Translations').update({},{$set: {shopId:"J8Bhq3uTtdgwZx3rz"}},false,true)
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 23 2016 17:36
Thanks. So I will reimport translate.json and afterwards run the above, right?
hrath2015
@hrath2015
Sep 23 2016 17:37
u can do on existing set up also
because I suspect shop id is the only issue. Anyway next time when u build again fresh in test/dev it should not recur.
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 23 2016 17:39
what should be the steps to upgrade to a new version of the reactioncommerce ?
in general?
(from data migration p.o.v.)
hrath2015
@hrath2015
Sep 23 2016 17:43
RC core team is better equipped to answer this question. How about starting a thread on RC forums on same to get inputs from other contributors/production users as well.
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 23 2016 19:57
@hrath2015 the commands did not create the shopId field.
hrath2015
@hrath2015
Sep 23 2016 20:09
these are 2 commands first to remove and second for set in all docs. Used to work for me. I will try it again in a while and let u know. If u are in dev cycle then reset and build again for a clean start.
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 23 2016 20:13
I would like to use the solution to fix the production db
I don't have the shopId, and I am looking for the command to generate it in all the entries
and afterwards use your command to update the value
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 23 2016 20:19
I think I am doing something wrong
I am trying to use the mongo cli
(for the 1st time)
Jeremy Shimko
@jshimko
Sep 23 2016 20:20
what are you trying to do?
hrath2015
@hrath2015
Sep 23 2016 20:20
Ideally this should not happen.
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 23 2016 20:23
@hrath2015 your commands worked great.
@jshimko : can you please help explain the procedure to contribute the translations?
I am trying to follow your suggestions for submitting the ro-translation
but apparently development is behind master. is this expected?
therefore the ro.json translation (based on en.json in the master) has tokens which the development does not have yet.
@hrath2015 : Horray! language switch worked!
hrath2015
@hrath2015
Sep 23 2016 20:28
great. But I would still suggest u do a reset and see if the issue is happening again then please report for the team to look at.
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 23 2016 20:29
I created brand new install (empty) and the shopId is created, but by default is null !
I guess It should have been update right from the start, correct?
hrath2015
@hrath2015
Sep 23 2016 20:30
that is indication of issue. could be due to environment etc.. try using reaction-cli and see if same thing
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 23 2016 20:31
I am using docker containers
hrath2015
@hrath2015
Sep 23 2016 20:32
then please create issue with steps for @jshimko to look at.
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 23 2016 20:32
in this demo env I create everything from zero