[ARVADOS] updated: d43fb929ea2fdf984a86bc00c257e989e4b7a88c
git at public.curoverse.com
git at public.curoverse.com
Mon Sep 8 10:53:35 EDT 2014
Summary of changes:
apps/workbench/app/views/projects/show.html.erb | 2 +-
services/api/app/controllers/arvados/v1/schema_controller.rb | 8 +++++++-
2 files changed, 8 insertions(+), 2 deletions(-)
via d43fb929ea2fdf984a86bc00c257e989e4b7a88c (commit)
from 0ac9eaceae35e2a466b0ad09c903384d9bd21b9e (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 d43fb929ea2fdf984a86bc00c257e989e4b7a88c
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date: Mon Sep 8 10:53:32 2014 -0400
Added create#ensure_unique_name to discovery document. "Add a subproject"
button now uses "ensure_unique_name" to avoid errors when the user creates more
than one project called "New project". refs #3822
diff --git a/apps/workbench/app/views/projects/show.html.erb b/apps/workbench/app/views/projects/show.html.erb
index 4d49f02..2551760 100644
--- a/apps/workbench/app/views/projects/show.html.erb
+++ b/apps/workbench/app/views/projects/show.html.erb
@@ -35,7 +35,7 @@
{ class: "btn btn-primary btn-sm", remote: true, method: 'get' }) do %>
<i class="fa fa-fw fa-gear"></i> Run a pipeline...
<% end %>
- <%= link_to projects_path('project[owner_uuid]' => @object.uuid), method: 'post', class: 'btn btn-sm btn-primary' do %>
+ <%= link_to projects_path({'project[owner_uuid]' => @object.uuid, 'options' => {'ensure_unique_name' => true}}), method: 'post', class: 'btn btn-sm btn-primary' do %>
<i class="fa fa-fw fa-plus"></i>
Add a subproject
<% end %>
diff --git a/services/api/app/controllers/arvados/v1/schema_controller.rb b/services/api/app/controllers/arvados/v1/schema_controller.rb
index 20400d2..f856dd6 100644
--- a/services/api/app/controllers/arvados/v1/schema_controller.rb
+++ b/services/api/app/controllers/arvados/v1/schema_controller.rb
@@ -257,7 +257,13 @@ class Arvados::V1::SchemaController < ApplicationController
path: "#{k.to_s.underscore.pluralize}",
httpMethod: "POST",
description: "Create a new #{k.to_s}.",
- parameters: {},
+ parameters: {
+ ensure_unique_name: {
+ type: "boolean",
+ description: "Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.",
+ location: "query"
+ }
+ },
request: {
required: true,
properties: {
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list