6 Commits

Author SHA1 Message Date
Doug Hellmann
d3f7e4e1f5 fix series name handling in new-release
The independent series has to be treated as a special case because it
does not appear in the sequence of normal series.

Not everything in the deliverables directory is actually a series
name, so we need to use the series status data to get the list of
valid names.

Change-Id: Iea9ce55bf3c99afc7bcdd74cc0b7eb523c0a922d
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-07-10 17:44:23 -04:00
Doug Hellmann
8cda10dc82 update validation rule to look at series status on deliverable
Update the validation rule that prevents new releases on closed series
to look at the stable status of the deliverable, which can override
the value for the series.

Change-Id: I4beffa646253da7f50ddb1054b90839d881e3aa5
Story: #2001852
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-20 15:58:57 -04:00
Doug Hellmann
9bb5fec5f8 change API to pass directory containing status file
Instead of passing the root directory, pass deliverables directory
like we do for the Deliverables class.

Change-Id: I3f6dfe8936ccbce62d0735c591694b8831604437
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-20 15:58:57 -04:00
Doug Hellmann
92e2de953e ensure the independent series always shows up in the status set
Change-Id: Id9fc9b600a1eeb3e5d7808ed587adfa0bf8f64df
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-20 14:13:46 -04:00
Doug Hellmann
de52a1fefa add a validation rule to block new releases based on series status
We agreed at the PTG in Dublin that we would not allow releases from
branches in 'extended maintenance' mode, so that leaves 'development'
and 'maintenance'.

Story: #2001852
Change-Id: I129bdd1c6103615179a7fb7918d37fd02ba0b914
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-20 14:09:30 -04:00
Doug Hellmann
481185dc20 add a data model class to read and represent the series status data
Story: #2001852
Change-Id: I6055511af579a5f0926e7949ec0bb3d9754cb8ec
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-20 14:07:17 -04:00