16470: Discards changes before locking instead of reloading the record.
authorLucas Di Pentima <lucas@di-pentima.com.ar>
Fri, 7 Aug 2020 22:11:27 +0000 (19:11 -0300)
committerLucas Di Pentima <lucas@di-pentima.com.ar>
Fri, 7 Aug 2020 22:11:27 +0000 (19:11 -0300)
commit4c417c02b975f20938fc40ab007e351ea80d4666
tree03320eab3d91c388be52dd5a55cff67902879e7d
parent601249b0bfa07fd4fe5f9fb2d8496c732bfba409
16470: Discards changes before locking instead of reloading the record.

There's no need to make a database roundtrip, because all the old attribute
values are available.

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas@di-pentima.com.ar>
services/api/app/models/collection.rb
services/api/config/secrets.yml