[ARVADOS] updated: 5dbf5c8ea2d9eb2bc8e10a03ca625f12ed71f12c

git at public.curoverse.com git at public.curoverse.com
Wed Feb 11 15:59:36 EST 2015


Summary of changes:
 .gitignore                                         |   7 +-
 apps/workbench/.gitignore                          |   1 +
 apps/workbench/Gemfile                             |   6 +-
 apps/workbench/Gemfile.lock                        |   4 +-
 .../workbench/app/assets/javascripts/filterable.js |   6 +-
 .../app/controllers/application_controller.rb      |   6 +-
 .../app/controllers/collections_controller.rb      |  20 +-
 apps/workbench/app/controllers/jobs_controller.rb  |   9 +-
 .../controllers/pipeline_instances_controller.rb   |   5 +
 .../controllers/pipeline_templates_controller.rb   |   5 +
 .../app/controllers/projects_controller.rb         |  29 +-
 .../workbench/app/controllers/search_controller.rb |   3 +-
 apps/workbench/app/helpers/application_helper.rb   |   6 +-
 apps/workbench/app/models/arvados_api_client.rb    |  11 +-
 apps/workbench/app/models/arvados_base.rb          |   2 +-
 apps/workbench/app/models/authorized_key.rb        |   4 +
 apps/workbench/app/models/collection.rb            |   4 -
 apps/workbench/app/models/job.rb                   |   4 -
 apps/workbench/app/views/application/404.html.erb  |  22 +-
 .../views/application/_browser_unsupported.html    |  24 ++
 .../application/_create_new_object_button.html.erb |   7 +
 .../app/views/application/_show_sharing.html.erb   |   9 +
 .../views/application/_title_and_buttons.html.erb  |   6 +-
 .../workbench/app/views/application/index.html.erb |  19 +-
 .../collections/_create_new_object_button.html.erb |   1 +
 .../app/views/collections/_index_tbody.html.erb    |   2 +-
 .../app/views/collections/_show_files.html.erb     | 171 +++++----
 .../views/jobs/_create_new_object_button.html.erb  |   1 +
 .../jobs/_rerun_job_with_options_popup.html.erb    |   6 +-
 .../app/views/jobs/_show_job_buttons.html.erb      |   2 +-
 apps/workbench/app/views/layouts/body.html.erb     |   3 +
 .../pipeline_instances/_running_component.html.erb |   2 +-
 .../views/pipeline_instances/_show_inputs.html.erb |  15 +-
 .../pipeline_instances/_show_tab_buttons.html.erb  |   2 +
 .../app/views/pipeline_instances/show.html.erb     |   4 +-
 .../app/views/pipeline_templates/show.html.erb     |  38 +-
 .../app/views/projects/_show_dashboard.html.erb    |  10 +-
 .../app/views/projects/_show_tab_contents.html.erb | 108 +++---
 apps/workbench/app/views/projects/show.html.erb    |   2 +-
 .../app/views/users/_add_ssh_key_popup.html.erb    |   2 +-
 .../views/users/_create_new_object_button.html.erb |   6 +
 .../app/views/users/_setup_popup.html.erb          |   2 +-
 apps/workbench/app/views/users/welcome.html.erb    |   4 +-
 apps/workbench/config/application.default.yml      |   5 +
 apps/workbench/public/browser_unsupported.js       |  14 +
 .../controllers/application_controller_test.rb     |  37 ++
 .../controllers/collections_controller_test.rb     |  42 ++-
 .../test/controllers/projects_controller_test.rb   |  14 +
 .../test/integration/anonymous_access_test.rb      | 161 +++++++++
 .../test/integration/browser_unsupported_test.rb   |  17 +
 apps/workbench/test/integration/errors_test.rb     |   1 -
 .../integration/filterable_infinite_scroll_test.rb |  14 +-
 .../test/integration/pipeline_instances_test.rb    |  70 ++--
 apps/workbench/test/integration/projects_test.rb   |  28 ++
 .../test/integration/user_manage_account_test.rb   |  25 +-
 apps/workbench/test/integration/websockets_test.rb |   3 +-
 apps/workbench/test/integration_helper.rb          |  17 +-
 apps/workbench/test/performance_test_helper.rb     |   2 +-
 apps/workbench/test/support/remove_file_api.js     |   1 +
 apps/workbench/test/test_helper.rb                 | 126 +++----
 crunch_scripts/crunchutil/subst.py                 |   7 +-
 doc/_config.yml                                    |   1 +
 doc/_includes/_arv_run_redirection.liquid          |  19 +
 doc/api/methods/collections.html.textile.liquid    |   2 +-
 doc/api/methods/groups.html.textile.liquid         |   9 +-
 doc/images/keyfeatures/chooseinputs.png            | Bin 76641 -> 67586 bytes
 doc/images/keyfeatures/collectionpage.png          | Bin 84533 -> 68735 bytes
 doc/images/keyfeatures/dashboard2.png              | Bin 44396 -> 39651 bytes
 doc/images/keyfeatures/graph.png                   | Bin 49127 -> 37727 bytes
 doc/images/keyfeatures/log.png                     | Bin 135214 -> 94845 bytes
 doc/images/keyfeatures/provenance.png              | Bin 67060 -> 53567 bytes
 doc/images/keyfeatures/rerun.png                   | Bin 73314 -> 56872 bytes
 doc/images/keyfeatures/running2.png                | Bin 56959 -> 40453 bytes
 doc/images/keyfeatures/shared.png                  | Bin 62395 -> 46090 bytes
 doc/images/keyfeatures/webupload.png               | Bin 88061 -> 70592 bytes
 doc/images/quickstart/1.png                        | Bin 47239 -> 36164 bytes
 doc/images/quickstart/2.png                        | Bin 74431 -> 58616 bytes
 doc/images/quickstart/3.png                        | Bin 80668 -> 68576 bytes
 doc/images/quickstart/4.png                        | Bin 66686 -> 45334 bytes
 doc/images/quickstart/5.png                        | Bin 83038 -> 66066 bytes
 doc/images/quickstart/6.png                        | Bin 98604 -> 83813 bytes
 doc/images/quickstart/7.png                        | Bin 77820 -> 60031 bytes
 doc/sdk/cli/index.html.textile.liquid              |  44 ++-
 doc/sdk/cli/reference.html.textile.liquid          |  13 +-
 doc/sdk/cli/subcommands.html.textile.liquid        |   7 +-
 doc/user/topics/arv-run.html.textile.liquid        |  20 +-
 .../crunch-tools-overview.html.textile.liquid      |  63 ++++
 doc/user/topics/run-command.html.textile.liquid    |  10 +
 sdk/cli/bin/crunch-job                             |  16 +-
 sdk/go/arvadosclient/arvadosclient.go              |   4 +-
 sdk/go/arvadosclient/arvadosclient_test.go         |  49 +--
 sdk/go/arvadostest/run_servers.go                  | 123 +++++++
 sdk/go/keepclient/keepclient_test.go               |  48 +--
 sdk/go/keepclient/support.go                       |   9 -
 sdk/python/arvados/api.py                          |  16 +-
 sdk/python/arvados/collection.py                   |  27 +-
 sdk/python/arvados/commands/arv_copy.py            |   3 +-
 sdk/python/arvados/commands/put.py                 |  40 ++-
 sdk/python/arvados/commands/ws.py                  |   4 +-
 sdk/python/arvados/errors.py                       |   2 +
 sdk/python/arvados/events.py                       |  85 +++--
 sdk/python/arvados/keep.py                         |  19 +-
 sdk/python/gittaggers.py                           |  20 ++
 sdk/python/setup.py                                |  31 +-
 sdk/python/tests/arvados_testutil.py               |  35 ++
 sdk/python/tests/run_test_server.py                | 395 ++++++++++++++-------
 sdk/python/tests/test_api.py                       |  15 +-
 sdk/python/tests/test_arv_put.py                   |  29 +-
 sdk/python/tests/test_collections.py               |  65 ++--
 sdk/python/tests/test_keep_client.py               |  68 ++--
 sdk/python/tests/test_pipeline_template.py         |  19 +-
 sdk/python/tests/test_websockets.py                |  64 ++--
 sdk/ruby/lib/arvados/keep.rb                       |   5 +-
 sdk/ruby/test/test_keep_manifest.rb                |  66 ++++
 services/api/.gitignore                            |   1 +
 services/api/Gemfile                               |   6 +-
 services/api/Gemfile.lock                          |  20 +-
 .../api/app/controllers/application_controller.rb  |  19 +-
 .../arvados/v1/collections_controller.rb           |   7 +-
 .../controllers/arvados/v1/groups_controller.rb    |  76 ++--
 .../app/controllers/arvados/v1/links_controller.rb |   2 +-
 .../app/controllers/arvados/v1/users_controller.rb |  11 +-
 services/api/app/models/arvados_model.rb           |  26 ++
 services/api/app/models/collection.rb              |  27 +-
 services/api/app/models/database_seeds.rb          |   1 +
 services/api/app/models/user.rb                    |   2 +-
 services/api/config/application.default.yml        |   1 -
 .../db/migrate/20150123142953_full_text_search.rb  |  18 +
 ...203180223_set_group_class_on_anonymous_group.rb |  14 +
 ...206210804_all_users_can_read_anonymous_group.rb |  12 +
 services/api/db/structure.sql                      |  43 ++-
 services/api/lib/current_api_client.rb             | 159 +++++----
 services/api/lib/record_filters.rb                 |  20 +-
 services/api/test/fixtures/collections.yml         |  29 +-
 services/api/test/fixtures/groups.yml              |   5 +-
 services/api/test/fixtures/jobs.yml                |  24 ++
 services/api/test/fixtures/links.yml               |  28 ++
 services/api/test/fixtures/pipeline_instances.yml  |  16 +
 services/api/test/fixtures/pipeline_templates.yml  |  39 ++
 .../arvados/v1/collections_controller_test.rb      |  26 +-
 .../api/test/functional/arvados/v1/filters_test.rb |  41 +++
 .../arvados/v1/groups_controller_test.rb           |  17 +-
 .../api/test/integration/collections_api_test.rb   |  79 ++++-
 services/api/test/integration/groups_test.rb       |  35 ++
 services/api/test/unit/arvados_model_test.rb       |  22 ++
 services/api/test/unit/collection_test.rb          |  47 +++
 services/api/test/unit/link_test.rb                |   5 +
 services/api/test/websocket_runner.rb              |  10 +-
 services/fuse/arvados_fuse/__init__.py             |   4 +-
 services/fuse/gittaggers.py                        |   1 +
 services/fuse/setup.py                             |  33 +-
 services/fuse/tests/test_mount.py                  |  46 ++-
 services/keepproxy/keepproxy_test.go               |  99 ++----
 services/{fuse => nodemanager}/MANIFEST.in         |   0
 services/nodemanager/gittaggers.py                 |   1 +
 services/nodemanager/setup.py                      |  34 +-
 156 files changed, 2550 insertions(+), 1185 deletions(-)
 create mode 100644 apps/workbench/app/views/application/_browser_unsupported.html
 create mode 100644 apps/workbench/app/views/application/_create_new_object_button.html.erb
 create mode 100644 apps/workbench/app/views/collections/_create_new_object_button.html.erb
 create mode 100644 apps/workbench/app/views/jobs/_create_new_object_button.html.erb
 create mode 100644 apps/workbench/app/views/users/_create_new_object_button.html.erb
 create mode 100644 apps/workbench/public/browser_unsupported.js
 create mode 100644 apps/workbench/test/integration/anonymous_access_test.rb
 create mode 100644 apps/workbench/test/integration/browser_unsupported_test.rb
 create mode 100644 apps/workbench/test/support/remove_file_api.js
 create mode 100644 doc/_includes/_arv_run_redirection.liquid
 create mode 100644 doc/user/topics/crunch-tools-overview.html.textile.liquid
 create mode 100644 sdk/go/arvadostest/run_servers.go
 create mode 100644 sdk/python/gittaggers.py
 create mode 100644 services/api/db/migrate/20150123142953_full_text_search.rb
 create mode 100644 services/api/db/migrate/20150203180223_set_group_class_on_anonymous_group.rb
 create mode 100644 services/api/db/migrate/20150206210804_all_users_can_read_anonymous_group.rb
 create mode 120000 services/fuse/gittaggers.py
 copy services/{fuse => nodemanager}/MANIFEST.in (100%)
 create mode 120000 services/nodemanager/gittaggers.py

       via  5dbf5c8ea2d9eb2bc8e10a03ca625f12ed71f12c (commit)
       via  b80db28cdd536077e5effe6c08af079532c2059b (commit)
       via  f16b7abe9b1ae5967ffaab62b9c9ae3f955f44f1 (commit)
       via  148ff097b57571dda1b6db063a2eca5a4eb98a35 (commit)
       via  d3a9326a2c92de950216fb2a88dbbc9de898e4b3 (commit)
       via  6bf9ae122958b25b4a22447f67fb11cf24765d97 (commit)
       via  5923d0fa912c73e3725e52c869d72793304ae44a (commit)
       via  58bf2ad27c760fb7da0641b239f1871918b84a42 (commit)
       via  8676d8d8fe7ea86db75fd9e6f53b07e21437cd6d (commit)
       via  fb181d9653d80317422e1d979697da908fa804c8 (commit)
       via  b599ef92fcfc25045eb6a366907555594496bfad (commit)
       via  67a4825340187c05cbada61d38c12645a17acb65 (commit)
       via  0215bf7b8c61d59462a476d850af999105856177 (commit)
       via  34d6dc1f56b59b7c7cc3e6dc7d54053149c49bc6 (commit)
       via  045bce46ede1995ed17747c48611f22c478cc82d (commit)
       via  d9e2de2e142fe1a79bd83064d8d9135ba44fd807 (commit)
       via  710b03568da92458279db56608cba84cb5151847 (commit)
       via  31e1554c4372d8206618bf7fee48323b08f24ec3 (commit)
       via  9b6b5f0bd2ad96deeea2070a4eba56795bb28c1a (commit)
       via  07f50aff99bbb837c9419e7a931add36d1611e2d (commit)
       via  ae7e8221d669b29ff3e098ac9259afb2875e9d3b (commit)
       via  f6089c82da72f331ba5a44874ce267b18bcaf557 (commit)
       via  a934fcf84acd4cc3a351fde1b6e21a0bd93757ef (commit)
       via  fc8e572937f2fd61bdc1e7f34a2e3f9a5cebd7ff (commit)
       via  d65b683af52e072b3d179b6f32edfbf37e108011 (commit)
       via  c9f5db97ad5d853cc2f4636d0743037f6048ceeb (commit)
       via  f7ec673ce72af1e076408f394b6401e4f253e703 (commit)
       via  b8148b3bcdfc6fe8a8b20e6a4c589b7a50e147a8 (commit)
       via  c882575c856e01313cf2caf2e4ead1f27bfb33ae (commit)
       via  525d5d6351a0610237c52f1564dec5b77cf3af4f (commit)
       via  538caa064785b645a2b8f815bf77a30192b20665 (commit)
       via  9f1fafa8c7c7f3750d6769d863b82cb826d7ed6e (commit)
       via  330a46e91b4ceaefba2bcfc383931eb59c77d461 (commit)
       via  fefce5e8e133a8fa064bbcdf31d85d41dc4a6729 (commit)
       via  204f433a870e2bf1cf7af1fbe076e91f427ef05e (commit)
       via  9b61792d905324a98b24224d45347082efbe5205 (commit)
       via  16b720950262eb559358cf357f5098a142901665 (commit)
       via  e73af668c24cd259800c344c3efe8b7d769903da (commit)
       via  b6a7a62f4f38710f50d08a91a6a9b210700bb011 (commit)
       via  0b102fac0e8d2a7d46d088b1bd8f7b27b325dd2a (commit)
       via  79aca915815d298d2c20546108284627ee6cb84b (commit)
       via  b21b81e6623d025da4d93cbf09d523e63d2e07b0 (commit)
       via  aaffcb23198b4223c48092ccd30ef7152b434187 (commit)
       via  20f5b178a850b029ecd501ed49e4ed0a537c1fad (commit)
       via  fb4921f56d1c13a86add2e59205ec32fa1f6efe4 (commit)
       via  1d4a39ab3e97c031683ada9f6c98e4c7365fa414 (commit)
       via  f6ab9be0046a6f8d760259c1a0eba8ab7c636903 (commit)
       via  231242b6378abda494f2c684995519a259cfe174 (commit)
       via  1963df31ffb7e95b72e53a0ec5c891f539b6dadb (commit)
       via  b59b310e23b588c4007af84741d4b94bc9f595f1 (commit)
       via  e2da84c1fd9052791ed2b684741469570e09ea35 (commit)
       via  d6ec5672045b29aeaf983a78c5487ae354ccb20d (commit)
       via  757212484d9da8bb8d8852bfb6870433d2b4fa97 (commit)
       via  f85132f1a018179b7127c199932c1f0f3e3f76d5 (commit)
       via  2e9f5f1aa841972d1c6d3ff0828d774f60c28307 (commit)
       via  71c05eec3e9c8e6f37f14760b04584a8d4c4372c (commit)
       via  f32690a4a18f85909c0a04de83ecf7819f127df8 (commit)
       via  df507d6cdebca220ac19dbbc5c16d18498cb852c (commit)
       via  4982008e820ed48f362226c61540c18305c6acd6 (commit)
       via  77daa60985c94cf4137c8a54681bb89278db8436 (commit)
       via  bd720586c0152ca4e7d109389bda2c0e463c76bb (commit)
       via  2527b9cd7958d89a5ae0dd84856027908c48ae53 (commit)
       via  dd645c9e973b9b725f310513ce309fa1e1a82421 (commit)
       via  c9e19eb6c3c6889b55c3b63424b36f1139c9abf0 (commit)
       via  f8067dd18b72705f3317e85745e87cffc9e25313 (commit)
       via  cb79358321eff7a49dd4a3fb6e0ea448ead92597 (commit)
       via  cda964acdb8132d90b881e62db008c574fdd5cc4 (commit)
       via  2e5ac62b550f7dd608cf133ae66ef04f801be76b (commit)
       via  b48e7f0c19f1a7256222c220e938832789492aa3 (commit)
       via  7a71d74c538c37437e65f5d22205c224d0fe9207 (commit)
       via  ff49b1144f5b9f9f7624f3741f5af791073de03c (commit)
       via  64c70939c414881de61ac65512701d0ba4068786 (commit)
       via  d13386351c53a261558052bafd5e2308230cb73b (commit)
       via  348801d41f0bd06582675223f07a7ef7f36ac887 (commit)
       via  afef0760e7281eb7038778a12575dfc32b3162f3 (commit)
       via  eab43fcf2826f4416a70bef95c3ae04a77b487c9 (commit)
       via  9b59cd2f10fa44f4cdbf8986b08e92bdde5a62a7 (commit)
       via  1eda4774a59f46296f82231eeb80484aca70a961 (commit)
       via  71a556d7d2a9484a4f0bda069f1f7915f548683f (commit)
       via  9f0f926aa45113a50ed1de737b236e9f69f64079 (commit)
       via  8a8450dcb4dfa4fa222e059091bae03c5e45df3f (commit)
       via  7939a927a2b0584210d5e8b2fe73f7625858d6bd (commit)
       via  54873fcd103e4887e41e987522e4442b62f682ad (commit)
       via  8cd7249b96576285388ef036d04532f72a8f1ee3 (commit)
       via  a94e15cab04a19dcbb02f2e95335e337c8e55036 (commit)
       via  aa613a590c0b03e90432c25f0190adc99ef4f657 (commit)
       via  dd72a4de55681da7b5a95ee8b1e659221c48614f (commit)
       via  0ea383a2924b37b47f2bc82fbe405fce4a03bd1f (commit)
       via  21a824c12633d3775b449ec9b06148546078f1a8 (commit)
       via  c722a8bba1bd155f3e36ef4402f684e36ea3e5ec (commit)
       via  e5b8f6826a2034c0c7d7142cff3fb02f64fb8831 (commit)
       via  12dee1ebfd6a3fca40c19d751459ba6a071c0a3d (commit)
       via  7b9ca2a26b4099e45548d83fc878fe295f2cdc56 (commit)
       via  7acac83d2789b36f0e249a3fde9a8d300f15e152 (commit)
       via  36d6d1609ef342268cc87fc8bfce51bcf7199929 (commit)
       via  e20040092b47f79365637dd8e26156d95ab5c6ee (commit)
       via  a11c56ef66604a9117e3db8c2fa2273c98f88b51 (commit)
       via  5b70a11a08dc26b43b3ec4aef178bafe3a801b86 (commit)
       via  dac304f927000b74d41defcdea26da5d896bfc0c (commit)
       via  1a78ca155b741a08fcf8e0e284bc4da273f084c2 (commit)
       via  4204a3c2bda7378e8664233d3c2410c5efb95a47 (commit)
       via  1147248aa7a30a9a423e7b5b30c6bbb7d4b9bba6 (commit)
       via  1e2e0e4f14a730ba1bbea6a4ced5d87ea2766c35 (commit)
       via  cbf80c08daa5f9099d0821603a128967254709ed (commit)
       via  56ad30382d7d4e11cb0160c5f2e30077e1f41c8b (commit)
       via  b20590222beddb52c8c89294ed3a324c8c7190a2 (commit)
       via  13f83b9374e66e4609aff661b467d747067d66c2 (commit)
       via  64416e4751edfe6c49c0bed8a7e38071200282d8 (commit)
       via  0c8f599d598f36d67daf0e0e39756ba4d064cbd0 (commit)
       via  d1957808f6e3ccece499ac2f4048d4ef850b262c (commit)
       via  1f8fcb0279a7bb2aa9cf1386ff9516da58216d53 (commit)
       via  2cf42c27a7e8b37e29462d0b695e24cb6f3ad5ce (commit)
       via  bd6f17515de33e6eee9631723730fc65125ebad2 (commit)
       via  c58a2c83fa6338358962b8161c576e5391d7bf2b (commit)
       via  9ae339f1aab32d8473f366c7aaa25633a5a49008 (commit)
       via  3d0c0753efb6e2b610d23d16038db218b491a70f (commit)
       via  288413d1c5efcf5d207e0556962740a7759891a1 (commit)
       via  35c50eb231e3ea0f469db136c92ce9bb9d853ac1 (commit)
       via  08b3d5b95216643081c7749bc84a09659d554b7d (commit)
       via  12abd300828412255248e98754b767df5deeba3d (commit)
       via  cad21664e646dd103996dcc36839e77bfd17cdd5 (commit)
       via  fefdb915c4cdf2c2d92061d9221eacd7cac4682f (commit)
       via  de6150af4a477390eb8ba73c2f67c2c46c91a3ef (commit)
       via  bf9d2be7afcc640e18606fa8b9b2e0bc3f2190d1 (commit)
       via  e31b4ee6fa3da212239dfb5a2e4761ff51ed0928 (commit)
       via  e98e77b844dc5a4d2dcfa0752f3bd6b74822d88c (commit)
       via  549f0a0d6f686d1472b6d5bacc3eb85927c915d5 (commit)
       via  fa166d52969bb6f002fb62b554ef227194e0febe (commit)
       via  74b859d9429c1f048f8e71a799d6a44ff3e870d7 (commit)
       via  970766e3167be72c1fe6abdc1609831721dbf62d (commit)
       via  18b5b6fa43e380549c6698b9998990a748a9d3e8 (commit)
       via  56714c8df2f49a5b28ded29402d1af0cb3e45ba1 (commit)
       via  60789154369c7a882561dbecff466787acfef6d5 (commit)
       via  063c5461ff2a709455536c759d849d2f393bda68 (commit)
       via  e0619201d96eb7f9cb8229d1c883f0665d1488ba (commit)
       via  906aa5e3427c1e89e5f426191e33af4b1c27fc7e (commit)
       via  b495d8bd000cc60e2288b93a788aa71cce7f6dec (commit)
       via  4d8209df92198e6207d3d38cbb7a189cb319bf3c (commit)
       via  afabee438a48de83632f0eec51f78a0529b71a0e (commit)
       via  5b7495879ac4e9b34fc989f58aae4773f56bb191 (commit)
       via  1b39a6e15bb68a088f25bb31c31298a1155dc26c (commit)
       via  416c543625bb6a7195a48988dc8f32643ca10aa1 (commit)
       via  4cd97b2cf2035c44762865f10b0f51e3ac807566 (commit)
       via  0d2e6cf379f33188fa19aed9c0c246a2514e9e81 (commit)
       via  9fcabe977798468f2ee896b5f5c1ba6d80703341 (commit)
       via  b9a8de2241fdbc6c69511efc4af318209e4b4942 (commit)
       via  9ea36303cc851a5ffa8d61695c8b4ed14e8954d5 (commit)
       via  89a8208e6f88de78991c654ce001b26519b99f0c (commit)
       via  e1104f98771283a7659eadf881f006e3a3acb4d5 (commit)
       via  17c5cc48844053d6aec318fa3fc8fe95b2cf1b4c (commit)
       via  42fc0557db4117d736b7511a0f785bdfa1d5111e (commit)
       via  7edde4785f7cc325a8c2b109d6fcda176af2650c (commit)
       via  ec27ba2a576189755d443d54213318741f73d125 (commit)
       via  50ab35e7c81a9c1363da289bf76424d669bdf80c (commit)
       via  4bc67f80590ebbfe530d55b9109542f2b404e7b7 (commit)
       via  b23240bded4d76bf953a4f8c499f58d9066c34dc (commit)
       via  33e6d3356af3f7eaa484dbaa7a671aa25f5042e4 (commit)
       via  03428065459077f94f44c53573944f22bda63779 (commit)
       via  9a6559f936fb93f63e163690be4ed670a76dd135 (commit)
       via  64e9180b32bd158e157d3a11325d70b90ce1aeac (commit)
       via  89d4aec69e1b6d8d1f687951f39d8e11f0e66ecf (commit)
       via  96326e988977cd5147dcd4962d6c02bb43e7b330 (commit)
       via  d487907328f3581cd7c93f73729b1e089430523d (commit)
       via  16e6df55c039d4986cdf789b94c62840819beba7 (commit)
       via  7f2c45b1312014831e2efd8aa0fb8a116085b036 (commit)
       via  89fb910b523686fdf725691c44cb4c63ba464487 (commit)
       via  4470ba26b332cb92d347af00cdb26c716b1a6953 (commit)
       via  411ce5bc5bf433c976f55fe001fe5979456207f2 (commit)
       via  876ca8678991e6fdd96872226cf50c92a2e58229 (commit)
       via  332015d1131801b0280aa37aa00eefa5c3c00bd4 (commit)
       via  d01477c59395e6d0895fffe0f60cce6bda9bb083 (commit)
       via  5c1cee516b4d41a355fd40a538cf695325e0b712 (commit)
       via  73d8ff765611e02a44525a75e1b97348ea3dc185 (commit)
       via  a1ad1f1d7ce5edf62945340c34ba5e22a36f1157 (commit)
       via  13181107ecaeaa92e5d96b05270e56b2d807af39 (commit)
       via  62eaf39454cf7d3874691fc59174c546767de89c (commit)
       via  2c447c25f810b52e986649a3f4138c671d066092 (commit)
       via  48580ba7a6608c89e91afad4b73f2861aafbd7b2 (commit)
       via  0d32948a1c78385f9305799c5cb47127492c4320 (commit)
       via  1a462bc4d29fc17cef377d232fc2bf0fd0e72358 (commit)
       via  6b972e1753c0606eade16e98c32f8da2f7678652 (commit)
       via  9f931ff8477f5ba02b53dcc7a8f65032f0a6d013 (commit)
       via  4d1e5c0506cf21824acec1bd8bbf7901b8f4ae6c (commit)
       via  7f6d2dbe9ce1a294b4be897e79d612d8c1db71d0 (commit)
       via  c8f0f0c517af5462c68bcadd72e557e390f1ee19 (commit)
       via  487dc40959c4a7a8838624c6e108236320e79c8d (commit)
       via  b6ca3da4f529dc300f750891022847b071813e57 (commit)
       via  a2e9008a5fcd7669d5cdd33021212ac754288d19 (commit)
       via  0507f73ce83c4a53ce8734f21635928a18d228ad (commit)
       via  cb6a13cdda9c9b8e2c1dbb151c432ec109e14c82 (commit)
       via  934fa5ac0e4da50705739303b55f694a60665529 (commit)
       via  71d9ea52ae12dc80d7062657fc5c059a128106d7 (commit)
       via  94a3addbee3e4a293ba23483dc34ae316d93fbdd (commit)
       via  5dbde597e597b4360584d70eb0dccfc6b48c07d0 (commit)
       via  f9a0cb85f62f1053a9fc1216689b75e6081cf3d7 (commit)
       via  655b69e4285476fbd9df4a88ea53e02ea93fa349 (commit)
       via  774bc42d958174407d74bc3ef44b2840c2f8a05f (commit)
       via  bed95fb1306b0708ae61d1977984944430f01bca (commit)
       via  9af0808e182e297b9c957c93f629016e1517eba1 (commit)
       via  9fb82043d0b69e7d7262b617a4c76ae42b636dab (commit)
       via  1eeb6688285b7415f48b016af27790bf116aa968 (commit)
       via  51f9e6cb1d83249133fa9981cd7b1a882d11964b (commit)
       via  44cbe230042e6fef66f7e05514927f8b51c77657 (commit)
       via  088bc7b980536ee2b27c8abf4bfc09c348000589 (commit)
       via  4215621e0a148252e988088e5836689ca63920a9 (commit)
       via  ae7a6c9ad19ff6936c35ae8c29c08b7adeb835f6 (commit)
       via  5ae2677e5ba023d23d10b2a81c800a007aa80646 (commit)
       via  7d76a3fbfbe15a6813df5d2d4fa111f1b8e62f9c (commit)
       via  a533cde870452a69fd7db28806531475aba81486 (commit)
       via  981c7264123f24a1873f2692a72f012ac43e726b (commit)
       via  9fbf89259b2c4313334a1a2c8f0f30e581cc932e (commit)
       via  316eca14d7f7bafb2e0c24b125dee0befe5bdce6 (commit)
       via  eeebd1e25974beff2455c96100532aaa4dae68fb (commit)
       via  c430a289af3eeed00e220b5658f9d64191798b1c (commit)
       via  6d93d2ecf9c3d75c2b032f0ad9689af6501570e0 (commit)
       via  7349451eb29d3bd972f6f051f1cf14459b3fe14e (commit)
       via  1b01104f5e4a20a3ede82b6d7250814476e23dc9 (commit)
       via  7631b2c9e33a22a9b47fe3396f2f2854745a3ded (commit)
      from  c9ff74363edc2f3271c117184be2d1ad7fad633a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 5dbf5c8ea2d9eb2bc8e10a03ca625f12ed71f12c
Merge: c9ff743 b80db28
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Wed Feb 11 16:01:24 2015 -0500

    Merge branch 'master' into 4904-arv-web
    
    Conflicts:
    	sdk/python/arvados/events.py

diff --cc sdk/python/arvados/events.py
index a26c70a,2686926..09f2a87
--- a/sdk/python/arvados/events.py
+++ b/sdk/python/arvados/events.py
@@@ -58,6 -65,6 +65,7 @@@ class PollClient(threading.Thread)
              self.filters = [[]]
          self.on_event = on_event
          self.poll_time = poll_time
++        self.daemon = True
          self.stop = threading.Event()
  
      def run(self):
@@@ -105,30 -112,36 +113,41 @@@
          del self.filters[self.filters.index(filters)]
  
  
+ def _subscribe_websocket(api, filters, on_event):
+     endpoint = api._rootDesc.get('websocketUrl', None)
+     if not endpoint:
+         raise errors.FeatureNotEnabledError(
+             "Server does not advertise a websocket endpoint")
+     uri_with_token = "{}?api_token={}".format(endpoint, api.api_token)
+     client = EventClient(uri_with_token, filters, on_event)
+     ok = False
+     try:
+         client.connect()
+         ok = True
+         return client
+     finally:
+         if not ok:
+             client.close_connection()
+ 
  def subscribe(api, filters, on_event, poll_fallback=15):
--    '''
-     api: Must be a newly created from arvados.api(cache=False), not shared with the caller, as it may be used by a background thread.
 -    api: a client object retrieved from arvados.api(). The caller should not use this client object for anything else after calling subscribe().
--    filters: Initial subscription filters.
-     on_event: The callback when a message is received
 -    on_event: The callback when a message is received.
--    poll_fallback: If websockets are not available, fall back to polling every N seconds.  If poll_fallback=False, this will return None if websockets are not available.
--    '''
-     ws = None
-     if 'websocketUrl' in api._rootDesc:
-         try:
-             url = "{}?api_token={}".format(api._rootDesc['websocketUrl'], api.api_token)
-             ws = EventClient(url, filters, on_event)
-             ws.connect()
-             return ws
-         except Exception as e:
-             _logger.warn("Got exception %s trying to connect to websockets at %s" % (e, api._rootDesc['websocketUrl']))
-             if ws:
-                 ws.close_connection()
-     if poll_fallback:
-         _logger.warn("Websockets not available, falling back to log table polling")
-         p = PollClient(api, filters, on_event, poll_fallback)
-         p.daemon = True
-         p.start()
-         return p
-     else:
-         _logger.error("Websockets not available")
-         return None
++    """
++    :api:
++      a client object retrieved from arvados.api(). The caller should not use this client object for anything else after calling subscribe().
++    :filters:
++      Initial subscription filters.
++    :on_event:
++      The callback when a message is received.
++    :poll_fallback:
++      If websockets are not available, fall back to polling every N seconds.  If poll_fallback=False, this will return None if websockets are not available.
++    """
++
+     if not poll_fallback:
+         return _subscribe_websocket(api, filters, on_event)
+ 
+     try:
+         return _subscribe_websocket(api, filters, on_event)
+     except Exception as e:
+         _logger.warn("Falling back to polling after websocket error: %s" % e)
+     p = PollClient(api, filters, on_event, poll_fallback)
+     p.start()
+     return p

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list