<div dir="ltr">Hi Gabe,<div><br></div><div>You can have one dashboard plugin generate several pages. </div><div><br></div><div>This is what the wsgi_dashboard is doing, and I would suggest to get inspiration from it:</div><div><a href="https://github.com/buildbot/buildbot/blob/master/www/wsgi_dashboards/src/module/dashboards.route.coffee#L4">https://github.com/buildbot/buildbot/blob/master/www/wsgi_dashboards/src/module/dashboards.route.coffee#L4</a><br></div><div><br></div><div>your config would look like:</div><div><span style="color:rgb(33,33,33);font-family:monospace,monospace"><br></span></div><div><span style="color:rgb(33,33,33);font-family:monospace,monospace">c['www'] = dict(port=8020,</span><br style="color:rgb(33,33,33);font-family:monospace,monospace"><span style="color:rgb(33,33,33);font-family:monospace,monospace">                plugins=dict(waterfall_view={}</span><span style="color:rgb(33,33,33);font-family:monospace,monospace">, console_view={}, grid_view={}, my_dashboard={projects: ['proj1', 'proj2'</span><span style="color:rgb(33,33,33);font-family:monospace,monospace">, 'proj3'</span><span style="color:rgb(33,33,33);font-family:monospace,monospace">, 'proj4']</span><span style="color:rgb(33,33,33);font-family:monospace,monospace">}))</span> </div><div><br></div><div><br></div><div>Regards,</div></div><br><div class="gmail_quote"><div dir="ltr">Le jeu. 26 oct. 2017 à 11:30, Gabriel Nagy <<a href="mailto:gabrielnagy@me.com">gabrielnagy@me.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div><span style="font-family:monospace,monospace">Hi guys,<br><br></span></div><span style="font-family:monospace,monospace">I've been developing my own web interface dashboard thingy based on Pierre's tutorial here: <a href="https://medium.com/buildbot/buildbot-ui-plugin-for-python-developer-ef9dcfdedac0" target="_blank">https://medium.com/buildbot/buildbot-ui-plugin-for-python-developer-ef9dcfdedac0</a><br><br></span></div><span style="font-family:monospace,monospace">My CI setup is as follows:<br></span></div><span style="font-family:monospace,monospace">4 projects with about 6-7 builders each, and 1 dashboard per project that does mostly what Console View does, except it filters by the project parameter of my user try jobs.<br><br></span></div><span style="font-family:monospace,monospace">The master setup is as follows:<br><br>c['www'] = dict(port=8020,<br>                plugins=dict(waterfall_view={}, console_view={}, grid_view={}, my_dashboard_1={}, my_dashboard_2={}, my_dashboard_3={}, my_dashboard_4={}))<br><br></span></div><span style="font-family:monospace,monospace">My question is how can I have only one plugin, and pass some parameters to it so I can run something like this:<br><br>c['www'] = dict(port=8020,<br>               
 plugins=dict(waterfall_view={}, console_view={}, grid_view={}, 
my_dashboard={project: 'proj1'}, my_dashboard={project: 'proj2'}, my_dashboard={project: 'proj3'}, my_dashboard={project: 'proj4'}))<br><br></span></div><span style="font-family:monospace,monospace">Is something like this even possible? I find it redundant to create 4 separate dashboard plugins where the only difference is one line in the controller file. There isn't much documentation on this side, and I have to admit I'm a bit of a newbie concerning web development. <br><br></span></div><span style="font-family:monospace,monospace">Thanks,<br></span></div><span style="font-family:monospace,monospace">Gabe<br></span></div>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@buildbot.net" target="_blank">users@buildbot.net</a><br>
<a href="https://lists.buildbot.net/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.buildbot.net/mailman/listinfo/users</a></blockquote></div>