Add useful info to cycle highlights

In order to help consumers of the cycle highlights data, this pulls in
some additional information about each team to have more of that info
in one easy to consume place.

Change-Id: Id45345999df5e204a8fa613676b3f27442551da7
This commit is contained in:
Sean McGinnis 2017-12-09 13:18:00 -06:00
parent 162d6866c7
commit 3cf1056d72

View File

@ -23,8 +23,11 @@ from docutils.statemachine import ViewList
from sphinx.util.nodes import nested_parse_with_titles
from openstack_releases import deliverable
from openstack_releases import governance
from openstack_releases import links
_TEAM_DATA = governance.get_team_data()
def _list_table(add, headers, data, title='', columns=None):
"""Build a list-table directive.
@ -426,8 +429,17 @@ class HighlightsDirective(rst.Directive):
app.info('[highlights] rendering %s highlights for %s' %
(team.title(), series))
result.append(team.title(), source_name)
result.append('-' * len(team), source_name)
tdata = _TEAM_DATA.get(team, {})
title = team.title()
if tdata.get('service'):
title = "{} - {}".format(title, tdata['service'])
result.append(title, source_name)
result.append('-' * len(title), source_name)
if tdata.get('mission'):
result.append(tdata['mission'], source_name)
result.append('', source_name)
result.append('**Notes:**', source_name)
result.append('', source_name)
result.append(series_highlights[team], source_name)
result.append('', source_name)