-
Notifications
You must be signed in to change notification settings - Fork 16
Conversation
CHANGELOG.rst
Outdated
|
|
||
| **Breaking changes** | ||
|
|
||
| - Errors are not swallowed during execution of ``ResourceChanged`` subscribers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: are not swallowed anymore during the execution of [...]
a81abe7 to
d2f32ce
Compare
|
|
||
|
|
||
| class AfterResourceChanged(_ResourceEvent): | ||
| """Triggered after a resource was successfully changed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a note here explaining that we can be sure it this point that the resource was really changed and commited to the database.
|
LGTM but lacks documentation (I see there is some in the CHANGELOG but I don't believe that's enough) |
d2f32ce to
d1a62f0
Compare
|
I'm puzzled : View transactions tests pass when I run them isolated: But they don't if I run the whole test suite |
|
Ok, found it. In |
6910215 to
8f321ad
Compare
|
|
||
| Subscribers of this event are likely to perform database operations, | ||
| alter the server response, or cancel the transaction (by raising an HTTP | ||
| exeception for example). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exception
|
Great job r+ with nit. |
(revamp of #644)
Change subscribtion of listeners toRun listeners using subprocess running in background #647AfterResourceChanged(because of fire-n-forget)tldr: We need two kinds of events:
beforeevents to run within transaction and «rollbackable».afterevents to run irreversible actions (that can fail)Feedback/Critics/Stones/Hugs/Flowers welcome!