Merge ~pieq/oem-qa-autosummary:fix-1928768-reports-lists into ~pieq/oem-qa-autosummary:master
Proposed by
Pierre Equoy
Status: | Merged |
---|---|
Approved by: | Pierre Equoy |
Approved revision: | d997144db77faba10f73eb452c5eafae3e652d3b |
Merged at revision: | 60c47da8da82a118c12c1bb02394a5f4d766ee26 |
Proposed branch: | ~pieq/oem-qa-autosummary:fix-1928768-reports-lists |
Merge into: | ~pieq/oem-qa-autosummary:master |
Diff against target: |
78 lines (+23/-18) 2 files modified
autosummary/summary.py (+8/-3) webapp/__init__.py (+15/-15) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Vic Liu (community) | Approve | ||
Pierre Equoy | Pending | ||
Review via email: mp+403106@code.launchpad.net |
Description of the change
See commit description for more info.
Tested locally using a given project and milestone, with the following parameters:
1.
- empty "Hardware Used for Testing"
- empty "C3 Full Test Report(s)"
- empty "C3 Stress Test Report(s)"
2.
- "Hardware Used for Testing": lots of empty lines
- "C3 Full Test Report(s)": several C3 submissions links
- empty "C3 Stress Test Report(s)"
3.
- "Hardware Used for Testing": names of devices with CID numbers.
- empty "C3 Full Test Report(s)"
- "C3 Stress Test Report(s)": several C3 submissions links
Worked fine in every cases.
To post a comment you must log in.
I tested this MR with the following scenarios
1. Summary got generated without problem
- empty "Hardware Used for Testing"
- empty "C3 Full Test Report(s)"
- empty "C3 Stress Test Report(s)"
- empty "HTML Report"
- empty "Scope"
2. Summary got generated without problem
- "Hardware Used for Testing": CID with a few empty lines and spaces at the fron
- empty "C3 Full Test Report(s)"
- empty "C3 Stress Test Report(s)"
- empty "HTML Report"
- empty "Scope"
3. Summary got generated without problem
- empty "Hardware Used for Testing"
- "C3 Full Test Report(s)": Submission link with a few empty lines and spaces at the front
- empty "C3 Stress Test Report(s)"
- empty "HTML Report"
- empty "Scope"
4. /certification. canonical. com/hardware/ 202103- 28798/submissio n/212779/"
- empty "Hardware Used for Testing"
- empty "C3 Full Test Report(s)"
- "C3 Stress Test Report(s)": Some lines with spaces and a submission link with a few spaces at the front (as below)
" "
" "
" "
" https:/
- empty "HTML Report"
- empty "Scope"
Some empty lines with bullet points showed up in the "C3 Stress Test Reports:" field in the summary generated.
Maybe we can add a .strip() at the end of .splitlines() for each line?