dandi / dandi-archive

DANDI API server and Web app
https://dandiarchive.org
13 stars 12 forks source link

TransactionManagementError: select_for_update cannot be used outside of a transaction. #1064

Closed sentry-io[bot] closed 2 years ago

sentry-io[bot] commented 2 years ago

This is being caused by an erroneous select_for_update call outside of a transaction. We should fix this and update our tests to ensure that this kind of problem is caught in the future.

Sentry Issue: DANDI-API-7Y

https://github.com/dandi/dandi-archive/blob/fe7b79cbe4ff7a8af75dbb1f7edb0a724877cf1e/dandiapi/api/views/zarr.py#L217

dandibot commented 2 years ago

:rocket: Issue was released in v0.2.20 :rocket: