These are chat archives for allegro/ralph

19th
Jan 2017
swb
@spencewb16_twitter
Jan 19 2017 16:23
are data_center assets only able to take up 1u in visualizer? i see there is a height field in the visualizer, but seems to be missing from the asset "location info" itself.
✪ vi4m Marcin Kliks
@vi4m
Jan 19 2017 19:23
Zrzut ekranu 2017-01-19 o 20.23.34.png
height = 2U
Zrzut ekranu 2017-01-19 o 20.25.05.png
it's on model
Zrzut ekranu 2017-01-19 o 20.25.34.png
swb
@spencewb16_twitter
Jan 19 2017 19:35
of course!
swb
@spencewb16_twitter
Jan 19 2017 20:55
one more question: is "visualization" for data_center assets new? i have my main ralph machine - it is missing. i have a qa machine that i recently deployed with ralph - it has this field, located in "location_info." Only difference i see is in data_center admin.py file, and i replaced old admin.py with one from "new" qa version of ralph i recently deployed. however, it still does not show up on my original version of ralph... what else do i need to do to get that field?
✪ vi4m Marcin Kliks
@vi4m
Jan 19 2017 20:57
Zrzut ekranu 2017-01-19 o 21.56.43.png
previously, it was under main menu ,next to the Back Office main menu
we've put it under Data Center menu some time ago, but the visualization feature is from the beginning
you can check, by entering http://[your_ralph_url]/dc_view#/ in the browser
or are you asking about this visualization fields?
i have to check when we introduced these fields. What is the version of ralph on your production?
swb
@spencewb16_twitter
Jan 19 2017 21:30
yes, referring to visualization field, sorry
how do i check my version? I'm fairly certain it was ralph 3 in both cases
✪ vi4m Marcin Kliks
@vi4m
Jan 19 2017 21:33
installed from deb ?
dpkg -l "ralph-*"
swb
@spencewb16_twitter
Jan 19 2017 21:34
ralph-core 3.0.0-snapshot-20161207-7397 amd64 ........ production
ralph-core 3.0.0-snapshot-20161230-7486 amd64 ............qa
✪ vi4m Marcin Kliks
@vi4m
Jan 19 2017 21:37
well, i see that this 2 fields are there from the beginning ...
Zrzut ekranu 2017-01-19 o 22.36.48.png
can you make a screenshot ?
of the page where this fields is missing?
swb
@spencewb16_twitter
Jan 19 2017 21:39
Screen Shot 2017-01-19 at 4.38.33 PM.png
what i've circled in red is missing from data_center assets
height I'm all set with, it's the visualization field is missing and i'm sad
✪ vi4m Marcin Kliks
@vi4m
Jan 19 2017 21:41
i see
this is just a link
swb
@spencewb16_twitter
Jan 19 2017 21:42
yeahh, i wants it
✪ vi4m Marcin Kliks
@vi4m
Jan 19 2017 21:42
and you don't want to upgrade, right ? ;-)
swb
@spencewb16_twitter
Jan 19 2017 21:42
i meannn
i'd prefer not tooooo
is it a recent upgrade?
✪ vi4m Marcin Kliks
@vi4m
Jan 19 2017 21:45
i think it is this pull request: https://github.com/allegro/ralph/pull/2903/files
it is a recent change (22 days ago)
or, wait
maybe not this one ..
actually, it is the change
also with some breadcrumbs improvement, which is not essential here
src/ralph/data_center/admin.py is essential
and this one: src/ralph/admin/templates/admin/base.html
✪ vi4m Marcin Kliks
@vi4m
Jan 19 2017 21:50
after all, these changes don't touch any models, nor data
so it should be easy to "transplant" if you don't want to upgrade
swb
@spencewb16_twitter
Jan 19 2017 21:51
oh boy oh boy oh boy
✪ vi4m Marcin Kliks
@vi4m
Jan 19 2017 21:54
you can of course update to the latest version, which we run in of course in production ;)
swb
@spencewb16_twitter
Jan 19 2017 23:14
i made those changes, but still no "visualization" field. is there a dependency before this?