Conversation
|
Hi! One key requirement of pulling in changes is that it won't affect existing behaviour. From a quick glance, it looks like this will break all existing plugins as it goes from assuming no return to requiring a positive return 😢 I'll have a deeper look when I have some time an tidy it up. |
|
Hi @idefix6 - can you state your agreement to the Contributor License Agreement v1.0 in a comment here please. |
|
Hi @idefix6 - can you state your agreement (or objections) to the Contributor License Agreement v1.0 in a comment here please. |
|
Just my humble 2 cents: This CLA states nothing. All terms are already part of the GPL. You can neither modify nor even use ViMbAdmin without accepting those terms. Moreover, this CLA actually restricts your (Open Solutions) posssibility to license ViMbAdmin under a later version of the GPL in the future: The current code is "GPLv3 or any later version", the CLA states "GPLv3" only. Don't use CLAs. Many developers will be put off. http://ebb.org/bkuhn/blog/2014/06/09/do-not-need-cla.html |
|
Am 28.03.2015 um 13:54 schrieb barryo:
I agree. Gruß "Programming today is a race between software engineers striving to |
|
Hi Barry, Am 28.03.2015 um 13:45 schrieb barryo:
do you have plugins that are using hooks? But you are right, the plugins must be modified to return a true in Gruß "Programming today is a race between software engineers striving to |
|
I just had a look into the changes again and it only has an effect on plugins that will implement an alias PreRemove hook. Maybe the steps we could do are:
I think this has the lowest impact and would reduce the risk to really break anything by accident. |
bdc4478 to
4c938c7
Compare
4c938c7 to
dd929df
Compare
… it return a false. This is required to do additional checks in plugins that can stop the main application to finish the action.
…lugins give green light to continue with the deletion.
…urn value to not break interrupt flow.
…to return error message to user why a alias could not be deactivated.
dd929df to
b65ac65
Compare
|
Dear Barry, any chance to get the modification I did 2 years ago part of the master branch? |
|
@idefix6 - done with a little tidying up and better retention of existing logic. |
|
@barryo sorry, your tidy up broke all my pending changes I would like to merge, the intension here was to get my modifications as clearly and savely as possible into master branch. I will rewrite all my pending branches to get it alligned with your tidy-up. |
|
Sorry @idefix6 - I hope you can see what my intention was? Essentially: code works just as expected for everyone else. |
|
Dear @barryo no problem, I cleaned up my modifications and send a new pull request to get a new hook available. |
I required the functionality to implement checks in plugins.
These checks must be able to forbid core to write values into the database.
As this logic is part of the plugin the hook system must be able to handle return values.
With these modifications the called hooks can return a false value and therefor are able to inform core to not execute the triggered action, but display an error message.
Would be nice if this could be merged into the repository.