Closed
Bug 1214015
Opened 10 years ago
Closed 10 years ago
add short_revision and long_revision fields to result_set and revision tables
Categories
(Tree Management :: Treeherder, defect)
Tree Management
Treeherder
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: camd, Assigned: camd)
References
Details
Attachments
(1 file)
These two fields will be used to store:
``short_revision``: 12 char revision SHA
``long_revision``: 40 char revision SHA
These are new to the ``result_set`` table and additions to the ``revision`` field on the ``revisions`` table.
| Assignee | ||
Updated•10 years ago
|
Assignee: nobody → cdawson
| Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8672829 -
Flags: review?(emorley)
Comment 2•10 years ago
|
||
Comment on attachment 8672829 [details] [review]
PR
Travis is failing
Attachment #8672829 -
Flags: review?(emorley)
| Assignee | ||
Comment 3•10 years ago
|
||
Ed- yeah, I just noticed that and fixed it. I was moving too many parts at once. :/
| Assignee | ||
Updated•10 years ago
|
Attachment #8672829 -
Flags: review?(emorley)
Comment 4•10 years ago
|
||
Comment on attachment 8672829 [details] [review]
PR
Left some comments :-)
Attachment #8672829 -
Flags: review?(emorley)
| Assignee | ||
Comment 5•10 years ago
|
||
Comment on attachment 8672829 [details] [review]
PR
Ping pong, back to you. Yeah, agree with making them non-unique. Fixed.
Attachment #8672829 -
Flags: review?(emorley)
Comment 6•10 years ago
|
||
Comment on attachment 8672829 [details] [review]
PR
Looks good :-)
Attachment #8672829 -
Flags: review?(emorley) → review+
Comment 7•10 years ago
|
||
Commit pushed to master at https://github.com/mozilla/treeherder
https://github.com/mozilla/treeherder/commit/36015e28b1b8215b834da274f44bb0288107d82d
Bug 1214015 - add short_revision and long_revision fields to result_set and revision tables
Adds support for storing and searching by either a 12 char or 40 char
revision
On the ``result_set`` table, these fields indicate the short and long
revisions of the top revision for that push.
On the revisions table, eventually, ``short_revision`` will replace the
``revision`` field.
| Assignee | ||
Comment 8•10 years ago
|
||
added fields to stage and production servers. But I haven't yet for heroku.
Ed: is there a documented process for doing that yet?
Status: NEW → ASSIGNED
Flags: needinfo?(emorley)
Comment 9•10 years ago
|
||
For the per-repo tables use |heroku run -- manage.py run_sql -s "SQL STATEMENT;"|
For the treeherder table use mysqlworkbench or the command line client, along with the steps in bug 1165259 comment 1 onwards. (The heroku dynos don't have the command line mysql client installed so |heroku run manage.py dbshell| won't work).
Flags: needinfo?(emorley)
| Assignee | ||
Comment 10•10 years ago
|
||
Thanks Ed! I added all the fields, plus the ``last_modified`` field from another PR that I neglected to update. Man, this is so much nicer than doing the other servers! :)
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•