As per discussion on test@, we'll be using a couple of new magic
whiteboard strings to identify two sets of 'special' blockers:
Accepted0Day and AcceptedPreviousRelease. The first are bugs that
must be fixed in the 0-day update set for the new release. The
second are bugs that must be fixed in updates for the previous
stable release(s) before the new release goes out. This commit
allows blockerbugs to handle them, displaying them as two new
groups on the Bug List and IRC Format pages.
Details
Details
- Reviewers
tflink mkrizek - Commits
- rBLKRcc7ccb95640a: handle 0-day and stable blockers
Check that the new blocker types are correctly detected
and listed and the app works as before in all other respects.
Diff Detail
Diff Detail
- Repository
- rBLKR blockerbugs
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
Overall it looks good to me but since the patch changes database schema we need alembic migration script. It should be pretty straight-forward, see alembic/versions/ for inspiration.
Comment Actions
The code is fine for the most part but I'm not thrilled about how cluttered the pages look after adding two more lists to them which are probably going to be empty 90% of the time.
I'm trying to think of a way to improve this without adding an unreasonable amount of work, any thoughts?
Comment Actions
How about this?
--- a/blockerbugs/templates/blocker_list.html +++ b/blockerbugs/templates/blocker_list.html @@ -56,7 +56,7 @@ text: '<a href="' + $(this).contents().filter('a').attr('href') + '" title="More <div class="row"> <div class="twelve columns" id="blockertables"> {% for buglist in ['Proposed Blockers','Accepted Blockers', 'Accepted 0-day Blockers', 'Accepted Previous Release Blockers', 'Proposed Freeze Exceptions', 'Accepted Freeze Exceptions'] %} - <h2>{% if buglists[buglist] %}{{ buglists[buglist] | length }}{% else %}No{% endif %} {% if (buglists[buglist] | length) == 1 %}{{ buglist[:-1]}}{% else %}{{ buglist }}{% endif %}</h2> + {% if buglists[buglist] %}<h2>{{ buglists[buglist] | length }} {% if (buglists[buglist] | length) == 1 %}{{ buglist[:-1]}}{% else %}{{ buglist }}{% endif %}</h2> <table id="{{ buglist | tagify }}" cellspacing="1" class="tablesorter"> <thead> <tr> @@ -94,7 +94,10 @@ text: '<a href="' + $(this).contents().filter('a').attr('href') + '" title="More </tr> {% endfor %} </tbody> - </table> + </table>{% endif %} + {% endfor %} + {% for buglist in ['Proposed Blockers','Accepted Blockers', 'Accepted 0-day Blockers', 'Accepted Previous Release Blockers', 'Proposed Freeze Exceptions', 'Accepted Freeze Exceptions'] %} + {% if not buglists[buglist] %}<h4>No {{ buglist }}</h4>{% endif %} {% endfor %} </div> <!-- end of 12 columns --> </div> <!-- end of row -->