Developer hooks on file change not called

65 views
Skip to first unread message

Matthijn

unread,
Jul 2, 2012, 10:03:23 AM7/2/12
to podi...@googlegroups.com
Hello,

It seems that the developer hooks which you can add to an application are not always called. When you edit, delete or add an item the hooks get called. Most of the time. It seems that the hooks get called when you update an field of an item, but when you attach an file to an item the hooks do not get called. 

Is there a way to notify your own system through the hooks when an file is added or modified to the items?

I don't think it is a fault in my system, because in the most basic setting (just saving the timestamp when a hook is called in a file) the hook gets called when editing fields of an item, but not when attaching or removing files from an item.

I think the systems should also notify my system when an file is attached / removed from an item since that is an update of an item?

Kind regards,

Matthijn Dijkstra

Christian Holm

unread,
Jul 3, 2012, 4:21:13 AM7/3/12
to podi...@googlegroups.com
Hi

It is correct that changes in file attachments does not fire the item.update hook. I can add another hook that can notify you about changes to attachments, would that work for you?

Christian

Matthijn Dijkstra

unread,
Jul 3, 2012, 4:32:38 AM7/3/12
to podi...@googlegroups.com
That would be awesome :)

Matthijn Dijkstra

unread,
Jul 3, 2012, 4:33:06 AM7/3/12
to podi...@googlegroups.com
That would be awesome, if it sends the item id along.

Thanks.

On Jul 3, 2012, at 10:21 AM, Christian Holm wrote:

Christian Holm

unread,
Jul 3, 2012, 4:34:06 AM7/3/12
to podi...@googlegroups.com
Alright, I will add that. I am very busy this week, but I should have it done early next week.

Christian

Christian Holm

unread,
Jul 6, 2012, 4:13:18 PM7/6/12
to podi...@googlegroups.com
Hi Matthjin

I have added a new hook, called "file.change". This will be called with the item_id whenever a change happens to files attached to items in the app.

This will go out on the next update, most likely on Monday.

Christian

On Jul 3, 2012, at 10:33 AM, Matthijn Dijkstra wrote:

Matthijn Dijkstra

unread,
Jul 6, 2012, 4:44:31 PM7/6/12
to podi...@googlegroups.com
Thanks so much :)

Sent from my iPhone

Christian Holm

unread,
Jul 10, 2012, 4:07:54 PM7/10/12
to podi...@googlegroups.com
Hi again Matthijn

The hook is now available for use.

Christian

Matthijn Dijkstra

unread,
Jul 10, 2012, 4:12:36 PM7/10/12
to podi...@googlegroups.com
Yes, I allready found out. Thanks!

Sent from my iPhone
Reply all
Reply to author
Forward
0 new messages