#126 irc_format: add bug discussion link to the output
Closed 3 years ago by kparal. Opened 3 years ago by kparal.

file modified
+2
@@ -188,6 +188,8 @@ 

      if app.config["PAGURE_REPO_TOKEN"] in (bb_Config.PAGURE_REPO_TOKEN, ""):

          # skip this if the API token is set to the placeholder value

          # or empty string as we are not going to be able to create anything

+         app.logger.debug('Not syncing discussions, because PAGURE_REPO_TOKEN '

+             'is not configured.')

          return

      active_milestones = Milestone.query.filter_by(active=True).all()

  

@@ -17,6 +17,9 @@ 

  {% for bug in buglists[buglist] -%}

  #topic ({{ bug.bugid }}) {{ bug.summary }}

  #link {{ bug.url }}

+ {% if bug.discussion_link -%}

+ #link {{ bug.discussion_link }}

+ {% endif -%}

  #info {{ buglist | replace("Blockers", "Blocker") }}, {{ bug.component }}, {{ bug.status }}

  

  {% endfor -%} {# end of bug iteration #}

file modified
+5 -3
@@ -95,7 +95,8 @@ 

    python run_cli.py add_milestone -r 25 -m final -b 1277289 -a 1277290

  

  This will add a Fedora 25 release and its milestones with Blocker and

- FreezeException trackers for each of them.

+ FreezeException trackers for each of them. See ``init_db.sh`` for more

+ up-to-date values.

  

  

  Running Sync Against Bugzilla and Bodhi
@@ -105,10 +106,11 @@ 

  

    DEV='true' python run_cli.py sync

  

- Alternatively, it is possible to run sync for only updates or only bugs::

+ Alternatively, it is possible to sync only selected parts::

  

    DEV='true' python run_cli.py sync-bugs

    DEV='true' python run_cli.py sync-updates

+   DEV='true' python run_cli.py sync-discussions

  

  

  Running the web UI
@@ -118,7 +120,7 @@ 

  

    DEV='true' python runapp.py

  

- and then visit `<http://127.0.0.1:5000/>`_.

+ and then visit `<http://127.0.0.1:9999/>`_.

  

  

  Running Unit Tests

file modified
+6 -3
@@ -8,11 +8,14 @@ 

  python3 run_cli.py init_db

  

  # add releases

- python3 run_cli.py add_release -r 32

+ python3 run_cli.py add_release -r 33

+ python3 run_cli.py add_release -r 34

  

  # add milestones

- python3 run_cli.py add_milestone -r 32 -m beta -b 1705303 -a 1705304

- python3 run_cli.py add_milestone -r 32 -m final -b 1705305 -a 1705306

+ python3 run_cli.py add_milestone -r 33 -m beta -b 1766775 -a 1766776

+ python3 run_cli.py add_milestone -r 33 -m final -b 1766777 -a 1766778

+ python3 run_cli.py add_milestone -r 34 -m beta -b 1829022 -a 1829023

+ python3 run_cli.py add_milestone -r 34 -m final -b 1829024 -a 1829025

  

  # partner-bugzilla alternative numbers:

  #python3 run_cli.py add_milestone -r 32 -m beta -b 1729402 -a 1729404