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
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.
Revision history for this message
Joe Talbott (joetalbott) wrote : Posted in a previous version of this proposal

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:
      db.create_table('kernels'...

   if 'sru_results' not in talbe_names:
      db.create_table('sru_results'...

review: Needs Fixing
Revision history for this message
Chris Johnston (cjohnston) : Posted in a previous version of this proposal
review: Needs Resubmitting
Revision history for this message
Joe Talbott (joetalbott) wrote :

Remove lines 24-93 please.

Line 365 needs inserted 'from django.db import connection'

review: Needs Fixing
Revision history for this message
Joe Talbott (joetalbott) wrote :

Looks good, thanks.

review: Approve
Revision history for this message
Chris Johnston (cjohnston) wrote :
Download full text (3.9 KiB)

The attempt to merge lp:~chrisjohnston/qa-dashboard/dashboard-sru-2-sru into lp:qa-dashboard failed. Below is the output from the failed tests.

Creating test database for alias 'default'...

Traceback (most recent call last):
  File "manage.py", line 26, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 429, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 191, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python2.7/dist-packages/south/management/commands/test.py", line 8, in handle
    super(Command, self).handle(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/core/management/commands/test.py", line 37, in handle
    failures = test_runner.run_tests(test_labels)
  File "/usr/lib/python2.7/dist-packages/django/test/simple.py", line 359, in run_tests
    old_config = self.setup_databases()
  File "/usr/lib/python2.7/dist-packages/django/test/simple.py", line 296, in setup_databases
    test_db_name = connection.creation.create_test_db(self.verbosity, autoclobber=not self.interactive)
  File "/usr/lib/python2.7/dist-packages/django/db/backends/creation.py", line 366, in create_test_db
    load_initial_data=False)
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "/usr/lib/python2.7/dist-packages/south/management/commands/syncdb.py", line 99, in handle_noargs
    management.call_command('migrate', **options)
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 166, in call_command
    return klass.execute(*args, **defaults)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python2.7/dist-packages/south/management/commands/migrate.py", line 105, in handle
    ignore_ghosts = ignore_ghosts,
  File "/usr/lib/python2.7/dist-packages/south/migration/__init__.py", line 191, in migrate_app
    success = migrator.migrate_many(target, workplan, database)
  File "/usr/lib/python2.7/dist-packages/south/migration/migrators.py", line 221, in migrate_many
    result = migrator.__class__.migrate_many(migrator, target, migrations, database)
  File "/usr/lib/python2.7/dist-packages/south/migration/migrators.py", line 292, in migrate_many
    result = self.migrate(migration, database)
  File "/usr/lib/python2.7/dist-packages/south/migration/migrators.py", l...

Read more...

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches