~pieq/oem-qa-autosummary:fix-1945724-image-url

Last commit made on 2022-01-20
Get this branch:
git clone -b fix-1945724-image-url 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-1945724-image-url
Repository:
lp:~pieq/oem-qa-autosummary

Recent commits

81acbf9... by Pierre Equoy

Remove logging in exceptions to avoid polluting logs each time the summary module is imported

4540dd9... by Pierre Equoy

Allow user to input image URL in the Webapp

LP: #1945724

a7046e1... by Pierre Equoy

Use image URL to find sha256 information

Summary can now rely on `image_url` instead of `image_name`. This
parameter can be manually entered by the user if Auto-Summary cannot
find the proper mail.content file to get image name and image sha256
automatically.

This is more flexible than only asking for `image_name` because in some
cases, the WebDAV URI does not match
`/share/{self.project_name}/{self.series_name}/{self.milestone_name}/`.

LP: #1945724

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

d997144... by Pierre Equoy

fix: make sure to send lists to Jinja template for reports and hardware

hardware, full_test_reports and stress_test_reports are obtained using
the get() method on an HTML form, so by default they return an empty
string.

When generating the summary report, send lists instead of potentially
empty strings in order to prevent concatenating str and list in the
Jinja templates.

Perform additional stripping to make sure we ignore lines with spaces
only and to remove un-necessary spaces on non-empty lines.

LP: #1928768

e2affba... by Pierre Equoy

fix: format using black