arvados.git
10 years agoMerge branch '2640-folder-api'
Tom Clegg [Fri, 25 Apr 2014 14:07:36 +0000 (10:07 -0400)]
Merge branch '2640-folder-api'

refs #2640

Conflicts:
services/api/app/controllers/application_controller.rb
services/api/config/routes.rb

10 years agoRemove "Admin Guide" link from left nav.
Tom Clegg [Fri, 25 Apr 2014 13:53:12 +0000 (09:53 -0400)]
Remove "Admin Guide" link from left nav.

10 years agoFixing indentation. Closes #2688
Misha Zatsman [Thu, 24 Apr 2014 21:01:30 +0000 (21:01 +0000)]
Fixing indentation. Closes #2688

10 years agoMerge branch '2612-workbench-displays-user-storage'
Misha Zatsman [Thu, 24 Apr 2014 20:42:42 +0000 (20:42 +0000)]
Merge branch '2612-workbench-displays-user-storage'
closes #2612

10 years agoFixed indentation.
Misha Zatsman [Thu, 24 Apr 2014 20:33:39 +0000 (20:33 +0000)]
Fixed indentation.

10 years agoMerge branch 'master' of git.curoverse.com:arvados into 2612-workbench-displays-user...
Misha Zatsman [Thu, 24 Apr 2014 20:12:53 +0000 (20:12 +0000)]
Merge branch 'master' of git.curoverse.com:arvados into 2612-workbench-displays-user-storage

10 years agoAdded link to storage page, replaced tabs with spaces.
Misha Zatsman [Thu, 24 Apr 2014 20:11:49 +0000 (20:11 +0000)]
Added link to storage page, replaced tabs with spaces.

10 years agoFix & test edge cases (no script_parameters), fix pipeline instance fixture UUIDs
Tom Clegg [Thu, 24 Apr 2014 19:37:45 +0000 (15:37 -0400)]
Fix & test edge cases (no script_parameters), fix pipeline instance fixture UUIDs

10 years agoMerge branch '2409-remove-unused-controllers'
Tom Clegg [Thu, 24 Apr 2014 19:05:51 +0000 (15:05 -0400)]
Merge branch '2409-remove-unused-controllers'

closes #2409

10 years agoCheck sanity when applying filters, and provide useful error messages.
Tom Clegg [Thu, 24 Apr 2014 01:02:07 +0000 (21:02 -0400)]
Check sanity when applying filters, and provide useful error messages.

10 years agoRemove excess controllers and routes. Add tests to detect accidental future additions.
Tom Clegg [Wed, 23 Apr 2014 23:28:20 +0000 (19:28 -0400)]
Remove excess controllers and routes. Add tests to detect accidental future additions.

10 years agoAdded row to display totals.
Misha Zatsman [Wed, 23 Apr 2014 21:20:57 +0000 (21:20 +0000)]
Added row to display totals.

10 years agoMerge branch 'master' of git.curoverse.com:arvados into 2640-folder-api
Tom Clegg [Wed, 23 Apr 2014 21:06:51 +0000 (17:06 -0400)]
Merge branch 'master' of git.curoverse.com:arvados into 2640-folder-api

Conflicts:
services/api/db/schema.rb
services/api/test/test_helper.rb

10 years agoRename jresponse test helper to json_response.
Tom Clegg [Wed, 23 Apr 2014 21:00:39 +0000 (17:00 -0400)]
Rename jresponse test helper to json_response.

10 years agoMerge branch 'master' of git.curoverse.com:arvados into 2612-workbench-displays-user...
Misha Zatsman [Wed, 23 Apr 2014 20:54:45 +0000 (20:54 +0000)]
Merge branch 'master' of git.curoverse.com:arvados into 2612-workbench-displays-user-storage

10 years agoShortened date display, put long date view in mouseover text.
Misha Zatsman [Wed, 23 Apr 2014 20:54:01 +0000 (20:54 +0000)]
Shortened date display, put long date view in mouseover text.

10 years agoSupport filters=[["attr","=",nil]]
Tom Clegg [Wed, 23 Apr 2014 20:45:21 +0000 (16:45 -0400)]
Support filters=[["attr","=",nil]]

10 years agoAdd tests, rename include_indirect to _linked, improve wording in
Tom Clegg [Wed, 23 Apr 2014 20:39:03 +0000 (16:39 -0400)]
Add tests, rename include_indirect to _linked, improve wording in
docs, improve offset/limit validation

10 years agoAdd explanation comments to assertions.
Tom Clegg [Wed, 23 Apr 2014 20:36:41 +0000 (16:36 -0400)]
Add explanation comments to assertions.

10 years agoMade sizes human readable, added measurement date column.
Misha Zatsman [Wed, 23 Apr 2014 20:14:38 +0000 (20:14 +0000)]
Made sizes human readable, added measurement date column.

10 years agoStory 2352: Adding state and components_summary is completed.
radhika chippada [Wed, 23 Apr 2014 19:01:41 +0000 (15:01 -0400)]
Story 2352: Adding state and components_summary is completed.

10 years agoMerge branch 'master' into 2352-phased-pipeline-instance-state
radhika chippada [Wed, 23 Apr 2014 18:36:06 +0000 (14:36 -0400)]
Merge branch 'master' into 2352-phased-pipeline-instance-state

10 years agoAdded teardown to all tests which resets Thread.current[:user] and friends to
Peter Amstutz [Wed, 23 Apr 2014 17:36:16 +0000 (13:36 -0400)]
Added teardown to all tests which resets Thread.current[:user] and friends to
nil.  Fixed one faulty test that turned up as a result of this change.

10 years agoSecurity bug fix to act_as_system_user to restore correct user if an
Peter Amstutz [Wed, 23 Apr 2014 17:00:03 +0000 (13:00 -0400)]
Security bug fix to act_as_system_user to restore correct user if an
exception is raised.  Also adds tests for act_as_system_user.

Also a minor style cleanup of "== []" to ".empty?" and some additional
checks to test "refuse to activate a user before signing UA".

10 years agoMerge branch 'master' of git.curoverse.com:arvados into 2612-workbench-displays-user...
Misha Zatsman [Wed, 23 Apr 2014 16:11:45 +0000 (16:11 +0000)]
Merge branch 'master' of git.curoverse.com:arvados into 2612-workbench-displays-user-storage

10 years agoWorking users/storage page!
Misha Zatsman [Wed, 23 Apr 2014 01:14:31 +0000 (01:14 +0000)]
Working users/storage page!

10 years agoHave a new view showing users at /users/storage. No storage info yet, but it's a...
Misha Zatsman [Tue, 22 Apr 2014 23:00:00 +0000 (23:00 +0000)]
Have a new view showing users at /users/storage. No storage info yet, but it's a start.

10 years agoImprove wording of the welcome e-mail a bit.
Ward Vandewege [Tue, 22 Apr 2014 21:00:16 +0000 (17:00 -0400)]
Improve wording of the welcome e-mail a bit.

10 years agoUser.full_name should not contain just a space when first_name and
Ward Vandewege [Tue, 22 Apr 2014 20:55:34 +0000 (16:55 -0400)]
User.full_name should not contain just a space when first_name and
last_name are not set.

Add a test for that, too.

10 years agoProperties should not have symbol keys. Our API runs on JSON, which does
Ward Vandewege [Tue, 22 Apr 2014 20:06:00 +0000 (16:06 -0400)]
Properties should not have symbol keys. Our API runs on JSON, which does
not have symbol keys. We want to be consistent in our use of keys, so we
don't use symbol keys within the API server for object properties.

This fixes pre-authenticating users. Again.

10 years agoFix test that was expecting a (now) incorrect number of links.
Ward Vandewege [Tue, 22 Apr 2014 19:18:14 +0000 (15:18 -0400)]
Fix test that was expecting a (now) incorrect number of links.

10 years agoSet default value for
Ward Vandewege [Tue, 22 Apr 2014 19:16:01 +0000 (15:16 -0400)]
Set default value for

  I18n.enforce_available_locales

in config/environments/test.rb.example

10 years agoMerge branch 'master' into 2352-phased-pipeline-instance-state
radhika chippada [Tue, 22 Apr 2014 18:24:55 +0000 (14:24 -0400)]
Merge branch 'master' into 2352-phased-pipeline-instance-state

10 years agoUse the renamed components_look_ready? method during migration.
radhika chippada [Tue, 22 Apr 2014 18:00:20 +0000 (14:00 -0400)]
Use the renamed components_look_ready? method during migration.

10 years agoRename is_ready method to components_look_ready? and add additional tests for state...
radhika chippada [Tue, 22 Apr 2014 17:48:36 +0000 (13:48 -0400)]
Rename is_ready method to components_look_ready? and add additional tests for state change.

10 years agoCreate a can_login link for a new user object, even if there are already
Ward Vandewege [Tue, 22 Apr 2014 17:37:59 +0000 (13:37 -0400)]
Create a can_login link for a new user object, even if there are already
stray can_login link objects for another user object with the same
e-mail address in the database. Add a test for that scenario, too.

10 years agoSet state during save
radhika chippada [Tue, 22 Apr 2014 04:59:53 +0000 (00:59 -0400)]
Set state during save

10 years agoBuild response objects based on item type rather than list type.
Tom Clegg [Tue, 22 Apr 2014 04:52:42 +0000 (00:52 -0400)]
Build response objects based on item type rather than list type.

10 years agoAdd unit test for User#owned_items.
Tom Clegg [Tue, 22 Apr 2014 04:51:56 +0000 (00:51 -0400)]
Add unit test for User#owned_items.

10 years ago2352: Add state to pipeline_instance. Db migration and unit testing.
radhika chippada [Tue, 22 Apr 2014 04:20:56 +0000 (00:20 -0400)]
2352: Add state to pipeline_instance. Db migration and unit testing.

10 years agoAdd docs for owned_items.
Tom Clegg [Tue, 22 Apr 2014 03:55:06 +0000 (23:55 -0400)]
Add docs for owned_items.

10 years agoRename include_managed to include_indirect.
Tom Clegg [Tue, 22 Apr 2014 03:50:22 +0000 (23:50 -0400)]
Rename include_managed to include_indirect.

10 years agoSupport limit and offset params in owned_items.
Tom Clegg [Tue, 22 Apr 2014 03:39:20 +0000 (23:39 -0400)]
Support limit and offset params in owned_items.

10 years agoAdd owned_items action for groups and users.
Tom Clegg [Mon, 21 Apr 2014 21:50:49 +0000 (17:50 -0400)]
Add owned_items action for groups and users.

10 years agoFill in "I'm in a folder" fixtures
Tom Clegg [Mon, 21 Apr 2014 19:46:19 +0000 (15:46 -0400)]
Fill in "I'm in a folder" fixtures

10 years agoImprove permission link examples.
Tom Clegg [Mon, 21 Apr 2014 19:43:34 +0000 (15:43 -0400)]
Improve permission link examples.

10 years agoAdd some test fixtures that are owned by folders.
Tom Clegg [Mon, 21 Apr 2014 17:46:30 +0000 (13:46 -0400)]
Add some test fixtures that are owned by folders.

10 years agoSet :null=>false explicitly on timestamp columns.
Tom Clegg [Mon, 21 Apr 2014 16:15:56 +0000 (12:15 -0400)]
Set :null=>false explicitly on timestamp columns.

New versions of Rails do this automatically, but dev instances keep
having edit wars because some of them have never been told to add the
not-null constraint.

10 years agoRemove _kind columns from schema.
Tom Clegg [Mon, 21 Apr 2014 15:32:35 +0000 (11:32 -0400)]
Remove _kind columns from schema.

(Seemingly reintroduced by accident in
cc5023d40182e503e8ba109fc86e09efd6337836)

10 years agoExpose generate_uuid class method, e.g., for making test fixtures.
Tom Clegg [Mon, 21 Apr 2014 15:16:33 +0000 (11:16 -0400)]
Expose generate_uuid class method, e.g., for making test fixtures.

10 years agoAdd group_class attribute.
Tom Clegg [Mon, 21 Apr 2014 15:00:10 +0000 (11:00 -0400)]
Add group_class attribute.

10 years agoFix failing test in 8d6efcbfb559e377a8f21873b736390035bc44ed.
Tom Clegg [Sun, 20 Apr 2014 03:14:24 +0000 (23:14 -0400)]
Fix failing test in 8d6efcbfb559e377a8f21873b736390035bc44ed.

10 years agoPermit a job to update its output and log attributes even if those
Tom Clegg [Sun, 20 Apr 2014 02:50:54 +0000 (22:50 -0400)]
Permit a job to update its output and log attributes even if those
collections have not yet been registered with apiserver.

10 years agoHide refresh button on "show pipeline instance" page.
Tom Clegg [Sat, 19 Apr 2014 17:57:47 +0000 (13:57 -0400)]
Hide refresh button on "show pipeline instance" page.

10 years agoReorganize Keep code in preparation for dividing into modules.
Tim Pierce [Fri, 18 Apr 2014 20:00:59 +0000 (16:00 -0400)]
Reorganize Keep code in preparation for dividing into modules.

Refs #2620

10 years agoMerge branch 'master' of git.clinicalfuture.com:arvados
Peter Amstutz [Thu, 17 Apr 2014 15:17:47 +0000 (11:17 -0400)]
Merge branch 'master' of git.clinicalfuture.com:arvados

Conflicts:
apps/workbench/app/helpers/application_helper.rb

10 years agoThumbnail behavior now conforms to original story
Peter Amstutz [Thu, 17 Apr 2014 14:06:36 +0000 (10:06 -0400)]
Thumbnail behavior now conforms to original story
Added documentation to a few methods

10 years agoMerge branch '2596-refactor-pipeline-create'
Tom Clegg [Thu, 17 Apr 2014 14:06:25 +0000 (10:06 -0400)]
Merge branch '2596-refactor-pipeline-create'

closes #2596

10 years agoMerge remote-tracking branch 'origin/master' into 1971-show-image-thumbnails
Peter Amstutz [Thu, 17 Apr 2014 12:50:39 +0000 (08:50 -0400)]
Merge remote-tracking branch 'origin/master' into 1971-show-image-thumbnails

10 years agoFix errant use of symbol vs. string
Tom Clegg [Thu, 17 Apr 2014 01:48:47 +0000 (21:48 -0400)]
Fix errant use of symbol vs. string

10 years agoFix unwarranted use of instance variable.
Tom Clegg [Thu, 17 Apr 2014 00:43:56 +0000 (20:43 -0400)]
Fix unwarranted use of instance variable.

10 years agoMerge back-to-back condition blocks with the same condition.
Tom Clegg [Thu, 17 Apr 2014 00:42:51 +0000 (20:42 -0400)]
Merge back-to-back condition blocks with the same condition.

10 years agoMerge branch 'master' into 2596-refactor-pipeline-create
Tom Clegg [Thu, 17 Apr 2014 00:38:28 +0000 (20:38 -0400)]
Merge branch 'master' into 2596-refactor-pipeline-create

Conflicts:
apps/workbench/app/helpers/application_helper.rb

10 years agoRemove bootstrap_components logic from Workbench, now that it happens
Tom Clegg [Thu, 17 Apr 2014 00:21:42 +0000 (20:21 -0400)]
Remove bootstrap_components logic from Workbench, now that it happens
automatically on the API server side.

10 years agoFix, and tests for, PipelineInstance#bootstrap_components
Tom Clegg [Thu, 17 Apr 2014 00:19:45 +0000 (20:19 -0400)]
Fix, and tests for, PipelineInstance#bootstrap_components

10 years agoMerge branch '2449-keep-index-status-handlers'
Tim Pierce [Wed, 16 Apr 2014 18:57:51 +0000 (14:57 -0400)]
Merge branch '2449-keep-index-status-handlers'

Closes #2449, closes #2603, closes #2561.

10 years agoIncreased wait time on capybara test to reduce chance of failure.
Peter Amstutz [Wed, 16 Apr 2014 18:29:22 +0000 (14:29 -0400)]
Increased wait time on capybara test to reduce chance of failure.

10 years agoMerge branch '2376-show-collection-tags-everywhere'
Peter Amstutz [Wed, 16 Apr 2014 18:11:44 +0000 (14:11 -0400)]
Merge branch '2376-show-collection-tags-everywhere'

Conflicts:
apps/workbench/app/controllers/actions_controller.rb

10 years agoCheck that specified Keep volumes actually exist.
Tim Pierce [Wed, 16 Apr 2014 17:45:22 +0000 (13:45 -0400)]
Check that specified Keep volumes actually exist.

Incorporates code review for #2449. Refs #2561.

10 years agoFixed error reporting when head/tail_uuid don't match head/tail_kind for links.
Peter Amstutz [Wed, 16 Apr 2014 13:48:57 +0000 (09:48 -0400)]
Fixed error reporting when head/tail_uuid don't match head/tail_kind for links.
Added a couple more tests.

10 years agoMerge branch '2488-jobs-pipeline-doc'
Peter Amstutz [Wed, 16 Apr 2014 12:48:16 +0000 (08:48 -0400)]
Merge branch '2488-jobs-pipeline-doc'

10 years agoFixed typo in application_helper.rb
Peter Amstutz [Wed, 16 Apr 2014 12:42:54 +0000 (08:42 -0400)]
Fixed typo in application_helper.rb
Removed commented out line in application.html.erb

10 years agoMerge branch 'master' into 2449-keep-index-status-handlers
Tim Pierce [Tue, 15 Apr 2014 21:20:12 +0000 (17:20 -0400)]
Merge branch 'master' into 2449-keep-index-status-handlers

10 years agoAdd a device_num field to status.json output.
Tim Pierce [Tue, 15 Apr 2014 21:18:22 +0000 (17:18 -0400)]
Add a device_num field to status.json output.

Include the underlying device number (as returned by stat(2)) in
status.json output, so clients can see if two Keep directories are
located on the same underlying volume. Refs #2561.

10 years agoParameterize the 'arv' command so that it can be specified with an environment
Peter Amstutz [Tue, 15 Apr 2014 21:10:02 +0000 (17:10 -0400)]
Parameterize the 'arv' command so that it can be specified with an environment
variable to make it easier to run with the right environment for development.

10 years agoAdded IsValidLocator to filter /index output.
Tim Pierce [Tue, 15 Apr 2014 20:46:57 +0000 (16:46 -0400)]
Added IsValidLocator to filter /index output.

IndexHandler should skip metadata files and anything else that isn't a
valid locator, so call IsValidLocator before including the file in the
index output. Refs #2561.

10 years agoMerge branch 'master' into 2596-refactor-pipeline-create
Tom Clegg [Tue, 15 Apr 2014 17:47:52 +0000 (13:47 -0400)]
Merge branch 'master' into 2596-refactor-pipeline-create

Conflicts:
apps/workbench/test/functional/users_controller_test.rb
services/api/app/controllers/arvados/v1/jobs_controller.rb
services/api/test/functional/arvados/v1/links_controller_test.rb

10 years agoEnsure created/modified/updated_at are correct, add tests.
Tom Clegg [Tue, 15 Apr 2014 17:36:12 +0000 (13:36 -0400)]
Ensure created/modified/updated_at are correct, add tests.

10 years agoUpdate local copy of updated_at if the server provides it.
Tom Clegg [Tue, 15 Apr 2014 17:03:44 +0000 (13:03 -0400)]
Update local copy of updated_at if the server provides it.

10 years agoAdd tests, enable environments/test.rb to prevent CSRF checks in tests
Tom Clegg [Tue, 15 Apr 2014 16:22:57 +0000 (12:22 -0400)]
Add tests, enable environments/test.rb to prevent CSRF checks in tests

10 years agoFix exception when valid token points to missing user
Tom Clegg [Sun, 13 Apr 2014 19:38:00 +0000 (15:38 -0400)]
Fix exception when valid token points to missing user

10 years agoAdd tests to expose some token handling bugs.
Tom Clegg [Sun, 13 Apr 2014 05:39:35 +0000 (01:39 -0400)]
Add tests to expose some token handling bugs.

10 years agoMove test-api-server framework so it works in functional and unit tests too.
Tom Clegg [Sun, 13 Apr 2014 05:33:33 +0000 (01:33 -0400)]
Move test-api-server framework so it works in functional and unit tests too.

10 years agoAdd token that is valid except that it points to a missing user.
Tom Clegg [Sun, 13 Apr 2014 05:15:23 +0000 (01:15 -0400)]
Add token that is valid except that it points to a missing user.

10 years agoSend HTTP 500 if we end up in render_error without a more specific status.
Tom Clegg [Sun, 13 Apr 2014 05:14:05 +0000 (01:14 -0400)]
Send HTTP 500 if we end up in render_error without a more specific status.

10 years agoJob reuse bugfix: do not reuse completed jobs that have NULL output.
Peter Amstutz [Tue, 15 Apr 2014 15:11:49 +0000 (11:11 -0400)]
Job reuse bugfix: do not reuse completed jobs that have NULL output.

10 years agoAdded thumbnail option to #link_to_if_arvados_object, enabled on pipeline instance...
Peter Amstutz [Tue, 15 Apr 2014 14:58:13 +0000 (10:58 -0400)]
Added thumbnail option to #link_to_if_arvados_object, enabled on pipeline instance and job pages.
Refactored #is_image and #file_path to CollectionsHelper.

10 years agoMerge branch '2376-show-collection-tags-everywhere' into 1971-show-image-thumbnails
Peter Amstutz [Tue, 15 Apr 2014 14:04:54 +0000 (10:04 -0400)]
Merge branch '2376-show-collection-tags-everywhere' into 1971-show-image-thumbnails

Conflicts:
apps/workbench/app/controllers/actions_controller.rb
apps/workbench/app/views/collections/_show_files.html.erb

10 years agoMerge branch 'master' into 1971-show-image-thumbnails
Peter Amstutz [Tue, 15 Apr 2014 14:02:02 +0000 (10:02 -0400)]
Merge branch 'master' into 1971-show-image-thumbnails

Conflicts:
apps/workbench/app/views/collections/_show_files.html.erb

10 years agoMerge branch '2388-bogus-token-error-page'
Tom Clegg [Tue, 15 Apr 2014 03:56:04 +0000 (23:56 -0400)]
Merge branch '2388-bogus-token-error-page'

closes #2388

10 years agoMerge branch 'master' into 1776-setup-user-email
radhika chippada [Tue, 15 Apr 2014 01:51:04 +0000 (21:51 -0400)]
Merge branch 'master' into 1776-setup-user-email

10 years agoMerge branch 'master' into 2449-keep-index-status-handlers
Tim Pierce [Mon, 14 Apr 2014 20:41:33 +0000 (16:41 -0400)]
Merge branch 'master' into 2449-keep-index-status-handlers

10 years agoMerge branch '2449-keep-write-blocks'
Tim Pierce [Mon, 14 Apr 2014 20:39:52 +0000 (16:39 -0400)]
Merge branch '2449-keep-write-blocks'

Closes #2449, closes #2292, closes #2507.

10 years agoDo not blow up when HOME is not set.
Ward Vandewege [Mon, 14 Apr 2014 20:31:07 +0000 (16:31 -0400)]
Do not blow up when HOME is not set.

10 years agoJavascript to replace <span> tags used for labels to square brackets for
Peter Amstutz [Mon, 14 Apr 2014 20:29:34 +0000 (16:29 -0400)]
Javascript to replace <span> tags used for labels to square brackets for
selection lists that can't handle HTML.
Some output sanitization in case a tag has HTML in it.

10 years agoAdded rudimentary GetNodeStatus test. (refs #2561)
Tim Pierce [Mon, 14 Apr 2014 19:54:26 +0000 (15:54 -0400)]
Added rudimentary GetNodeStatus test. (refs #2561)

Added GetNodeStatus unit test.
Revised structure of NodeStatus struct to reflect the desired output format.

10 years agoMerge branch 'master' into 1776-setup-user-email
radhika chippada [Mon, 14 Apr 2014 19:38:32 +0000 (15:38 -0400)]
Merge branch 'master' into 1776-setup-user-email

Conflicts:
services/api/app/controllers/arvados/v1/users_controller.rb

10 years agoMerge branch '2449-keep-write-blocks' into 2449-keep-index-status-handlers
Tim Pierce [Mon, 14 Apr 2014 19:23:34 +0000 (15:23 -0400)]
Merge branch '2449-keep-write-blocks' into 2449-keep-index-status-handlers

10 years agoMerge branch 'master' into 2449-keep-write-blocks
Tim Pierce [Mon, 14 Apr 2014 19:23:04 +0000 (15:23 -0400)]
Merge branch 'master' into 2449-keep-write-blocks

10 years agoReverted Gemfile.lock
Peter Amstutz [Mon, 14 Apr 2014 18:50:41 +0000 (14:50 -0400)]
Reverted Gemfile.lock