16813: Avoid writing db when nothing is changing in a batch update.
authorTom Clegg <tom@tomclegg.ca>
Thu, 10 Sep 2020 20:33:31 +0000 (16:33 -0400)
committerTom Clegg <tom@tomclegg.ca>
Thu, 10 Sep 2020 20:33:31 +0000 (16:33 -0400)
commit98bd6c43fca91b76d528c8ed5b83c655c86ffe3c
tree49ecb01b2abd79468b76b2416816244c1a56449d
parent5dafff1ed428fc1018e0ced86e1a07406d7e57f5
16813: Avoid writing db when nothing is changing in a batch update.

Avoids superfluous log entries and potentially costly permission graph
updates.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@tomclegg.ca>
services/api/app/controllers/arvados/v1/users_controller.rb
services/api/test/functional/arvados/v1/users_controller_test.rb