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)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: camd, Assigned: camd)

References

Details

Attachments

(1 file)

47 bytes, text/x-github-pull-request
emorley
: review+
Details | Review
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: nobody → cdawson
Attached file PR
Attachment #8672829 - Flags: review?(emorley)
Comment on attachment 8672829 [details] [review] PR Travis is failing
Attachment #8672829 - Flags: review?(emorley)
Ed- yeah, I just noticed that and fixed it. I was moving too many parts at once. :/
Attachment #8672829 - Flags: review?(emorley)
Comment on attachment 8672829 [details] [review] PR Left some comments :-)
Attachment #8672829 - Flags: review?(emorley)
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 on attachment 8672829 [details] [review] PR Looks good :-)
Attachment #8672829 - Flags: review?(emorley) → review+
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.
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)
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)
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
Blocks: 1079796
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: