Tuesday, 2025-10-14

opendevreviewchandan kumar proposed openstack/watcher-dashboard master: Improve audit creation model and add text wrapping  https://review.opendev.org/c/openstack/watcher-dashboard/+/96377810:27
sean-k-mooneychandankumar: woudl you mind uploading updated images fo the final version.10:38
sean-k-mooneychandankumar: my devstack kind fo broke because the disk filled up so i need to recreated a new env10:39
sean-k-mooneybut i wont have time to do that today10:39
chandankumarsean-k-mooney: sure10:42
chandankumarsean-k-mooney: https://i.imgur.com/R2ATF7C.png10:43
sean-k-mooneythat is without the applicaiton fo the with correct?10:44
sean-k-mooneythe modal-xl class need to be applied to the div with modal-dialog10:45
sean-k-mooneyin that image its still resticted to ~1/3 of the space not 95% of the width10:46
sean-k-mooneythe wrapping appares to be fixed which is good10:47
chandankumaryes, it is not using the whole space 10:47
chandankumarI am not sure modal xl class is applied10:48
chandankumarneed to debug that10:48
sean-k-mooneyack10:48
sean-k-mooneyi think instead of {% extends "horizon/common/_modal_form.html" %} you may need to duplicate its content and apply that class to the root modal div10:49
sean-k-mooneyi have not checked to closely10:49
sean-k-mooneyyou need to apply it to this div https://github.com/openstack/horizon/blob/4b81bd78fc22b846c82b18fc70bec5b49163f514/horizon/templates/horizon/common/_modal.html#L510:50
sean-k-mooneyi think10:50
sean-k-mooneyyou currently tryign to set it on https://github.com/openstack/horizon/blob/4b81bd78fc22b846c82b18fc70bec5b49163f514/horizon/templates/horizon/common/_modal.html#L1 right10:51
sean-k-mooneythat might work also but the div with modal-dialog was the one that i saw in firefox that was settign the width10:51
opendevreviewJoan Gilabert proposed openstack/watcher master: Fix check for volume type in cinder helper migrate  https://review.opendev.org/c/openstack/watcher/+/96385710:54
sean-k-mooneywe can see an example of this used here https://github.com/openstack/horizon/blob/4b81bd78fc22b846c82b18fc70bec5b49163f514/openstack_dashboard/contrib/developer/static/dashboard/developer/theme-preview/theme-preview.html#L164410:59
chandankumarsean-k-mooney: instead of model-xl div, I used minimal javascript $('#create_audit_form').closest('.modal-dialog').addClass('modal-xl'); (Find the form and find the parent box and make it wide) then it appears like this https://i.imgur.com/MEGwGqC.png, It will avoid duplicating the stuff or I can duplicate the horizon model form content11:11
sean-k-mooneythat coudl work as a short term solution11:12
sean-k-mooneyits proably ok for now but we shoudl follwo up with horizon to suppot settign the class via a template block11:12
sean-k-mooneyim ok with the js solution for this bug as a temperoty solution11:13
sean-k-mooneymaking the class settable is a really small chang to the horizon template 11:13
sean-k-mooneyso we should idealy also do that and submit a follow up to replace teh js solution with that11:13
sean-k-mooneyalso that looks much better11:14
sean-k-mooneychandankumar: if you push up that version we can do the oneline change to https://github.com/openstack/horizon/blob/master/horizon/templates/horizon/common/_modal.html#L5 to supprot passign extra classes and a follow up to the plugin11:19
sean-k-mooneythat way we can backport the js version without needing to backprot the horizon change11:19
sean-k-mooneyand we can clanup the plugin on master once the horizon change is landed11:19
chandankumarI am trying to duplicate it in watcher-dahsboard now11:20
opendevreviewchandan kumar proposed openstack/watcher-dashboard master: Improve audit creation model and add text wrapping  https://review.opendev.org/c/openstack/watcher-dashboard/+/96377811:33
chandankumarsean-k-mooney: ^^ screenshot: https://i.imgur.com/v73cRG6.png11:33
chandankumarwith duplicated code11:34
chandankumarhmm11:35
chandankumarfor current backport, going with js stuff sounds good11:36
sean-k-mooneyhum im surpised that worked11:36
sean-k-mooneyim not sure this is a good approch as it will change the defintion for everyone i think11:36
chandankumarin that code, go with the duplicated one?11:36
chandankumars/code/case11:36
sean-k-mooneywhen i suggestign vendoring i explcity ment using a diffent name so that it woudl not overed the default version form hoizon11:37
sean-k-mooneywhich is why i said aw would have to vendor the modal form as well11:37
chandankumarlet me change the name11:37
sean-k-mooneyto change the name you will need to also vendor _modal_form.html11:38
sean-k-mooneyand have it refecne that new name11:38
sean-k-mooneythe render looks good to me however11:38
sean-k-mooneyso if we fix those two thing im fine with this solution until we update horizon11:38
opendevreviewchandan kumar proposed openstack/watcher-dashboard master: Improve audit creation model and add text wrapping  https://review.opendev.org/c/openstack/watcher-dashboard/+/96377811:51
chandankumarsean-k-mooney: updated it with different name11:52
chandankumarscrenshot: https://i.imgur.com/lf0wfp6.png11:53
sean-k-mooneyhum so the only other comment i have is when you renamed it you shoudl have moved it out of the horizon namespace11:55
sean-k-mooneyso watcher_dashboard/templates/horizon/common/_modal_xl.html shoudl be watcher_dashboard/templates/_modal_xl.html11:56
sean-k-mooneyos somethign tha tis prefixed with our plugin in some wway11:56
sean-k-mooneyah it shoudl be in here https://github.com/openstack/watcher-dashboard/tree/master/watcher_dashboard/templates/infra_optim11:57
sean-k-mooneychandankumar: if you would not mind moving it to there im +2 on it otherwise11:58
sean-k-mooneysame for watcher_dashboard/templates/horizon/common/_modal_form_xl.html11:58
sean-k-mooneywe shoudl proably move or delete https://github.com/openstack/watcher-dashboard/blob/master/watcher_dashboard/templates/horizon/common/_items_count_domain_page_header.html too as i think overrided horizon templeates liek this is generally not someithng a plugin shoudl do11:59
sean-k-mooneybut that a prexisting issue and should be fixed sepreatly11:59
chandankumarwill do that12:11
chandankumaryes, correct, I will drop page_header.html seperately12:16
opendevreviewchandan kumar proposed openstack/watcher-dashboard master: Improve audit creation model and add text wrapping  https://review.opendev.org/c/openstack/watcher-dashboard/+/96377812:19
chandankumarDone!12:19
chandankumarscreenshots: https://i.imgur.com/GL6gEdM.png and https://i.imgur.com/MMRld0r.png12:20
chandankumarsean-k-mooney: thank you for me on improving this patch :-)12:21
sean-k-mooney+2 those look good to me12:23
sean-k-mooneyif you have time next sprint woudl you mind trying to upstream the chagne to horizon12:23
chandankumarsean-k-mooney: sure, will do that12:45
*** haleyb|out is now known as haleyb12:59
jgilabersean-k-mooney, when you have sometime please review again https://review.opendev.org/c/openstack/watcher-tempest-plugin/+/958644 I think I addressed all your comments13:08
jgilaberchandankumar, please also add to your review list ^^ this patch and the next ones in the series13:09
jgilaberthanks!13:09
*** gmaan_pto is now known as gmaan16:00
opendevreviewAlfredo Moralejo proposed openstack/watcher master: Move decision-engine monitoring service to the decision-engine  https://review.opendev.org/c/openstack/watcher/+/96325216:01
opendevreviewAlfredo Moralejo proposed openstack/watcher master: APISchedulingService migrate audits also on first discovery of services  https://review.opendev.org/c/openstack/watcher/+/96398116:01

Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!