Misha Zatsman [Thu, 24 Apr 2014 20:42:42 +0000 (20:42 +0000)]
Merge branch '2612-workbench-displays-user-storage'
closes #2612
Misha Zatsman [Thu, 24 Apr 2014 20:33:39 +0000 (20:33 +0000)]
Fixed indentation.
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
Misha Zatsman [Thu, 24 Apr 2014 20:11:49 +0000 (20:11 +0000)]
Added link to storage page, replaced tabs with spaces.
Peter Amstutz [Thu, 24 Apr 2014 20:04:59 +0000 (16:04 -0400)]
Wrapped channel callback in exception handler.
Peter Amstutz [Thu, 24 Apr 2014 20:03:21 +0000 (16:03 -0400)]
Websocket tests now use database cleaner instead of ActiveRecord's
transactional fixtures because the transaction needs to commit in order for
NOTIFY/LISTEN to work. Fixed 'log' -> 'logs' table names in eventbus.rb.
First test for publishing an actual database change works.
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
Tom Clegg [Thu, 24 Apr 2014 19:05:51 +0000 (15:05 -0400)]
Merge branch '2409-remove-unused-controllers'
closes #2409
Peter Amstutz [Thu, 24 Apr 2014 18:58:23 +0000 (14:58 -0400)]
Added websocket first tests for connecting and checking API token.
Tom Clegg [Thu, 24 Apr 2014 16:40:39 +0000 (12:40 -0400)]
Add detail about what script_version should look like.
Peter Amstutz [Thu, 24 Apr 2014 15:32:42 +0000 (11:32 -0400)]
Added test runner for websocket tests. Requires passenger standalone to be
installed.
Tom Clegg [Thu, 24 Apr 2014 14:40:59 +0000 (10:40 -0400)]
Fix admin user setup instructions, add some missing "bundle exec",
remove unnecessary "Create an API token" section.
Peter Amstutz [Thu, 24 Apr 2014 13:14:01 +0000 (09:14 -0400)]
Fixed bug whereby readable_by could return duplicate rows if there is more than
one permission granting the ability to read the row.
Reorganized readable_by query a bit to make it easier to follow.
Added test for ownership and permission links when reading entries in the logs table.
Tim Pierce [Thu, 24 Apr 2014 02:35:58 +0000 (22:35 -0400)]
Updated UnixVolume unit tests (refs #2620).
Tim Pierce [Thu, 24 Apr 2014 02:32:47 +0000 (22:32 -0400)]
Moved the MD5 verification check back to GetBlock.
Policy tests such as checksumming belong in the Keep front end. The back
end should be limited to moving data in and out of a volume. (refs #2620)
Tom Clegg [Thu, 24 Apr 2014 01:02:07 +0000 (21:02 -0400)]
Check sanity when applying filters, and provide useful error messages.
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.
Tom Clegg [Wed, 23 Apr 2014 22:35:48 +0000 (18:35 -0400)]
Improve examples, explanations, typography, tests
Tim Pierce [Wed, 23 Apr 2014 22:09:24 +0000 (18:09 -0400)]
Added UnixVolume unit tests. (refs #2620)
Tom Clegg [Wed, 23 Apr 2014 21:31:14 +0000 (17:31 -0400)]
Merge branch 'master' into 2505-update-docs
Conflicts:
.gitignore
Misha Zatsman [Wed, 23 Apr 2014 21:20:57 +0000 (21:20 +0000)]
Added row to display totals.
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
Tom Clegg [Wed, 23 Apr 2014 21:00:39 +0000 (17:00 -0400)]
Rename jresponse test helper to json_response.
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
Misha Zatsman [Wed, 23 Apr 2014 20:54:01 +0000 (20:54 +0000)]
Shortened date display, put long date view in mouseover text.
Tom Clegg [Wed, 23 Apr 2014 20:45:21 +0000 (16:45 -0400)]
Support filters=[["attr","=",nil]]
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
Tom Clegg [Wed, 23 Apr 2014 20:36:41 +0000 (16:36 -0400)]
Add explanation comments to assertions.
Misha Zatsman [Wed, 23 Apr 2014 20:14:38 +0000 (20:14 +0000)]
Made sizes human readable, added measurement date column.
radhika chippada [Wed, 23 Apr 2014 19:01:41 +0000 (15:01 -0400)]
Story 2352: Adding state and components_summary is completed.
radhika chippada [Wed, 23 Apr 2014 18:36:06 +0000 (14:36 -0400)]
Merge branch 'master' into 2352-phased-pipeline-instance-state
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.
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.
Peter Amstutz [Wed, 23 Apr 2014 17:08:31 +0000 (13:08 -0400)]
Merge branch 'master' into origin-2608-websocket-event-bus-alt2
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".
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
Peter Amstutz [Wed, 23 Apr 2014 15:16:27 +0000 (11:16 -0400)]
Merge remote-tracking branch 'origin/master' into origin-2608-websocket-event-bus-alt2
Peter Amstutz [Wed, 23 Apr 2014 15:16:15 +0000 (11:16 -0400)]
Test helper now users ArvadosApiToken rack middleware to set current user.
Peter Amstutz [Wed, 23 Apr 2014 14:57:31 +0000 (10:57 -0400)]
- Added object_owner_uuid to logs table, which records the owner of the object
being described at the time of the log entry. Added migration.
- Added special case permission checks for reading logs table, and added
documentation comments on how permission checks work.
- Eventbus reuses readable_by and record_filters in determining what to publish
so provide consistent behavior between eventbus and regular API queries.
- Put most of apply_where_limit_order_params back into application_controller,
refactored record_filters into lib/
- All of this still needs testing.
Misha Zatsman [Wed, 23 Apr 2014 01:14:31 +0000 (01:14 +0000)]
Working users/storage page!
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.
Tim Pierce [Tue, 22 Apr 2014 21:19:43 +0000 (17:19 -0400)]
Made KeepVolumes a slice of Volume objects, not strings.
Moved more Unix-specific code into volume.go as part of the process.
Peter Amstutz [Tue, 22 Apr 2014 21:12:12 +0000 (17:12 -0400)]
Refactored load_filters_param and apply_where_limit_order_params into lib/
directory so that EventBus can use them. Started adding filtering to EventBus, this is incomplete.
Ward Vandewege [Tue, 22 Apr 2014 21:00:16 +0000 (17:00 -0400)]
Improve wording of the welcome e-mail a bit.
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.
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.
Peter Amstutz [Tue, 22 Apr 2014 19:49:51 +0000 (15:49 -0400)]
Added websocketUrl to discovery document. Workbench websockets testing page
now uses endpoint from discovery discovery document. Also added
ARVADOS_WEBSOCKETS environment variable. If set, server will accept websocket
connections only and do not pass on any other type of requests.
Peter Amstutz [Tue, 22 Apr 2014 19:19:51 +0000 (15:19 -0400)]
Added permission checking to event bus so that it only report changes for
objects that the user has current read permission.
Ward Vandewege [Tue, 22 Apr 2014 19:18:14 +0000 (15:18 -0400)]
Fix test that was expecting a (now) incorrect number of links.
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
radhika chippada [Tue, 22 Apr 2014 18:24:55 +0000 (14:24 -0400)]
Merge branch 'master' into 2352-phased-pipeline-instance-state
Peter Amstutz [Tue, 22 Apr 2014 18:24:03 +0000 (14:24 -0400)]
Moves API token authentication from ApplicationController into ArvadosApiToken Rack middleware.
Rearranges rack middleware stack a bit to accomodate.
radhika chippada [Tue, 22 Apr 2014 18:00:20 +0000 (14:00 -0400)]
Use the renamed components_look_ready? method during migration.
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.
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.
Tom Clegg [Tue, 22 Apr 2014 16:09:00 +0000 (12:09 -0400)]
Add two missing sudo.
Tim Pierce [Tue, 22 Apr 2014 15:20:02 +0000 (11:20 -0400)]
Bug fix: GetBlock must report a CorruptError immediately.
Refs #2620.
Peter Amstutz [Tue, 22 Apr 2014 13:47:38 +0000 (09:47 -0400)]
Moved application-specific code out from rack_socket to lib/eventbus.rb
radhika chippada [Tue, 22 Apr 2014 04:59:53 +0000 (00:59 -0400)]
Set state during save
Tom Clegg [Tue, 22 Apr 2014 04:52:42 +0000 (00:52 -0400)]
Build response objects based on item type rather than list type.
Tom Clegg [Tue, 22 Apr 2014 04:51:56 +0000 (00:51 -0400)]
Add unit test for User#owned_items.
radhika chippada [Tue, 22 Apr 2014 04:20:56 +0000 (00:20 -0400)]
2352: Add state to pipeline_instance. Db migration and unit testing.
Tom Clegg [Tue, 22 Apr 2014 03:55:06 +0000 (23:55 -0400)]
Add docs for owned_items.
Tom Clegg [Tue, 22 Apr 2014 03:50:22 +0000 (23:50 -0400)]
Rename include_managed to include_indirect.
Tom Clegg [Tue, 22 Apr 2014 03:39:20 +0000 (23:39 -0400)]
Support limit and offset params in owned_items.
Tom Clegg [Mon, 21 Apr 2014 21:50:49 +0000 (17:50 -0400)]
Add owned_items action for groups and users.
Peter Amstutz [Mon, 21 Apr 2014 20:53:42 +0000 (16:53 -0400)]
Added code to properly initialize EventMachine to deal with Passenger forking.
Added postgres NOTIFY to ArvadosModel#log_change
Added postgres LISTEN to background thread, which posts a message to the websocket.
Notification works!
Tom Clegg [Mon, 21 Apr 2014 19:46:19 +0000 (15:46 -0400)]
Fill in "I'm in a folder" fixtures
Tom Clegg [Mon, 21 Apr 2014 19:43:34 +0000 (15:43 -0400)]
Improve permission link examples.
Peter Amstutz [Mon, 21 Apr 2014 18:28:33 +0000 (14:28 -0400)]
Proof of concept echo server based on rack middleware that hijacks websocket connections.
Tom Clegg [Mon, 21 Apr 2014 17:46:30 +0000 (13:46 -0400)]
Add some test fixtures that are owned by folders.
Peter Amstutz [Mon, 21 Apr 2014 17:31:39 +0000 (13:31 -0400)]
Websocket event testing page.
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.
Tom Clegg [Mon, 21 Apr 2014 15:32:35 +0000 (11:32 -0400)]
Remove _kind columns from schema.
(Seemingly reintroduced by accident in
cc5023d40182e503e8ba109fc86e09efd6337836)
Tom Clegg [Mon, 21 Apr 2014 15:16:33 +0000 (11:16 -0400)]
Expose generate_uuid class method, e.g., for making test fixtures.
Tom Clegg [Mon, 21 Apr 2014 15:00:10 +0000 (11:00 -0400)]
Add group_class attribute.
Tom Clegg [Sun, 20 Apr 2014 03:14:24 +0000 (23:14 -0400)]
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.
Tom Clegg [Sat, 19 Apr 2014 17:57:47 +0000 (13:57 -0400)]
Hide refresh button on "show pipeline instance" page.
Tom Clegg [Sat, 19 Apr 2014 06:39:11 +0000 (02:39 -0400)]
Fix configuration behavior in Ruby SDK.
API_VERSION is not configuration: it indicates how a client program
expects the API server to behave. (No environment variable or config
file should try to override that.)
Do not invoke insecure behavior unless API_HOST_INSECURE is "1",
"true", or "yes".
If API_HOST and API_TOKEN environment variables are set, do not bother
reading the configuration file at all.
Strip spaces so "API_TOKEN = foo" works in the configuration file.
Tom Clegg [Sat, 19 Apr 2014 03:46:21 +0000 (23:46 -0400)]
Add dependency info to Workbench install page. Fix "is_trusted" recipe.
Tom Clegg [Sat, 19 Apr 2014 02:36:05 +0000 (22:36 -0400)]
Remove updated_at from API responses.
Tom Clegg [Sat, 19 Apr 2014 02:29:00 +0000 (22:29 -0400)]
Describe logins and get_all_logins methods.
Tom Clegg [Sat, 19 Apr 2014 02:24:51 +0000 (22:24 -0400)]
Fix up job create/cancel descriptions.
Tom Clegg [Sat, 19 Apr 2014 02:18:32 +0000 (22:18 -0400)]
Clean up API schema and method pages.
Fill in missing object descriptions.
Remove redundant updated_at attributes.
Move methods sections from schema pages to method pages.
Remove some unnecessary empty sections.
Remove obsolete Commit and CommitAncestor.
Tom Clegg [Sat, 19 Apr 2014 01:23:08 +0000 (21:23 -0400)]
Remove spurious "destroy" methods from API docs.
Tom Clegg [Sat, 19 Apr 2014 01:21:24 +0000 (21:21 -0400)]
Remove spurious "show" methods from API docs.
Tom Clegg [Sat, 19 Apr 2014 01:16:36 +0000 (21:16 -0400)]
Use "filters" instead of "where" in examples and docs. Remove
references to unsupported "q" and "pageToken" parameters.
Tom Clegg [Sat, 19 Apr 2014 01:00:31 +0000 (21:00 -0400)]
Accept minimum_script_version, excluded_script_versions, and
find_or_create flag as parameters to create, instead of treating them
as if they were attributes of the Job resource.
Accept find_or_create as a positive flag, rather than no_reuse as a
negative flag.
Behave as requested by the find_or_create flag even if
nondeterministic=true in the submitted job: i.e., a client can use the
find_or_create feature when submitting a job which itself will never
be reused. (It's up to the client to decide whether this is ever
useful.)
For now, both old and new flag names/locations are accepted and
supplied by API server and arv-run-pipeline-instance respectively.
Tom Clegg [Fri, 18 Apr 2014 23:36:59 +0000 (19:36 -0400)]
Extricate flags controlling jobs.create behavior from the Job resource itself.
Tom Clegg [Fri, 18 Apr 2014 22:27:46 +0000 (18:27 -0400)]
Fix here-doc usage.
Tom Clegg [Fri, 18 Apr 2014 22:27:22 +0000 (18:27 -0400)]
Clean up .gitignore files
Tim Pierce [Fri, 18 Apr 2014 20:54:46 +0000 (16:54 -0400)]
Adding a Volume interface and UnixVolume implementation.
refs #2620
Tim Pierce [Fri, 18 Apr 2014 20:00:59 +0000 (16:00 -0400)]
Reorganize Keep code in preparation for dividing into modules.
Refs #2620
Tom Clegg [Fri, 18 Apr 2014 17:44:11 +0000 (13:44 -0400)]
Add Postgres setup instructions. Fix missing "bundle exec".
Tom Clegg [Fri, 18 Apr 2014 17:08:18 +0000 (13:08 -0400)]
Fix missing --format=uuid, fix obsolete version=repo:commit example.
Tom Clegg [Fri, 18 Apr 2014 16:57:16 +0000 (12:57 -0400)]
Fix up MD5 and Git capitalization/typeface and some Git vocabulary
Tom Clegg [Fri, 18 Apr 2014 16:34:47 +0000 (12:34 -0400)]
Fix up SSH capitalization/typeface
Tom Clegg [Fri, 18 Apr 2014 16:05:49 +0000 (12:05 -0400)]
Add missing </span> tag.
Tom Clegg [Fri, 18 Apr 2014 16:04:27 +0000 (12:04 -0400)]
Add instructions for Ruby and bundler. Add missing dependencies.