[arvados] updated: 2.1.0-2934-gd3efc21c6

git repository hosting git at public.arvados.org
Fri Sep 23 19:23:56 UTC 2022


Summary of changes:
 lib/controller/localdb/group.go | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

       via  d3efc21c6aa0f31988b2e7936f24e6f1941791e7 (commit)
      from  44a1dbaa1bebde5b86ec4099c8819e8defdf3051 (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 d3efc21c6aa0f31988b2e7936f24e6f1941791e7
Author: Tom Clegg <tom at curii.com>
Date:   Fri Sep 23 15:23:07 2022 -0400

    19388: Trigger activity logs on group/project APIs, too.
    
    Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom at curii.com>

diff --git a/lib/controller/localdb/group.go b/lib/controller/localdb/group.go
index 0d77bdbd9..86924c521 100644
--- a/lib/controller/localdb/group.go
+++ b/lib/controller/localdb/group.go
@@ -13,6 +13,7 @@ import (
 // GroupCreate defers to railsProxy for everything except vocabulary
 // checking.
 func (conn *Conn) GroupCreate(ctx context.Context, opts arvados.CreateOptions) (arvados.Group, error) {
+	conn.logActivity(ctx)
 	err := conn.checkProperties(ctx, opts.Attrs["properties"])
 	if err != nil {
 		return arvados.Group{}, err
@@ -24,9 +25,15 @@ func (conn *Conn) GroupCreate(ctx context.Context, opts arvados.CreateOptions) (
 	return resp, nil
 }
 
+func (conn *Conn) GroupGet(ctx context.Context, opts arvados.GetOptions) (arvados.Group, error) {
+	conn.logActivity(ctx)
+	return conn.railsProxy.GroupGet(ctx, opts)
+}
+
 // GroupUpdate defers to railsProxy for everything except vocabulary
 // checking.
 func (conn *Conn) GroupUpdate(ctx context.Context, opts arvados.UpdateOptions) (arvados.Group, error) {
+	conn.logActivity(ctx)
 	err := conn.checkProperties(ctx, opts.Attrs["properties"])
 	if err != nil {
 		return arvados.Group{}, err
@@ -37,3 +44,13 @@ func (conn *Conn) GroupUpdate(ctx context.Context, opts arvados.UpdateOptions) (
 	}
 	return resp, nil
 }
+
+func (conn *Conn) GroupList(ctx context.Context, opts arvados.ListOptions) (arvados.GroupList, error) {
+	conn.logActivity(ctx)
+	return conn.railsProxy.GroupList(ctx, opts)
+}
+
+func (conn *Conn) GroupDelete(ctx context.Context, opts arvados.DeleteOptions) (arvados.Group, error) {
+	conn.logActivity(ctx)
+	return conn.railsProxy.GroupDelete(ctx, opts)
+}

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list