QutEcoacoustics / baw-server

The acoustic workbench server for storing and managing ecoacoustic data. Manages the structure and audio data. Provides an API for clients access.
Apache License 2.0
9 stars 4 forks source link

Avoid setting user stamps when updater is nil #587

Closed atruskie closed 2 years ago

atruskie commented 2 years ago

Our scan job updates model state. When running as a job it sets the updater_id to nil. This should not happen.

Invocation:

https://github.com/QutEcoacoustics/baw-server/blob/d66c360ba881666646cd785e0bf0d7b94fd1dcdb/lib/gems/baw-workers/lib/baw_workers/jobs/harvest/scan_job.rb#L32

Probably need to change the implementation in https://github.com/QutEcoacoustics/baw-server/blob/upload-annotations/app/modules/user_change.rb so it is aware of user-less job contexts