Closed
Bug 1178395
Opened 9 years ago
Closed 8 years ago
Remove the active_status field from most tables
Categories
(Tree Management :: Treeherder, defect, P4)
Tree Management
Treeherder
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: emorley, Assigned: wlach)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Since iirc it's not used anywhere apart from the repository table and the resultset table (for handling missing resultsets).
The intention was to use it to handle data expiration, but we already do per table deletes to avoid the perf issues of cascade deletes (and not using active_status).
In addition, even on the tables where we want to keep it, let's have 2 states (eg "active", "onhold") not three ("active", "onhold", "deleted").
Reporter | ||
Updated•9 years ago
|
Assignee: nobody → emorley
Reporter | ||
Comment 1•9 years ago
|
||
We may end up using active_status as part of bug 1042077, so leaving this for now.
Assignee: emorley → nobody
Priority: P3 → P4
Assignee | ||
Comment 2•8 years ago
|
||
Bug 1282907 took this property out from a bunch of tables.
Assignee | ||
Comment 3•8 years ago
|
||
While working on adding memcache caching for our django models, I was getting errors for some queries being too large (e.g. the jobtype table). While that has other primary causes (and can be worked around by enabling pylibmc compression), it does make me feel like we should just bite the bullet and remove these fields from our reference data models (except for repository, where we do use the value). I'll take this.
Assignee: nobody → wlachance
Comment 4•8 years ago
|
||
Assignee | ||
Updated•8 years ago
|
Attachment #8785365 -
Flags: review?(emorley)
Reporter | ||
Updated•8 years ago
|
Attachment #8785365 -
Flags: review?(emorley) → review+
Comment 5•8 years ago
|
||
Commit pushed to master at https://github.com/mozilla/treeherder
https://github.com/mozilla/treeherder/commit/277b3c3b7ae39bb1076847a2e52053cef1217d65
Bug 1178395 - Remove active status from most reference data tables (#1809)
The field is never updated or used in anything but repository, so let's just
take them out for now.
Assignee | ||
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 6•8 years ago
|
||
(In reply to Ed Morley [:emorley] from comment #0)
> In addition, even on the tables where we want to keep it, let's have 2
> states (eg "active", "onhold") not three ("active", "onhold", "deleted").
Yeah, we could even consider switching to a boolean called "active" for the one remaining table that needs it (repository). To be honest though, I'd be inclined to just leave it as is. It's not really doing any harm being the way it is (it's a very small table).
You need to log in
before you can comment on or make changes to this bug.
Description
•