15:00:59 #startmeeting horizon 15:01:02 Meeting started Wed Feb 19 15:00:59 2020 UTC and is due to finish in 60 minutes. The chair is amotoki. Information about MeetBot at http://wiki.debian.org/MeetBot. 15:01:04 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 15:01:06 The meeting name has been set to 'horizon' 15:01:09 hi all 15:01:47 hi 15:02:25 hi 15:04:42 okay, let's start 15:04:50 #topic notices/annoucements 15:05:14 first one is: 15:05:40 o/ 15:05:56 I would like to ask you whether we need a PTG space in Vancouver in June 15:06:31 OSF sent a mail to ask your project will gather at vancouver. 15:06:53 and I need to feedback by Mar 2. 15:07:56 do you expect to be there? 15:08:41 I know It is not easy to say yes/no with confidence. it is same to me too. 15:09:11 I did apply, but it will be a while before I know, and I don't put much hope in it. 15:09:56 Especially since all the Americans who didn't go to Shanghai will go now. 15:10:35 yeah, it may lead to a budget topic 15:11:50 the third option is to asnwer we are still considering it. we are a small team and will need a half day at most, so this might be an option. 15:12:11 e0ne: vishalmanchanda: what about you? 15:13:44 amotoki: I am not sure. It's depend on my company. 15:14:25 Although I wanted to join and meet you all guys again:) 15:14:38 vishalmanchanda: hehe :) 15:15:19 okay, let me share info if you have an update. 15:15:43 I plan to answer to OSF just before the deadline. 15:16:11 second one is Rocky will enter into EM phase this week or next week. 15:16:48 EM (extended maintenance) means we no longer cut a release while we accept backports. 15:18:08 after the last rocky stable release, what we merged is only "Ensure python versions" https://opendev.org/openstack/horizon/commit/5b8f7548c54187e8c5cf4c1a5d22db13d44c24dc 15:18:23 so I don't think we need another release. 15:19:17 +1. 15:20:47 moving on 15:20:52 #topic General Priorities 15:21:53 looking at IRC logs just before the meeting, it looks like we have topic on the error message refactoring. 15:22:03 can we start with this? 15:22:40 ^ vishalmanchanda and rdopiera 15:23:46 yeah rdopiera left some comment on my patch https://review.opendev.org/#/c/708069/1 15:24:22 How can we use handle () method for error messages refactoring. 15:24:48 the problem is how to pass the details information using the exsting django mechanisms 15:25:35 and I can't really see a solution other then just appending it to the message itself, separated with some special character or string we pick, and then split it again before displaying 15:27:19 it's a bit of a hack, but relatively robust, as we are still just passing text around, and even if that gets displayed or logged somewhere, it will still be understandable (even if a bit verbose) 15:27:38 yeah, it is same as my understanding. I looked into the detail of django messaging framework before the meeting and had the similar feeling 15:28:14 we *could* use extra_tags, as we don't use them anywhere, but that would bring problems if anything else uses it 15:28:26 and that's not what they are for 15:29:42 but as far i checked we are not using extra_tag anywhere. 15:30:26 isn't "extra_tags" converted into CSS classes by default? 15:30:48 I am looking at {{ message.tags }} in https://docs.djangoproject.com/en/3.0/ref/contrib/messages/#displaying-messages 15:30:55 that's what the example template in django documentation does, but of course our templates could do soemthing else 15:31:28 it's not what they are for, though, so I would prefer to merge/split the message instead 15:31:49 amotoki: I didn't get approval from PTG trip yet :( 15:32:26 e0ne: thanks for the info. nobody has got approval yet :) 15:33:26 rdopiera: some special delimiter string looks straight-forward. perhaps we need some extra JS to modify an error msg in a browser side. 15:35:29 it would be nice if extra_tags works, but I am not sure how much we need to modify our template. 15:36:56 didn't get full context of conversation yet, but maybe this https://docs.djangoproject.com/en/3.0/ref/templates/api/#django-contrib-messages-context-processors-messages will be useful. we can create own context_processors for templates 15:37:54 or this one https://docs.djangoproject.com/en/3.0/ref/contrib/messages/#creating-custom-message-levels 15:38:47 appending it to the text of the message has the benefit of being picked up by any logging middleware 15:39:03 including our operation log middleware 15:42:08 regarding the second one from e0ne, if I understand correctly, it allows us to define a new level of message. If we pass details as separate message from the main ones, defining a new custom level will work. 15:42:53 if we go to the route to include summary and detail in a single msg popup, I am afraid it doesn't work. 15:43:09 amotoki: +1 15:43:12 the django message framework just allows us to pass strings. 15:44:43 what is/are our next step(s) we try? 15:45:44 in the coversation in #-horizon, rdopiera has an idea to use the unicode "…" charcter for the separator. 15:45:48 I would suggest: 1. make two functions, one for adding and second for extractin the details, use the first one in the handle() method and add the second one everywhere we use get_message (we will need a javascript version) 15:45:57 rdopiera: go ahead 15:46:40 2. modify all relevant places that display the messages to separate the details and display them as collapsible 15:47:43 we might want to escape any existing instances of that separator character, and un-escape them when extracting details, so that it's robust 15:48:18 sounds reasonable to me 15:52:42 e0ne: i have one question on your revert patch on LOCALE_PATHS. is there anything which has changed since then? 15:53:59 amotoki: I didn't dig deep enough. just tested original bug I faced with the lates master without that patch 15:54:49 the problem with the paths has been fixed on the django side 15:55:08 in Django 2.2? 15:55:25 the original problem was a mix of several problems, including a bug in django where the gettext functions didn't get the paths properly 15:55:41 that has been fixed, I don't remember in which version exactly 15:56:20 IIRC it happened in Django 1.11 and/or 2.0 for zh_tw/ch fallback case. 15:58:22 anyway it is a good news as setting LOCALES_PATH is a tricky workaround as it only works for horizon 15:58:38 +1 15:59:32 for other priorities, I succeeded the new policies works with manual loading of python. I am reflecting it into the code now. sorry for late. 16:00:17 we are reaching 1 hour.... 16:00:21 thanks for joining 16:00:40 let's contineu the discussion in #-horizon if any 16:00:43 have a great week 16:00:45 #endmeeting