Thursday, 2020-05-07

*** vishalmanchanda has quit IRC00:18
*** spatel has joined #openstack-horizon01:27
*** btully has joined #openstack-horizon01:59
*** btully has quit IRC02:03
*** spatel has quit IRC02:31
*** spatel has joined #openstack-horizon02:34
*** spatel has quit IRC02:48
*** xinranwang has joined #openstack-horizon03:05
NizarsI am exploring the idea of contributing with an angular upgrade for Horizon. I am looking at the source code but I wonder where I can find the previous discussions of Horizon's updates so I can make more sense of some of the stuff.05:00
NizarsI am new to open source contribution but I thought this could be an interesting project for me to work on during the summer.05:01
*** vishalmanchanda has joined #openstack-horizon05:45
*** gyee has quit IRC06:07
*** xinranwang has quit IRC06:44
*** dklyle has quit IRC06:48
openstackgerritOpenStack Proposal Bot proposed openstack/horizon master: Imported Translations from Zanata  https://review.opendev.org/72605107:29
*** tosky has joined #openstack-horizon07:31
*** rpittau|afk is now known as rpittau07:47
amotokiNizars: hi, thanks for your interest.  what do you mean by "the previous discussions of Horizon's updates"? I'd like to understand your point more.07:47
Nizars@amotoki07:50
NizarsI was just trying to understand the code better. How the angularjs part of the software is installed and connected.07:50
NizarsI think that I have found my answer.07:50
NizarsIt seems to import it in unique form that works with Python3, XStatic-Angular07:51
amotokiNizars: good to know that :)07:51
NizarsI looked at the content of those it seems to just be the parts of the angularjs framework source code.07:52
NizarsI thought I would experiment around and see how far I can change stuff around. :)07:53
amotokiNizars: yeah, horizon is a project combined with python and JS implementations. at the moment, all JS files are loaded in a non-modern manner via Django templates.07:53
NizarsSpeaking of which, I have a quick question for you.07:54
NizarsThe file horizon/openstack_auth/defaults.py contains the following lines of code:07:55
*** TheJulia has quit IRC07:56
*** Anticimex has quit IRC07:56
Nizarshttps://www.irccloud.com/pastebin/EDS6E04e/07:56
NizarsAm I correct in assuming that tose are the values which are to be mapped to use role based access control in Horizon?07:59
NizarsAccording to this document:07:59
Nizarshttps://docs.openstack.org/horizon/latest/contributor/topics/policy.html07:59
NizarsAs in, to enable us to do checks on operation user permissions before executing processes?08:01
*** TheJulia has joined #openstack-horizon08:01
*** Anticimex has joined #openstack-horizon08:01
amotokiNizars: yes, they are used to apply RBAC in horizon panels, actions and forms.08:01
amotokiNizars: The default values in openstack_auth/defaults.py are overrided in openstack_dashboard/defaults.py08:02
amotokihttps://opendev.org/openstack/horizon/src/branch/master/openstack_dashboard/defaults.py#L62-L8708:02
NizarsAwesome, thanks!08:02
amotokiyou can find example usages in various places, for example, v08:03
amotokihttps://opendev.org/openstack/horizon/src/branch/master/openstack_dashboard/dashboards/project/instances/tables.py#L8508:04
NizarsThank you :)08:04
*** jtomasek has joined #openstack-horizon08:59
*** btully has joined #openstack-horizon09:14
*** btully has quit IRC09:18
*** mkowalski[b] has quit IRC09:40
*** irclogbot_0 has quit IRC09:41
*** irclogbot_1 has joined #openstack-horizon09:41
*** jtomasek has quit IRC09:43
*** jtomasek has joined #openstack-horizon09:45
*** mkowalski[b] has joined #openstack-horizon09:54
*** jtomasek has quit IRC10:04
*** rpittau is now known as rpittau|bbl10:10
*** jtomasek has joined #openstack-horizon10:13
*** jtomasek has quit IRC10:17
*** jtomasek has joined #openstack-horizon10:18
*** rdopiera has quit IRC10:35
*** rdopiera has joined #openstack-horizon10:37
*** rpittau|bbl is now known as rpittau12:11
*** spatel has joined #openstack-horizon12:58
*** jhesketh has quit IRC13:43
*** jtomasek has quit IRC13:45
*** jhesketh has joined #openstack-horizon13:47
*** tosky_ has joined #openstack-horizon14:29
*** tosky has quit IRC14:32
*** dklyle has joined #openstack-horizon14:38
*** ChanServ sets mode: +o dklyle14:38
*** dklyle sets mode: -o dklyle14:41
*** tkajinam has quit IRC14:43
*** jtomasek has joined #openstack-horizon14:49
*** vishalmanchanda has quit IRC14:54
*** tosky_ is now known as tosky15:04
*** jtomasek has quit IRC15:10
*** Andreas681 has joined #openstack-horizon15:14
Andreas681Can I use pytest to unittest a horizon-plugin? I'm trying a stupid simple test with `python3 -m pytest tests/test_client.py` and I get an error `ERROR: /opt/stack/horizon/setup.cfg:59: duplicate section 'entry_points'`. Not sure how to interpret this error.15:20
*** mkowalski[b] has left #openstack-horizon15:23
*** rdopiera has quit IRC15:32
*** gyee has joined #openstack-horizon15:32
Andreas681Or if someone could recommend a better method to unittest my functions (python) in the backend?15:32
*** priteau has joined #openstack-horizon15:45
*** spatel has quit IRC15:49
*** spatel has joined #openstack-horizon15:50
Andreas681nvm, the entry_points-error was solved.16:32
*** rpittau is now known as rpittau|afk16:34
*** Andreas681 has quit IRC16:40
*** gmann is now known as gmann_afk17:25
*** priteau has quit IRC17:25
*** spatel has quit IRC18:39
*** e0ne has joined #openstack-horizon18:40
*** ChanServ sets mode: +o e0ne18:40
*** e0ne has quit IRC18:56
*** gmann_afk is now known as gmann19:06
*** yaawang has quit IRC19:16
*** yaawang has joined #openstack-horizon20:32
*** e0ne has joined #openstack-horizon20:57
*** ChanServ sets mode: +o e0ne20:57
*** e0ne has quit IRC20:59
*** btully has joined #openstack-horizon21:56
*** btully has quit IRC22:00
*** hoonetorg has quit IRC22:34
*** hoonetorg has joined #openstack-horizon22:46
*** tkajinam has joined #openstack-horizon22:49
*** spotz has quit IRC23:16
*** tosky has quit IRC23:36
*** gyee has quit IRC23:54

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