~pieq/oem-qa-autosummary:fix-1929019-double-quote

Last commit made on 2022-01-18
Get this branch:
git clone -b fix-1929019-double-quote https://git.launchpad.net/~pieq/oem-qa-autosummary
Only Pierre Equoy can upload to this branch. If you are Pierre Equoy please log in for upload directions.

Branch merges

Branch information

Name:
fix-1929019-double-quote
Repository:
lp:~pieq/oem-qa-autosummary

Recent commits

bb9880a... by Pierre Equoy

Update README to include verbose option when running unit tests

f7ee02c... by Pierre Equoy

Add unit tests for webapp helper functions

eba3ae6... by Pierre Equoy

Use web_link and title directly in the summary Jinja template

Using `web_link` and `title` from the `bug_task` elements directly
allows to pass them directly to the helper functions (`bug_link` and
`bug_title`), which simplifies the code and allows to write unit tests.

cd8f77d... by Pierre Equoy

Use a simpler approach to generate HTML link from a Launchpad bug task web link

Previous approach used a regexp to extract bug ID from bug_task.title. A
simpler approach is to split the web_link data to get the ID.

91ab9b7... by Pierre Equoy

Fix bug title extraction when it is using double quotes

Previously, a regexp was used to extract the bug title from the longer
Launchpad bug task title. This proved problematic if the bug title
itself included double quotes.

The new solution simply ignores everything before the first double quote
and removes the one at the end.

LP: #1929019

30c3ccd... by PMR <pmr@pmr-lander>

Merge #405529 from ~pieq/oem-qa-autosummary:fix-lp1935771-new-bugs-mutable-default-args

748f6dd... by Pierre Equoy

Ensure `created_before` data is evaluated every time a summary is created

Python's default arguments are evaluated once when the function is
defined, not each time the function is called:

https://docs.python-guide.org/writing/gotchas/#mutable-default-arguments

Because of this, the argument `created_before` in the `get_new_bugs()`
method was always set to the date when it was called for the first time.
After a while, users would not get the exepcted results, since most new
bugs would have been created after this date, and would be ignored by
autosummary.

LP: #1935771

a3d68bd... by Pierre Equoy

Merge #404498 from ~stanley31/oem-qa-autosummary:add_logging

add logging into the front-end and back-end script.

728d0b2... by StanleyHuang

Add logging for flask and backend function

- Uses default logger to adding logs
- Defined a unify logger formater, logging function would works under
flask or gunicorn

60c47da... by Pierre Equoy

Merge #403106 from oem-qa-autosummary:fix-1928768-reports-lists