Ensure correct event team ID instead of throwing error#394
Ensure correct event team ID instead of throwing error#394
Conversation
|
I do prefer the approach of handling things in the background, but #381 has a bit of discussion about this:
I think it can be a bit annoying as a plugin dev if I'm given an object that I'm supposedly able to modify but suddenly my change doesn't work and I have to spend some time figuring out why. Docs can ofc go some way here but anyway. Not strongly opposed to this (or opposed at all actually), but just leaving some thoughts |
|
Interesting! Regarding inability to figure out which plugin caused the issue: this isn't actually true. The error is thrown/processed on the pluginConfig, which means users can know exactly which plugin threw the error: .. About the batch, definitely my bad, I assumed that had reached end of life, but it has only been deprecated. |
a620ed2 to
c3e18da
Compare
|
Thinking this through: the part that seems weird is the order in which plugins run: since |
|
Ah, that's true, may be good to leave the error in then @neilkakkar I made #396 as an alternative. |


Changes
#381 made changing an event's team ID by plugins an illegal operation, which is good for security. Here I propose that instead of throwing an error, we just ensure that the ID is never changed, in the background – the former option is especially troublesome because in the current approach it'd be hard for a user to identify which plugin is causing the issue, as the error is thrown after all plugins have ran.
Also, this fixes the behavior for batch processing, which did not gain this protection in #381.
Checklist