Merge lp:~pwlars/uci-engine/webui-open-tickets-fields into lp:uci-engine

Proposed by Paul Larson
Status: Merged
Approved by: Celso Providelo
Approved revision: 912
Merged at revision: 913
Proposed branch: lp:~pwlars/uci-engine/webui-open-tickets-fields
Merge into: lp:uci-engine
Diff against target: 59 lines (+17/-4)
2 files modified
tests/test_webui.py (+2/-1)
webui/tickets/static/tickets/webui.js (+15/-3)
To merge this branch: bzr merge lp:~pwlars/uci-engine/webui-open-tickets-fields
Reviewer Review Type Date Requested Status
Celso Providelo (community) Approve
Review via email: mp+245150@code.launchpad.net

Commit message

Add series and landers columns to the open tickets view

Description of the change

This adds a column for series and landers in the open tickets view

To post a comment you must log in.
Revision history for this message
Celso Providelo (cprov) wrote :

Paul,

Thanks for working on this, having series & landers in the ticket lists is handy and will allow us to play with local/global sorting later.

The existing integration test (test_webui.py/test_home) needs fixing for the new columns, but other than that it looks good for landing.

review: Approve
Revision history for this message
Paul Larson (pwlars) wrote :

> The existing integration test (test_webui.py/test_home) needs fixing for the
> new columns, but other than that it looks good for landing.
The test fix went in r912, did I miss somewhere else that it needs to be fixed?

Revision history for this message
Celso Providelo (cprov) wrote :

No, it's there ... sorry for the misleading tip.

Revision history for this message
Ubuntu CI Bot (uci-bot) wrote :
Download full text (119.3 KiB)

The attempt to merge lp:~pwlars/uci-engine/webui-open-tickets-fields into lp:uci-engine failed. Below is the output from the failed tests.

Running cm...
Updating source dependencies...
Updating source dependencies...
Updating source dependencies...
Updating source dependencies...
Updating source dependencies...
Updating source dependencies...
uploading webui-content.tgz to swift
Updating source dependencies...
Checking juju status
Private PPAs: disabled
Preparing local branch upload...
Uploading local branch, fingerprint a252a3d752dcb92d3684ac9fe5d8d7f9ba6b4b4a
Building charm: lander
Building charm: wsgi-app
Building charm: rabbitmq-worker
Building charm: chroot-builder
Building charm: key-secret-subordinate
Building charm: webui
Building charm: system-image-server
Installing keys from bzr+ssh://bazaar.launchpad.net/~ci-engineering-private/+junk/ci-airline-dev-keys/
Running juju-deployer -v -c /tmp/tmptYs1fc/deployer/relations.yaml -c /tmp/tmptYs1fc/deployer/services.yaml ci-airline
Tests running...
ci-utils.ci_utils.tests.test_amqp.TestAMQP.testConnectFailed ... OK (0.002 secs)
ci-utils.ci_utils.tests.test_amqp.TestAMQP.testProcessQueue ... OK (0.002 secs)
ci-utils.ci_utils.tests.test_amqp.TestAMQP.testRunForever ... OK (0.101 secs)
ci-utils.ci_utils.tests.test_amqp.TestAMQP.testSent ... OK (0.003 secs)
ci-utils.ci_utils.tests.test_amqp.TestProgressTrigger.testProgress ... OK (0.002 secs)
ci-utils.ci_utils.tests.test_amqp_worker.TestAMQPWorker.testCancel ... OK (0.106 secs)
ci-utils.ci_utils.tests.test_amqp_worker.TestAMQPWorker.testNoQueue ... OK (0.003 secs)
ci-utils.ci_utils.tests.test_amqp_worker.TestAMQPWorker.testNoTicket ... OK (0.004 secs)
ci-utils.ci_utils.tests.test_amqp_worker.TestAMQPWorker.testOnMessageCalledProcessError ... OK (0.005 secs)
ci-utils.ci_utils.tests.test_amqp_worker.TestAMQPWorker.testOnMessageFail ... OK (0.002 secs)
ci-utils.ci_utils.tests.test_amqp_worker.TestAMQPWorker.testOnMessageKilled ... OK (0.003 secs)
ci-utils.ci_utils.tests.test_amqp_worker.TestAMQPWorker.testOnMessageSimple ... OK (0.002 secs)
ci-utils.ci_utils.tests.test_amqp_worker.TestAMQPWorker.testOnMessageUnexpected ... OK (0.003 secs)
ci-utils.ci_utils.tests.test_amqp_worker.TestAMQPWorker.testSaveLastRun ... OK (0.001 secs)
ci-utils.ci_utils.tests.test_amqp_worker.TestTimer.testCBRuns ... OK (0.021 secs)
ci-utils.ci_utils.tests.test_amqp_worker.TestTimer.testCanCancel ... OK (0.001 secs)
ci-utils.ci_utils.tests.test_data_store.TestDataStoreConfig.test_invalid_auth_config ... OK (0.000 secs)
ci-utils.ci_utils.tests.test_data_store.TestDataStoreConfig.test_valid_auth_config ... OK (0.000 secs)
ci-utils.ci_utils.tests.test_data_store.TestDataStoreFileName.test_abspath ... OK (0.000 secs)
ci-utils.ci_utils.tests.test_data_store.TestDataStoreFileName.test_basename ... OK (0.000 secs)
ci-utils.ci_utils.tests.test_data_store.TestDataStoreFileName.test_relpath ... OK (0.000 secs)
ci-utils.ci_utils.tests.test_deployer.TestDeployer.test_load_empty_single_config ... OK (0.003 secs)
ci-utils.ci_utils.tests.test_deployer.TestDeployer.test_load_multiple_config ... OK (0.008 secs)
ci-utils.ci_utils.tests.test_deployer.TestDeployer.test_load_single_config .....

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/test_webui.py'
2--- tests/test_webui.py 2014-12-16 20:49:10 +0000
3+++ tests/test_webui.py 2014-12-18 19:10:54 +0000
4@@ -66,7 +66,8 @@
5 dt_header = wait_for(
6 get_element_by_css, 'table.yui3-datatable-table thead')
7 self.assertEqual(
8- ['Title', 'Landing Progress', 'Review Status'],
9+ ['Title', 'Series', 'Landing Progress', 'Review Status',
10+ 'Landers'],
11 [t.text for t in dt_header.find_elements_by_tag_name('th')])
12
13 # A stock YUI paginator is also present.
14
15=== modified file 'webui/tickets/static/tickets/webui.js'
16--- webui/tickets/static/tickets/webui.js 2014-12-09 16:29:55 +0000
17+++ webui/tickets/static/tickets/webui.js 2014-12-18 19:10:54 +0000
18@@ -1016,6 +1016,14 @@
19 return link_it(o);
20 };
21
22+ var format_landers = function (o) {
23+ return o.data.citrain_overlay.landers;
24+ };
25+
26+ var format_series = function (o) {
27+ return o.data.series;
28+ };
29+
30 var format_step = function (o) {
31 var c = Y.Node.create('<div>');
32
33@@ -1053,10 +1061,14 @@
34 columnset: [
35 {key: 'title', label: 'Title',
36 formatter: format_id, allowHTML: true},
37+ {key: 'series', label: 'Series',
38+ formatter: format_series, allowHTML: true},
39 {key: 'current_workflow_step', label: 'Landing Progress',
40 formatter: format_step, allowHTML: true},
41 {key: 'reviews', label: 'Review Status',
42- formatter: format_reviews, allowHTML: true}
43+ formatter: format_reviews, allowHTML: true},
44+ {key: 'landers', label: 'Landers',
45+ formatter: format_landers, allowHTML: true}
46 ],
47 paginator: new Y.PaginatorView({
48 model: new Y.PaginatorModel({
49@@ -1087,8 +1099,8 @@
50 schema: {
51 resultListLocator: 'objects',
52 resultFields: [
53- 'title', 'current_workflow_step', 'status', 'uuid',
54- 'reviews'
55+ 'title', 'citrain_overlay', 'current_workflow_step',
56+ 'series', 'status', 'uuid', 'reviews'
57 ],
58 metaFields: {
59 totalItems: 'meta.total_count'

Subscribers

People subscribed via source and target branches