Merge lp://staging/~cjohnston/qa-dashboard/dashboard-sru-2-sru into lp://staging/qa-dashboard
Proposed by
Chris Johnston
Status: | Rejected |
---|---|
Rejected by: | Chris Johnston |
Proposed branch: | lp://staging/~cjohnston/qa-dashboard/dashboard-sru-2-sru |
Merge into: | lp://staging/qa-dashboard |
Diff against target: |
612 lines (+352/-156) 12 files modified
dashboard/migrations/0014_remove_sru_models.py (+18/-0) dashboard/models.py (+0/-132) dashboard/templatetags/__init__.py (+0/-15) qa_dashboard/settings.py (+1/-0) qa_dashboard/urls.py (+7/-7) sru/management/__init__.py (+14/-0) sru/management/commands/__init__.py (+14/-0) sru/management/commands/jenkins_pull_sru.py (+1/-1) sru/migrations/0001_add_initial_models.py (+136/-0) sru/models.py (+144/-0) sru/tests.py (+16/-0) sru/views.py (+1/-1) |
To merge this branch: | bzr merge lp://staging/~cjohnston/qa-dashboard/dashboard-sru-2-sru |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Joe Talbott | Approve | ||
Chris Johnston | Pending | ||
Review via email: mp+141944@code.staging.launchpad.net |
This proposal supersedes a proposal from 2013-01-04.
Commit message
Moves sru code from dashboard to new sru app
To post a comment you must log in.
Unmerged revisions
- 205. By Chris Johnston
-
requested changes
- 204. By Chris Johnston
-
Fixes indentation
- 203. By Chris Johnston
-
Fixes indentation
- 202. By Chris Johnston
-
Updates SRU
I'd prefer to change have jenkins_get() and friends in common/ management/ __init_ _.py rather than common/helpers.py since that code is only used in management commands.
The sru/migrations/ 0001_initial. py logic needs to test if the table name exists and add it if it doesn't. This means we can't return after each check because none of the other checks will happen. I propose something like this:
table_names = connection. introspection. table_names( )
if 'kernels' not in table_names: create_ table(' kernels' ...
db.
if 'sru_results' not in talbe_names: create_ table(' sru_results' ...
db.