Merge lp:~coreygoldberg/lp-dev-utils/ppr-access-parser into lp:lp-dev-utils
Status: | Merged |
---|---|
Approved by: | j.c.sackett |
Approved revision: | 139 |
Merged at revision: | 125 |
Proposed branch: | lp:~coreygoldberg/lp-dev-utils/ppr-access-parser |
Merge into: | lp:lp-dev-utils |
Diff against target: |
447 lines (+227/-63) 4 files modified
page-perf_acccess.ini (+40/-0) page-performance-report.ini (+3/-0) page-performance-report.py (+3/-3) pageperformancereport.py (+181/-60) |
To merge this branch: | bzr merge lp:~coreygoldberg/lp-dev-utils/ppr-access-parser |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
j.c.sackett (community) | Approve | ||
Robert Collins | Pending | ||
Review via email:
|
Commit message
give PPR (page-performan
Description of the change
this branch is an enhancement to PPR (page-performan
when configured to run in "access log mode" (log_format=
Change Summary:
---------------
* added parser for apache access logs
* added new mandatory [parser] config section to ini.
takes option: (log_format=
* changed CSS links in HTML to relative URLs,
so we aren't harcoded to devpad.c.c.
* added new config/ini file for SSO/access logs:
* page-perf_
* tweaked inline css slightly, and switched to Ubuntu font
Notes:
------
* report generated from sample staging access log:
* https:/
* sample log for testing:
* https:/
* command-line example invoking page-performanc
against sample access log, using new ini and a defined
output directory:
$ python page-performanc
--config=
--directory=
--no-partition \
access_
Corey--
This looks like a good start, but there's some confusing and possibly
unnecessary code here, plus a few style issues.
#117: Looks like you've unordered the imports here, please reorder them
appropriately (e.g. alphabetically).
#159 `create_ request_ class` method seems unnecessary; as you know in
`parse_launchpad` or `parse_access` which format you're using, it would be
cleaner to just define two different classes instead and use the appropriate
one in the appropriate parse function. I'm guessing this to facilitate not
importing from zc unless you need it, but this seems like an unnecessary
optimization that results in less clear code.