Switch out ConcurrencyManager for Manager.
Review Request #14073 — Created Aug. 4, 2024 and submitted
Early on in Django history, the built-in
Manager.get_or_create
method
was racy, potentially raisingIntegrityError
. We had built a
ConcurrencyManager
to handle this case, and used it for many of our
models where we encountered issues.As of quite some time ago, Django's built-in
Manager
does exactly the
same thing as ourConcurrencyManager
did, and we just didn't discover
that because everything was working as expected. We've deprecated the
ConcurrencyManager as a result. This change swaps out all our usage to
just use the built-inManager
class.
Ran unit tests.
Summary | ID |
---|---|
e13897bb1c52d4a9ed5fc38727ad38ea4f6cbb4c |
Description | From | Last Updated |
---|---|---|
'reviewboard.accounts.models.ReviewRequestVisit' imported but unused Column: 5 Error code: F401 |
reviewbot | |
undefined name 'Optional' Column: 21 Error code: F821 |
reviewbot | |
'reviewboard.reviews.models.BaseComment' imported but unused Column: 5 Error code: F401 |
reviewbot | |
'reviewboard.accounts.models.ReviewRequestVisit' imported but unused Column: 5 Error code: F401 |
reviewbot | |
'reviewboard.reviews.models.BaseComment' imported but unused Column: 5 Error code: F401 |
reviewbot |