From 8924bf77dd9404a11e2fe6e17b5f2027dac988f0 Mon Sep 17 00:00:00 2001 From: FrantiĊĦek Zatloukal Date: May 05 2021 17:18:35 +0000 Subject: Merge branch 'develop' --- diff --git a/.gitignore b/.gitignore index be9e118..bde7cbe 100644 --- a/.gitignore +++ b/.gitignore @@ -1,14 +1,22 @@ -*.pyc -*.pyo +# editors +/.idea/ +/.ropeproject/ *.swp -env_blockerbugs/* -*__pycache__* -*.ropeproject/ -conf/settings.py -.sass-cache/ -.idea -docs/_build/* -blockerbugs_db.sqlite + +# cache files /.cache/ -/*.tar.gz +/.pytest_cache/ +.sass-cache/ +*__pycache__* + +# compile artifacts +/docs/_build/ /*.src.rpm +/*.tar.gz +*.pyc +*.pyo + +# local config +/blockerbugs_db.sqlite +/conf/settings.py +/env_blockerbugs/ diff --git a/blockerbugs.spec b/blockerbugs.spec index 2f279ac..017aa3a 100644 --- a/blockerbugs.spec +++ b/blockerbugs.spec @@ -1,7 +1,7 @@ Name: blockerbugs # NOTE: if you update version, *make sure* to also update # `blockerbugs/__init__.py` and `docs/source/conf.py` -Version: 1.2.1 +Version: 1.3.0 Release: 1%{?dist} Summary: Fedora QA Blocker Tracking Application @@ -105,6 +105,18 @@ cp -v docs/_build/man/*.1 %{buildroot}/%{_mandir}/man1/ %changelog +* Wed May 05 2021 Frantisek Zatloukal - 1.3.0-1 +- blocker_list.html: make it more readable, don't wrap status icons +- pytest: ignore a DeprecationWarning from the openid package +- show review vote counts only for Proposed bugs +- discussions: add component to the ticket title, reshuffle +- blocker_list: prevent wrapping votes in the middle +- allow the dev to log in as any user, always in admin group +- init_db.sh: update to F35 release +- requirements: work around idna dependency error +- .gitignore: re-shuffle into sections +- .gitignore: add /.pytest_cache/ + * Fri Apr 09 2021 Frantisek Zatloukal - 1.2.1-1 - Fix the migration from 72031671860e diff --git a/blockerbugs/__init__.py b/blockerbugs/__init__.py index 7d2add0..12b6b38 100644 --- a/blockerbugs/__init__.py +++ b/blockerbugs/__init__.py @@ -8,7 +8,7 @@ from flask_sqlalchemy import SQLAlchemy from . import config # the version as used in setup.py and docs -__version__ = "1.2.1" +__version__ = "1.3.0" # Flask App app = Flask(__name__) diff --git a/blockerbugs/config.py b/blockerbugs/config.py index 7170b3e..88487fc 100644 --- a/blockerbugs/config.py +++ b/blockerbugs/config.py @@ -58,7 +58,7 @@ class Config(object): PAGURE_BOT_USERNAME = 'blockerbot' PAGURE_BOT_ENABLED = True PAGURE_BOT_LOOP_THRESHOLD = 2 - PAGURE_DISCUSSION_TITLE = "rhbz#$bugid $summary" + PAGURE_DISCUSSION_TITLE = "[$component] $summary | rhbz#$bugid" PAGURE_DISCUSSION_CONTENT = '''\ Bug details: ** $bug_url ** Information from [BlockerBugs App]({}): diff --git a/blockerbugs/controllers/users.py b/blockerbugs/controllers/users.py index e8ac042..fd46f95 100644 --- a/blockerbugs/controllers/users.py +++ b/blockerbugs/controllers/users.py @@ -58,6 +58,6 @@ def check_admin_rights(): if app.config['FAS_ADMIN_GROUP'] in g.fas_user.groups: return None - app.logger.info('Failed admin access to %s by %s' % ( - request.url, g.fas_user.username)) + app.logger.info('Failed admin access to {url} by {user} (not in group "{admin}")'.format( + url=request.url, user=g.fas_user.username, admin=app.config['FAS_ADMIN_GROUP'])) abort(401) diff --git a/blockerbugs/templates/blocker_list.html b/blockerbugs/templates/blocker_list.html index 97a5a6d..23ec2d7 100644 --- a/blockerbugs/templates/blocker_list.html +++ b/blockerbugs/templates/blocker_list.html @@ -51,12 +51,13 @@ text: '
- {% for buglist in ['Proposed Blockers','Accepted Blockers', 'Accepted 0-day Blockers', 'Accepted Previous Release Blockers', 'Proposed Freeze Exceptions', 'Accepted Freeze Exceptions', 'Prioritized Bugs'] %} - {% if buglists[buglist] %}

{{ buglists[buglist] | length }} {% if (buglists[buglist] | length) == 1 %}{{ buglist[:-1]}}{% else %}{{ buglist }}{% endif %}

+ {% for buglist in buglist_names if buglists[buglist] %} {# for non-empty buglists #} +

{{ buglists[buglist] | length }} {% if (buglists[buglist] | length) == 1 %}{{ buglist[:-1]}}{% else %}{{ buglist }}{% endif %}

@@ -72,32 +73,38 @@ text: '{% endif %} {% if bug.needinfo %}?{% endif %}{% if bug.bugid in wb_change %}{% endif %} +
+ {% if bug.bugid in recent %}{% endif -%} + {% if bug.needinfo %}?{% endif -%} + {% if bug.bugid in wb_change %}{% endif %} + {{ bug.bugid }} {{ bug.component }} {{ bug.status }} {{ bug.summary }} - {% if vote_info[bug.bugid][buglist] %} - +{{ vote_info[bug.bugid][buglist][0] }}, - {{ vote_info[bug.bugid][buglist][1] }}, - -{{ vote_info[bug.bugid][buglist][2] }} -
+ {% if buglist.startswith('Proposed') and vote_info[bug.bugid][buglist] %} + + +{{ vote_info[bug.bugid][buglist][0] }}, + {{ vote_info[bug.bugid][buglist][1] }}, + -{{ vote_info[bug.bugid][buglist][2] }} + +
{% endif %} {% if bug.discussion_link %} - - {% if buglist.startswith('Accepted') %} - Discuss - {% elif vote_info[bug.bugid]['user_voted'] %} - Voted - {% else %} - Vote! - {% endif %} - + + {% if buglist.startswith('Accepted') %} + Discuss + {% elif vote_info[bug.bugid]['user_voted'] %} + Voted + {% else %} + Vote! + {% endif %} + {% elif buglist.startswith('Prioritized') %} - + {# Nothing here, go on... #} {% else %} - TBD + TBD {% endif %}
@@ -107,7 +114,7 @@ text: '