Merge ~ilasc/launchpad:add-repack-stats-api into launchpad:master
Proposed by
Ioana Lasc
Status: | Merged |
---|---|
Approved by: | Ioana Lasc |
Approved revision: | 5b56401f928b9826cc81dd1e00d0d757de243595 |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~ilasc/launchpad:add-repack-stats-api |
Merge into: | launchpad:master |
Diff against target: |
72 lines (+50/-0) 2 files modified
lib/lp/code/interfaces/gitrepository.py (+17/-0) lib/lp/code/model/tests/test_gitrepository.py (+33/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson (community) | Approve | ||
Review via email: mp+399851@code.launchpad.net |
Commit message
Add API to see repack stats for one repo
Description of the change
I think the quickest and less computationally expensive way for us to have some visibility into repack data for a repository at the moment is an API.
The proposed endpoint might not be optimal but I figured proposing an attempt via code might be the easiest way for us to start discussing / refining a reasonable approach to this.
To post a comment you must log in.
We could do this, but the attributes in question are just simple ints/datetimes and they aren't secret. Any reason not to just export them as read-only attributes on IGitRepository?