[ARVADOS] created: 2.1.0-1281-g88c0535c0
Git user
git at public.arvados.org
Fri Sep 3 14:54:34 UTC 2021
at 88c0535c0cd110f75f1c5256401c1831e4cf3052 (commit)
commit 88c0535c0cd110f75f1c5256401c1831e4cf3052
Author: Lucas Di Pentima <lucas.dipentima at curii.com>
Date: Thu Sep 2 21:01:17 2021 -0300
18094: Removes update_uuid from GoSDK & controller.
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima at curii.com>
diff --git a/lib/controller/federation/conn.go b/lib/controller/federation/conn.go
index 77bc97aed..586ac2301 100644
--- a/lib/controller/federation/conn.go
+++ b/lib/controller/federation/conn.go
@@ -593,10 +593,6 @@ func (conn *Conn) UserUpdate(ctx context.Context, options arvados.UpdateOptions)
return resp, err
}
-func (conn *Conn) UserUpdateUUID(ctx context.Context, options arvados.UpdateUUIDOptions) (arvados.User, error) {
- return conn.local.UserUpdateUUID(ctx, options)
-}
-
func (conn *Conn) UserMerge(ctx context.Context, options arvados.UserMergeOptions) (arvados.User, error) {
return conn.local.UserMerge(ctx, options)
}
diff --git a/lib/controller/router/router.go b/lib/controller/router/router.go
index 5ceabbfb1..9826c1e74 100644
--- a/lib/controller/router/router.go
+++ b/lib/controller/router/router.go
@@ -398,13 +398,6 @@ func (rtr *router) addRoutes() {
return rtr.backend.UserGet(ctx, *opts.(*arvados.GetOptions))
},
},
- {
- arvados.EndpointUserUpdateUUID,
- func() interface{} { return &arvados.UpdateUUIDOptions{} },
- func(ctx context.Context, opts interface{}) (interface{}, error) {
- return rtr.backend.UserUpdateUUID(ctx, *opts.(*arvados.UpdateUUIDOptions))
- },
- },
{
arvados.EndpointUserUpdate,
func() interface{} { return &arvados.UpdateOptions{} },
diff --git a/lib/controller/rpc/conn.go b/lib/controller/rpc/conn.go
index 940f2184b..640bbf1c2 100644
--- a/lib/controller/rpc/conn.go
+++ b/lib/controller/rpc/conn.go
@@ -542,12 +542,6 @@ func (conn *Conn) UserUpdate(ctx context.Context, options arvados.UpdateOptions)
err := conn.requestAndDecode(ctx, &resp, ep, nil, options)
return resp, err
}
-func (conn *Conn) UserUpdateUUID(ctx context.Context, options arvados.UpdateUUIDOptions) (arvados.User, error) {
- ep := arvados.EndpointUserUpdateUUID
- var resp arvados.User
- err := conn.requestAndDecode(ctx, &resp, ep, nil, options)
- return resp, err
-}
func (conn *Conn) UserMerge(ctx context.Context, options arvados.UserMergeOptions) (arvados.User, error) {
ep := arvados.EndpointUserMerge
var resp arvados.User
diff --git a/sdk/go/arvados/api.go b/sdk/go/arvados/api.go
index 736ace75e..b429e8008 100644
--- a/sdk/go/arvados/api.go
+++ b/sdk/go/arvados/api.go
@@ -75,7 +75,6 @@ var (
EndpointUserSystem = APIEndpoint{"GET", "arvados/v1/users/system", ""}
EndpointUserUnsetup = APIEndpoint{"POST", "arvados/v1/users/{uuid}/unsetup", ""}
EndpointUserUpdate = APIEndpoint{"PATCH", "arvados/v1/users/{uuid}", "user"}
- EndpointUserUpdateUUID = APIEndpoint{"POST", "arvados/v1/users/{uuid}/update_uuid", ""}
EndpointUserBatchUpdate = APIEndpoint{"PATCH", "arvados/v1/users/batch_update", ""}
EndpointUserAuthenticate = APIEndpoint{"POST", "arvados/v1/users/authenticate", ""}
EndpointAPIClientAuthorizationCurrent = APIEndpoint{"GET", "arvados/v1/api_client_authorizations/current", ""}
@@ -154,11 +153,6 @@ type GroupContentsOptions struct {
ExcludeHomeProject bool `json:"exclude_home_project"`
}
-type UpdateUUIDOptions struct {
- UUID string `json:"uuid"`
- NewUUID string `json:"new_uuid"`
-}
-
type UserActivateOptions struct {
UUID string `json:"uuid"`
}
@@ -265,7 +259,6 @@ type API interface {
SpecimenDelete(ctx context.Context, options DeleteOptions) (Specimen, error)
UserCreate(ctx context.Context, options CreateOptions) (User, error)
UserUpdate(ctx context.Context, options UpdateOptions) (User, error)
- UserUpdateUUID(ctx context.Context, options UpdateUUIDOptions) (User, error)
UserMerge(ctx context.Context, options UserMergeOptions) (User, error)
UserActivate(ctx context.Context, options UserActivateOptions) (User, error)
UserSetup(ctx context.Context, options UserSetupOptions) (map[string]interface{}, error)
diff --git a/sdk/go/arvadostest/api.go b/sdk/go/arvadostest/api.go
index f255aeb2d..8bf01693c 100644
--- a/sdk/go/arvadostest/api.go
+++ b/sdk/go/arvadostest/api.go
@@ -193,10 +193,6 @@ func (as *APIStub) UserUpdate(ctx context.Context, options arvados.UpdateOptions
as.appendCall(ctx, as.UserUpdate, options)
return arvados.User{}, as.Error
}
-func (as *APIStub) UserUpdateUUID(ctx context.Context, options arvados.UpdateUUIDOptions) (arvados.User, error) {
- as.appendCall(ctx, as.UserUpdateUUID, options)
- return arvados.User{}, as.Error
-}
func (as *APIStub) UserActivate(ctx context.Context, options arvados.UserActivateOptions) (arvados.User, error) {
as.appendCall(ctx, as.UserActivate, options)
return arvados.User{}, as.Error
commit 1f0e29afadd7ffc1e0e2a5be61046de8c069628f
Author: Lucas Di Pentima <lucas.dipentima at curii.com>
Date: Thu Sep 2 17:37:21 2021 -0300
18094: Updates documentation, adding an upgrade note.
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima at curii.com>
diff --git a/doc/admin/upgrading.html.textile.liquid b/doc/admin/upgrading.html.textile.liquid
index 9e7410260..3c3211b61 100644
--- a/doc/admin/upgrading.html.textile.liquid
+++ b/doc/admin/upgrading.html.textile.liquid
@@ -35,10 +35,14 @@ TODO: extract this information based on git commit messages and generate changel
<div class="releasenotes">
</notextile>
-h2(#main). development main (as of 2021-07-15)
+h2(#main). development main (as of 2021-09-02)
"Upgrading from 2.2.0":#v2_2_0
+h3. Removed unused @update_uuid@ endpoint for users.
+
+The @update_uuid@ endpoint was superseded by the "link accounts feature":{{site.baseurl}}/admin/link-accounts.html, so it's no longer available.
+
h3. Removed deprecated '@@' search operator
The '@@' full text search operator, previously deprecated, has been removed. To perform a string search across multiple columns, use the 'ilike' operator on 'any' column as described in the "available list method filter section":{{site.baseurl}}/api/methods.html#substringsearchfilter of the API documentation.
diff --git a/doc/api/methods/users.html.textile.liquid b/doc/api/methods/users.html.textile.liquid
index a4d4aade9..5861ddbf7 100644
--- a/doc/api/methods/users.html.textile.liquid
+++ b/doc/api/methods/users.html.textile.liquid
@@ -112,19 +112,6 @@ table(table table-bordered table-condensed).
{background:#ccffcc}.|uuid|string|The UUID of the User in question.|path||
|user|object|The new attributes.|query||
-h3(#update_uuid). update_uuid
-
-Change the UUID of an existing user, updating all database references accordingly.
-
-This method can only be used by an admin user. It should only be used when the affected user is idle. New references to the affected user that are established _while the update_uuid operation is in progress_ might not be migrated as expected.
-
-Arguments:
-
-table(table table-bordered table-condensed).
-|_. Argument |_. Type |_. Description |_. Location |_. Example |
-{background:#ccffcc}.|uuid|string|The current UUID of the user in question.|path|@zzzzz-tpzed-12345abcde12345@|
-{background:#ccffcc}.|new_uuid|string|The desired new UUID. It is an error to use a UUID belonging to an existing user.|query|@zzzzz-tpzed-abcde12345abcde@|
-
h3. setup
Set up a user. Adds the user to the "All users" group. Enables the user to invoke @activate at . See "user management":{{site.baseurl}}/admin/user-management.html for details.
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list