]> git.arvados.org - arvados.git/commit
16007: Ensure that updated permission edge overrides edges view
authorPeter Amstutz <peter.amstutz@curii.com>
Fri, 29 May 2020 01:41:46 +0000 (21:41 -0400)
committerPeter Amstutz <peter.amstutz@curii.com>
Fri, 29 May 2020 02:31:26 +0000 (22:31 -0400)
commit0cff40366028dc1fbaf186e3109cde6379942381
treef59a43e83674bbcce9ac410ec8dd898dbe95706e
parentfc5742654641a10e765ed81d25ca44cb47976d02
16007: Ensure that updated permission edge overrides edges view

An edge originating from a user can be traversed more than once, if
that edge is the same as the one being updated, ensure that it uses
the updated permission level and not the permission from the edges
view.  Necessary when revoking permissions.

Also moved comments into the body of the postgres functions to bring
them closer to the code, this also has the convenient effect of having
the comments appear in structure.sql function definitions so as to be
easier for future developers to find.

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>
services/api/db/migrate/20200501150153_permission_table.rb
services/api/db/structure.sql
services/api/test/unit/permission_test.rb