These are chat archives for allegro/ralph

5th
May 2015
Linux-Dream
@Linux-Dream
May 05 2015 02:48
yeah, you know, china has a great all to prevent from most connections from other countrys, so the chat on these IM tools wouldn't work well.
what i want most is how to set up the develop environment in mac X os 10.10
"great all" = "greate firewall"
"greate" is a wrong spell, the right spell is "great".
if i have the develop environment, i could read the source code and debug the code,then i will have a deep understanding of the whole project.
Linux-Dream
@Linux-Dream
May 05 2015 02:54
after this, i can give some advice , even make source contribution to this project
Linux-Dream
@Linux-Dream
May 05 2015 03:27
finally,i solove the Permission problem in mac os X 10.10 by use virtualenvwrapper, and clone the source into my pycharm project directory, now i could use pycharm to run and debug the source code.
Linux-Dream
@Linux-Dream
May 05 2015 08:13
@vi4m there are some logic problems in import asset by cvs/xls format file?
in source file: ralph_assets/src/ralph_assets/views/data_import.py
Linux-Dream
@Linux-Dream
May 05 2015 08:19
in line 357, the code to check if the assets in database
in line 371, asset.save() to save to database..
so, the problem is check before save, i can't import asset to the database..
am i right ?
✪ vi4m Marcin Kliks
@vi4m
May 05 2015 08:34
@Linux-Dream can you paste screenshot?
or stack trace?
Linux-Dream
@Linux-Dream
May 05 2015 08:38
blob
Linux-Dream
@Linux-Dream
May 05 2015 08:45
when i import asset by cvs file, it gives me this error, Exception(u"Unable to match asset nor'barcode' None nor sn u'1XTR726'",)
but i can't understand what does this mean?
(u'in progress', u'0', u'1XTR726', u'wangjing', u'RACK_SERVER_DELL', u'device') Exception(u"Unable to match asset nor'barcode' None nor sn u'1XTR726'",)
Arkadiusz Adamski
@ar4s
May 05 2015 08:52
@Linux-Dream you don't have device with this serial number
Linux-Dream
@Linux-Dream
May 05 2015 08:55
i want to import this device, so i can't understand why do i need have the device
Type Status Model Warehouse Price SN
device in progress RACK_SERVER_DELL wangjing 0 1XTR726
this is my cvs file..
blob
Linux-Dream
@Linux-Dream
May 05 2015 09:05
is some one to provide some help? thanks a lot.
Linux-Dream
@Linux-Dream
May 05 2015 09:20
do i need to create the device in "Discovery"firstly?
damian1976
@damian1976
May 05 2015 09:26
AFAIK device is matched with asset by sn so I would recommend (maybe just for test) to create a device with the same sn as the asset you want to add. Then these 2 entities will be matched
✪ vi4m Marcin Kliks
@vi4m
May 05 2015 09:29
@Linux-Dream: or you can add line to create it for yourself
Device.create()...
today we discusced nice simplipifaction of this process, because we have early version of Ralph-NG
which has Discovered Device & Asset integrated in one model
Ralph-NG is next version of Ralph (beta) which have assets&core integrated in one model. this way you only bother with Asset model, which has Components(Processors, Disks).
currently, Asset requires creating Device which is connected using ForeignKey ralphdevice
Linux-Dream
@Linux-Dream
May 05 2015 09:42
OK, it's a little complex to a new user.
✪ vi4m Marcin Kliks
@vi4m
May 05 2015 09:43
how many assets do you have currently?
to import?
Linux-Dream
@Linux-Dream
May 05 2015 09:43
more or less 400
when dose the Ralph-NG publish?
this version waste a lot of time to know the correlation between each model
damian1976
@damian1976
May 05 2015 09:48
everything will be simplified - I'm also a ralph user and - like you - waiting for all those improvements. I went exactly through same problems you have now.
Linux-Dream
@Linux-Dream
May 05 2015 10:08
@damian1976 ok,so please tell me a predict time ?
when the next version will be published?
damian1976
@damian1976
May 05 2015 10:15
as I wrote before , i'm only a ralph user , not developer/ We, both , have to wait. Hopefully not long:)
flashput
@flashput
May 05 2015 10:36
how to make data from scan plugin default selected ?
flashput
@flashput
May 05 2015 10:42
I get new data from scan plugin , but old data like ’None’, ‘Unknown’ was selected and hide as default, I have to click every data changed
Could my life comes more easier?
✪ vi4m Marcin Kliks
@vi4m
May 05 2015 11:09
we're just discussing it :)
we have good news :)
@flashput just take a look at automerger
it allows you to autoaccept changes
@andrzej-jankowski is the author of this script
so data are automatically written into the db without user acceptance.
flashput
@flashput
May 05 2015 11:13
how automerger executed?
✪ vi4m Marcin Kliks
@vi4m
May 05 2015 18:35
@Linux-Dream next week we plan to release initial version we're working on currently
✪ vi4m Marcin Kliks
@vi4m
May 05 2015 18:50
@flashput - @andrzej-jankowski wrote this "postprocessing" filter https://github.com/allegro/ralph/blob/develop/src/ralph/scan/automerger.py
from what i see, if 'scan_automerger' in settings.RQ_QUEUES: you have to have defined this queue name in settings to work out
then when you do some scan from commandline, there will be no extra gui step, just directly write to the data base