Tom Clegg [Tue, 3 Feb 2015 19:27:10 +0000 (14:27 -0500)]
2659: Toggle features according to editable? and creatable? instead of current_user.is_active. Fix up whitespace.
Tom Clegg [Tue, 3 Feb 2015 19:14:43 +0000 (14:14 -0500)]
2659: Fix indentation.
Tom Clegg [Tue, 3 Feb 2015 19:13:52 +0000 (14:13 -0500)]
2659: Use Collection.creatable? to toggle selection actions.
Tom Clegg [Tue, 3 Feb 2015 18:56:32 +0000 (13:56 -0500)]
2659: Reload seeds (system_user et al.) after cache is cleared. Be more careful about errors while creating seeds.
Brett Smith [Tue, 3 Feb 2015 18:41:31 +0000 (13:41 -0500)]
5087: API server uses a crunch-job with bugfix.
Refs #5087.
Tom Clegg [Tue, 3 Feb 2015 18:34:34 +0000 (13:34 -0500)]
2659: Set group_class=role on anonymous group, change name to "Anonymous users".
Tom Clegg [Tue, 3 Feb 2015 16:44:51 +0000 (11:44 -0500)]
2659: Fix crash in /users/current when not logged in.
Tom Clegg [Tue, 3 Feb 2015 16:18:56 +0000 (11:18 -0500)]
2659: Fix up 404 page.
Tom Clegg [Tue, 3 Feb 2015 15:40:13 +0000 (10:40 -0500)]
2659: Fix crashes when current_user is nil.
Tom Clegg [Tue, 3 Feb 2015 15:29:42 +0000 (10:29 -0500)]
2659: Send anonymous token as a reader token with all requests.
Radhika Chippada [Tue, 3 Feb 2015 15:20:45 +0000 (10:20 -0500)]
2659: Finally understood the mystery behind the "anonymous tests are failing when run with all other tests".
There is a permission link fixture for anonymous group. I needed to create read permission link for anonymous user.
(Tom thinks) the groups permission cache may be getting out of sync somehow.
Radhika Chippada [Tue, 3 Feb 2015 13:33:29 +0000 (08:33 -0500)]
2659: Expect redirect to login page when show method is executed in jobs controller etc when no anonymous configuration is set.
Something is overriding the configured value from application.default.yml when the test is executed along with all other tests!
Radhika Chippada [Tue, 3 Feb 2015 13:08:09 +0000 (08:08 -0500)]
2659: fix test assertion
Radhika Chippada [Tue, 3 Feb 2015 12:00:30 +0000 (07:00 -0500)]
2659: enable anonymous user config in test environment.
Radhika Chippada [Tue, 3 Feb 2015 05:14:17 +0000 (00:14 -0500)]
2659: add a "you are not logged in" warning in 404 page.
Radhika Chippada [Tue, 3 Feb 2015 03:40:29 +0000 (22:40 -0500)]
Merge branch 'master' into 2659-anonymous-share-projects
Radhika Chippada [Tue, 3 Feb 2015 03:39:34 +0000 (22:39 -0500)]
2659: skip require_thread_api_token filter only when anonymous config enabled.
Radhika Chippada [Mon, 2 Feb 2015 23:23:16 +0000 (18:23 -0500)]
2659: Do not require login for project tab_counts method as well.
Remove anonymous login tests for /users and /groups pages since we are no longer doing session establishment for anonymous user login.
These are like any other un-shared pages and show login page to user.
Radhika Chippada [Mon, 2 Feb 2015 22:15:55 +0000 (17:15 -0500)]
2659: load @prov_svg outside of the 'if current_user' block so that an anonymous user can see the provenance graph when accessing publicly accessible collection.
Radhika Chippada [Mon, 2 Feb 2015 21:39:46 +0000 (16:39 -0500)]
2659: prevent nil exception when a content hash link is clicked by anonymous user
Radhika Chippada [Mon, 2 Feb 2015 20:50:29 +0000 (15:50 -0500)]
2659: anonymous token handling in api client updated
Radhika Chippada [Mon, 2 Feb 2015 20:20:22 +0000 (15:20 -0500)]
2659: no need for permit_anonymous_browsing_for_public_data filter; instead, directly use the anonymous token in arvados_api_client.
Radhika Chippada [Mon, 2 Feb 2015 20:06:31 +0000 (15:06 -0500)]
2659: is_anonymous helper method is not needed anymore.
Radhika Chippada [Mon, 2 Feb 2015 20:00:56 +0000 (15:00 -0500)]
2659: do not include "You are viewing public data" in topnav when anonymous user is accessing a shared project.
Ward Vandewege [Mon, 2 Feb 2015 19:50:02 +0000 (14:50 -0500)]
Documentation cleanup: CLI SDK:
- merge some information from the wiki.
- reorganize things a bit.
No issue #
Tom Clegg [Mon, 2 Feb 2015 19:36:46 +0000 (14:36 -0500)]
3021: Use `passenger stop` to shut down passenger. Restore database fixtures after running DatabaseCleaner-powered tests.
Radhika Chippada [Mon, 2 Feb 2015 19:30:21 +0000 (14:30 -0500)]
2659: instead of setting up a session as anonymous user, just use anonymous token to serve publicly accessible resources.
Radhika Chippada [Mon, 2 Feb 2015 13:46:44 +0000 (08:46 -0500)]
2659: add some more text assertions; several of the same tests are failing quite consistently when run with the entire test suite.
Radhika Chippada [Mon, 2 Feb 2015 12:08:28 +0000 (07:08 -0500)]
2659: remove most of the user-based tests since they are covered in other test files to make the test cases as minimal as possible.
Tom Clegg [Mon, 2 Feb 2015 08:41:27 +0000 (03:41 -0500)]
3021: gitignore **/vendor
Tom Clegg [Mon, 2 Feb 2015 08:10:56 +0000 (03:10 -0500)]
3021: Use run_test_server.py instead of the special workbench way of starting an API server.
Radhika Chippada [Mon, 2 Feb 2015 05:42:19 +0000 (00:42 -0500)]
2659: slightly improved test flows
Tom Clegg [Mon, 2 Feb 2015 01:13:48 +0000 (20:13 -0500)]
3021: Round up various implementations of "run test servers" into an arvadostest module. Update to work with new run_test_server.py.
* Get the API host, port, and admin token from the run_test_server.py
--auth output, instead of guessing localhost:3000 etc.
* Fix race condition in proxy TestPutAskGetForbidden: set up the
client first, then switch back to a real token for the server to
use, instead of hoping the server grabs its token before sleep(0.1)
returns and we sabotage the environment with a bogus one.
Tom Clegg [Mon, 2 Feb 2015 00:48:09 +0000 (19:48 -0500)]
3021: Refactor run_test_server.
* Always start API server with both https:// and wss:// enabled. Use
mocks to test the websocket-not-available case.
* Leave the API server running between tests; just hit reset() when
needed. Wait until exiting the process to stop the server.
* Do not use rake (tmp:cache:clear, db:test:load, db:fixtures:load) to
reset the API server's database before starting up a new
server. Instead, call /database/reset after starting it. (If that
doesn't work, crash instead of proceeding with undefined results.)
* If a parent process has already started an API server and put its
endpoint in ARVADOS_TEST_API_HOST, use that instead of starting a
new one, and leave it running at exit.
* Start servers on random port numbers, so [some] test suites can run
concurrently with others on a single host (assuming they're
configured to use different databases).
Radhika Chippada [Mon, 2 Feb 2015 05:11:33 +0000 (00:11 -0500)]
2659: add completed job fixture in publicly accessible project and test assertions for re-run job button for it.
Radhika Chippada [Mon, 2 Feb 2015 01:22:42 +0000 (20:22 -0500)]
2659: (1) Update link_to_if_arvados_object method to display an object name as link for User type only when the user is active.
Otherwise, an anonymous user will always see 404 when such a link is clicked.
(2) In the unlikely event of an anonymous user traversing to /users or /groups pages, there will be an 'Add a new xxx' link,
which is undesirable (even though they do eventually fail when accessed). Hence, hide them for inactive users.
(3) Add test assertions for both the updates.
Tom Clegg [Mon, 2 Feb 2015 00:21:02 +0000 (19:21 -0500)]
3021: Propagate unhandled exceptions back to the caller instead of returning None. Show a warning message only when falling back to polling.
Tom Clegg [Mon, 2 Feb 2015 00:15:51 +0000 (19:15 -0500)]
3021: Add comment about IPv4/IPv6 trap in websocket client.
Radhika Chippada [Sun, 1 Feb 2015 20:09:23 +0000 (15:09 -0500)]
2659: It appears that a job's log file is stored in a user's Home project, instead of the project in which the job originated from.
Due to this, when an anonymous user accesses the job from the publicly accessible project, the Log tab is failing.
Hence, display job -> Log tab for active users only.
Radhika Chippada [Sun, 1 Feb 2015 17:42:47 +0000 (12:42 -0500)]
2659: show job cancel button only when user is_active.
Radhika Chippada [Sun, 1 Feb 2015 17:15:46 +0000 (12:15 -0500)]
2659: more asserts in dashboard testing
Radhika Chippada [Sun, 1 Feb 2015 16:40:38 +0000 (11:40 -0500)]
2659: trailing white space
Radhika Chippada [Sun, 1 Feb 2015 16:38:45 +0000 (11:38 -0500)]
Merge branch 'master' into 2659-anonymous-share-projects
Radhika Chippada [Sun, 1 Feb 2015 16:30:40 +0000 (11:30 -0500)]
2659: Collection show_files shows selection dropdown (which has only create new collection from selected files option) when user is active.
Also, dashboard displays the 'Run a pipeline' selector for active users. Upated anonymous user test to verify dashboard access.
Brett Smith [Sun, 1 Feb 2015 16:22:42 +0000 (11:22 -0500)]
5037: Fix tearDown error handling in PySDK Websockets test.
I accidentally broke this in
51f9e6cb. That version would crash if
the test failed to assign self.ws. Refactor to be more robust in that
case. No issue #.
Radhika Chippada [Sun, 1 Feb 2015 04:01:31 +0000 (23:01 -0500)]
2659: hide job re-run button when user is inactive and add fixtures and tests for anonymous user to access tabs in publicly accessible project.
Tom Clegg [Sat, 31 Jan 2015 08:52:51 +0000 (03:52 -0500)]
5011: 3410: Export client-specified redundancy as replication_desired.
Tom Clegg [Fri, 30 Jan 2015 23:34:26 +0000 (18:34 -0500)]
5011: Fix run_and_find_collection so it works without --portable-data-hash.
Tom Clegg [Fri, 30 Jan 2015 22:27:05 +0000 (17:27 -0500)]
5011: Use replication=2 if unspecified.
Radhika Chippada [Sat, 31 Jan 2015 22:42:41 +0000 (17:42 -0500)]
2659: show tab buttons, selection actions etc only when the current_user is_active to allow clean anonymous user experience.
Radhika Chippada [Sat, 31 Jan 2015 18:06:25 +0000 (13:06 -0500)]
2659: when an anonymous user is accessing public data, offer "Log in" button instead of "Log out" button.
Radhika Chippada [Sat, 31 Jan 2015 17:45:33 +0000 (12:45 -0500)]
2659: add text message "You are viewing public data" to top nav when anonymous user is accessing a public project. also add anonymous access tests.
Radhika Chippada [Sat, 31 Jan 2015 15:38:24 +0000 (10:38 -0500)]
2659: add permit_anonymous_browsing_for_public_data
Tom Clegg [Sat, 31 Jan 2015 07:21:19 +0000 (02:21 -0500)]
3021: gitignore rotated log files.
Tom Clegg [Fri, 30 Jan 2015 22:20:01 +0000 (17:20 -0500)]
5011: Add --replication option to CLI docs.
Tom Clegg [Fri, 30 Jan 2015 17:37:05 +0000 (12:37 -0500)]
5011: Add --replication argument to arv-put.
Tom Clegg [Fri, 30 Jan 2015 17:36:43 +0000 (12:36 -0500)]
5011: Add replication argument to CollectionWriter.
Tom Clegg [Fri, 30 Jan 2015 20:42:44 +0000 (15:42 -0500)]
Merge branch '5037-python-sdk-thread-safe' refs #5037
Tom Clegg [Fri, 30 Jan 2015 20:40:57 +0000 (15:40 -0500)]
5037: Mention where this cache is, instead of describing what a cache is.
Brett Smith [Fri, 30 Jan 2015 20:24:37 +0000 (15:24 -0500)]
5037: Remove unnecessary cache=False from arv-copy.
Brett Smith [Fri, 30 Jan 2015 20:09:34 +0000 (15:09 -0500)]
5037: Fix race condition in PySDK Websockets test.
This might just be bad luck, but for some reason when testing Tom's
changes I ran into a situation where this test failed because it
started processing the Websocket event about the new human before it
assigned self.h, so the assertion failed. Fix the race condition by
asserting against a thread-aware Queue.
Brett Smith [Fri, 30 Jan 2015 20:24:27 +0000 (15:24 -0500)]
5037: Add test for new PySDK API cache behavior.
Brett Smith [Fri, 30 Jan 2015 18:58:04 +0000 (13:58 -0500)]
Merge branch '4562-crunch-tools-docs-wip'
Closes #4562, #5015.
Brett Smith [Fri, 30 Jan 2015 16:23:11 +0000 (11:23 -0500)]
4562: Add Crunch tools overview to the documentation.
Tom Clegg [Fri, 30 Jan 2015 18:20:50 +0000 (13:20 -0500)]
5037: Remove connection pool. Now, api(cache=False) refers only to the discovery document cache.
Peter Amstutz [Fri, 30 Jan 2015 16:58:31 +0000 (11:58 -0500)]
4904: Fix documentation issues. Add comments to arv-web.py.
Peter Amstutz [Fri, 30 Jan 2015 16:10:39 +0000 (11:10 -0500)]
4904: Handle failure to delete non-existent cidfile. Fix docker_image in sample-static-page.
Peter Amstutz [Fri, 30 Jan 2015 16:03:27 +0000 (11:03 -0500)]
4904: Finally figured out a (hopefully) reliable way of sending SIGHUP to
service inside Docker container to get it to refresh.
Tom Clegg [Fri, 30 Jan 2015 07:26:05 +0000 (02:26 -0500)]
4472: Include output of failed tasks when generating job output manifest.
Peter Amstutz [Thu, 29 Jan 2015 22:13:25 +0000 (17:13 -0500)]
4904: Eliminate downtime switching collections.
* Now re-uses CollectionDirectory and loads new collection contents instead of
unmounting and remounting. Now sends sighup instead of restarting Docker if
the image is the same. Almost no downtime switching collections unless Docker
image changes as well.
* Refactor into functions instead executing directly as a module.
* Use arvados.arv-web logger
Radhika Chippada [Thu, 29 Jan 2015 18:13:16 +0000 (13:13 -0500)]
4523: full-text search is not supported for individual columns and only 'any' is supported.
Peter Amstutz [Thu, 29 Jan 2015 15:08:31 +0000 (10:08 -0500)]
Merge branch 'master' into 4904-arv-web
Radhika Chippada [Thu, 29 Jan 2015 02:59:30 +0000 (21:59 -0500)]
4523: full-text search migration script renamed
Radhika Chippada [Thu, 29 Jan 2015 02:56:18 +0000 (21:56 -0500)]
Merge branch 'master' into 4523-full-text-search
Radhika Chippada [Thu, 29 Jan 2015 02:56:01 +0000 (21:56 -0500)]
4523: prepare to merge master into branch
Radhika Chippada [Thu, 29 Jan 2015 01:45:16 +0000 (20:45 -0500)]
closes #3686
Merge branch '3686-sharing-repositories'
Radhika Chippada [Thu, 29 Jan 2015 01:43:03 +0000 (20:43 -0500)]
Merge branch 'master' into 3686-sharing-repositories
Radhika Chippada [Thu, 29 Jan 2015 01:41:32 +0000 (20:41 -0500)]
3686: correct one test assertion and refine some other assertions.
Tom Clegg [Wed, 28 Jan 2015 22:51:35 +0000 (17:51 -0500)]
Fix preview pane disappearing on narrow displays. closes #4918
Brett Smith [Wed, 28 Jan 2015 22:37:28 +0000 (17:37 -0500)]
Merge branch '5074-ruby-sdk-discovery-cache-wip'
Closes #5074, #5091.
Brett Smith [Tue, 27 Jan 2015 21:28:30 +0000 (16:28 -0500)]
5074: CLI SDK uses Google API client extensions from Ruby SDK.
Brett Smith [Tue, 27 Jan 2015 21:22:35 +0000 (16:22 -0500)]
5074: Improve discovery document caching in Ruby SDK.
* Report a warning if there's an error reading or parsing a cached
discovery document.
* Cache discovery documents to a tempfile and rename, to reduce the
chances that we'll write corrupted caches due to I/O errors.
* Make this extension a separate module that can be loaded by users
like the CLI SDK.
* Tighten exception handling throughout.
Radhika Chippada [Wed, 28 Jan 2015 21:48:37 +0000 (16:48 -0500)]
3686: add unit and controller tests for repository updates
Radhika Chippada [Wed, 28 Jan 2015 18:43:25 +0000 (13:43 -0500)]
3686: update the repository row to offer an exclusive Share link than make the repo name clickable.
Radhika Chippada [Wed, 28 Jan 2015 18:29:44 +0000 (13:29 -0500)]
3686: verify repositories testing uses hard coded repo info.
Radhika Chippada [Wed, 28 Jan 2015 16:11:04 +0000 (11:11 -0500)]
Merge branch 'master' into 3686-sharing-repositories
Radhika Chippada [Wed, 28 Jan 2015 16:07:12 +0000 (11:07 -0500)]
closes #4902
Merge branch '4902-use-fixture-to-rerun-pipelines'
Radhika Chippada [Wed, 28 Jan 2015 16:06:33 +0000 (11:06 -0500)]
Merge branch 'master' into 4902-use-fixture-to-rerun-pipelines
Radhika Chippada [Wed, 28 Jan 2015 15:48:10 +0000 (10:48 -0500)]
Merge branch 'master' into 3686-sharing-repositories
Radhika Chippada [Wed, 28 Jan 2015 00:42:11 +0000 (19:42 -0500)]
refs #4878
Merge branch '4878-rerun-job'
Radhika Chippada [Wed, 28 Jan 2015 00:40:53 +0000 (19:40 -0500)]
4878: add back the tab buttons partial.
Brett Smith [Tue, 27 Jan 2015 23:25:01 +0000 (18:25 -0500)]
Merge branch '4878-rerun-job-bcs-wip'
Closes #4878, #5067.
Brett Smith [Tue, 27 Jan 2015 23:09:20 +0000 (18:09 -0500)]
4878: Refactor Workbench "Re-run job" button for more code reuse.
* Avoid adding new routes: add the modal directly to the job show
page, and submit the new work with the existing job creation route.
* Fix id references; e.g., for labels.
Radhika Chippada [Tue, 27 Jan 2015 21:43:33 +0000 (16:43 -0500)]
4902: re-run pipeline instance tests use fixtures instead of creating a new pipeline to be re-run.
Radhika Chippada [Tue, 27 Jan 2015 20:59:03 +0000 (15:59 -0500)]
4878: update the popup display to not display radio button when only "use same" option is available.
Radhika Chippada [Tue, 27 Jan 2015 20:55:53 +0000 (15:55 -0500)]
Merge branch 'master' into 4878-rerun-job
Radhika Chippada [Tue, 27 Jan 2015 18:43:18 +0000 (13:43 -0500)]
refs #4523
Merge branch '4523-search-index'
Radhika Chippada [Tue, 27 Jan 2015 18:30:42 +0000 (13:30 -0500)]
Merge branch 'master' into 3686-sharing-repositories
Radhika Chippada [Tue, 27 Jan 2015 18:20:38 +0000 (13:20 -0500)]
4523: a little bit simpler script
Radhika Chippada [Tue, 27 Jan 2015 17:38:42 +0000 (12:38 -0500)]
Merge branch 'master' into 4523-search-index