-
-
Notifications
You must be signed in to change notification settings - Fork 189
Fixed the trigger functionality #904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ChiSamurai
commented
Jan 28, 2016
- fixes move and copy triggers not firing #255
- PR for updating the documentation here: Update documentation for triggers.xml documentation#72
|
Is it possible to keep order as it was (new-url, old-url)? |
|
Sure, but Joe and Alister proposed to make this consistent for "before" and "after" trigger. Since the relevant triggers did not work at all and all the trigger functionality broke after using them this change imo will not affect existing usage. |
|
@ChiSamurai I am happy for it to change if it means we get a better API |
|
@adamretter the problem that compatibility will be broken ... again ... -( |
|
@ChiSamurai the idea was to keep 1st parameter in-storage resource location and 2nd informative (what will be or what was). The xquery interface also was in-line with java interface https://github.com/eXist-db/exist/blob/develop/src/org/exist/collections/triggers/CollectionTrigger.java#L55 or https://github.com/eXist-db/exist/blob/develop/src/org/exist/collections/triggers/DocumentTrigger.java#L103 |
|
hmm... I just tried to change the output order. I don't really understand the complete code but it seems that there are some dependecies on the (old-url, new-url) for any of these triggers. Every try to change the order broke the trigger functionality completely. |
|
But if compatibility is affected, it would surely be good to change this... maybe somebody more trained in Java can have a look? I got a xquery unit-test which fires each trigger once which I can provide. |
|
@ChiSamurai can you commit? and I'll review it |
|
@shabanovd The test contains three files: the collection.xconf, the trigger xquery functions itself and the xquery with collection and a xquery script which does the collection and resource operations. Can I just write you an email? Or maybe skype or jabber? |
|
@ChiSamurai sure ([email protected]) |
|
fixed by #910 |