Merge lp:~gmb/launchpad/bugwatchhistory-db-bug-538091 into lp:launchpad/db-devel
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Stuart Bishop on 2010-03-18 | ||||
| Approved revision: | no longer in the source branch. | ||||
| Merged at revision: | not available | ||||
| Proposed branch: | lp:~gmb/launchpad/bugwatchhistory-db-bug-538091 | ||||
| Merge into: | lp:launchpad/db-devel | ||||
| Diff against target: |
41 lines (+26/-0) 2 files modified
database/schema/comments.sql (+10/-0) database/schema/patch-2207-39-0.sql (+16/-0) |
||||
| To merge this branch: | bzr merge lp:~gmb/launchpad/bugwatchhistory-db-bug-538091 | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Stuart Bishop | 2010-03-12 | Approve on 2010-03-18 | |
| Björn Tillenius | db | 2010-03-15 | Pending |
| Jonathan Lange | db | 2010-03-12 | Pending |
|
Review via email:
|
|||
Commit Message
Add a BugWatchActivity table to the DB.
Description of the Change
This branch adds a BugWatchActivity table to the database. We'll use this table to track the activity history of each bug watch. This will enable us to track failures in updates, both transient and otherwise, and will allow us to provide users with a better UI for helping to fix broken bug watches (amongst other things).
We'll create a job in garbo to prune bug watch activity older than a given time (say, a month) so as to reduce DB bloat.
| Stuart Bishop (stub) wrote : | # |
| Stuart Bishop (stub) wrote : | # |
The OOPS pruner will need to be updated when this table is being used btw. as we shouldn't be removing OOPS codes from disk that have been linked.
| Graham Binns (gmb) wrote : | # |
On 15 March 2010 08:22, Stuart Bishop <email address hidden> wrote:
> The naming seems a little odd. The table appears to only be logging errors, so it is more of an error log than an activity log. If it is logging successes too, then error_type and error_message are the odd names.
It's logging successes to, but when successful error_type and
error_message will be NULL.
We could rename error_message to message, but I'm not sure what we
could call error_type.
| Graham Binns (gmb) wrote : | # |
Hi Stuart, Jono, Bjorn (though I think Bjorn's unavailable this week),
Is there any reason this can't land? I'd like to land it before the end of 10.03 week 2 since we're sprinting on checkwatches in week 3.
| Stuart Bishop (stub) wrote : | # |
Land it. Leave Bjorn's pending review where it is so he can find this and catch up.
| Stuart Bishop (stub) wrote : | # |
> Land it. Leave Bjorn's pending review where it is so he can find this and
> catch up.
Or should I say... land it after I've reviewed it :)
| Stuart Bishop (stub) wrote : | # |
patch-2207-39-0.sql
I personally think 'result' is a better name for error_type, and 'message' or 'description' for error message. Or perhaps result_code and result_message.
Opinions?
| Graham Binns (gmb) wrote : | # |
On 18 March 2010 08:04, Stuart Bishop <email address hidden> wrote:
> Review: Approve
> patch-2207-39-0.sql
>
> I personally think 'result' is a better name for error_type, and 'message' or 'description' for error message. Or perhaps result_code and result_message.
>
> Opinions?
Agreed. 'result' gives us the scope to add success states, too, so we
can track partial successes (e.g. status synced but not comments and
so on), which might come in handy.
Thanks!

The naming seems a little odd. The table appears to only be logging errors, so it is more of an error log than an activity log. If it is logging successes too, then error_type and error_message are the odd names.