Skip to content

Conversation

@ChiSamurai
Copy link

@shabanovd
Copy link
Member

Is it possible to keep order as it was (new-url, old-url)?

@ChiSamurai
Copy link
Author

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.

@adamretter
Copy link
Contributor

@ChiSamurai I am happy for it to change if it means we get a better API

@shabanovd
Copy link
Member

@adamretter the problem that compatibility will be broken ... again ... -(

@shabanovd
Copy link
Member

@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

@ChiSamurai
Copy link
Author

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.

@ChiSamurai
Copy link
Author

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.

@shabanovd
Copy link
Member

@ChiSamurai can you commit? and I'll review it

@ChiSamurai
Copy link
Author

@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?

@shabanovd
Copy link
Member

@ChiSamurai sure ([email protected])

@shabanovd shabanovd closed this Feb 9, 2016
@shabanovd
Copy link
Member

fixed by #910

@dizzzz dizzzz mentioned this pull request Mar 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

move and copy triggers not firing

3 participants