[Dev] collections and notifications

Alec Flett alecf at osafoundation.org
Thu Mar 9 18:28:55 PST 2006


Hey Andi -
I just got a chance to look at the posts... the notification stuff looks 
great. I had a few basic questions, mostly about the very last form of 
notifications.

The "collection item notifications" seem to have a distinctly different 
API than the other notifications. instead of 'subscriber.watchXXX(item, 
..., methodName)' it is in the form 
'collection.notificationQueueSubscribe(subscriber)'

Is there a reason it has this different API? The other methods are 
actual methods on the subscriber, rather than the item being subscribed 
to. Second, the other systems allow you to specify a method name, which 
seems quite valuable.. It seems like it would be nice to be consistent 
with the APIs across all the notification systems.

Also, I thought we agreed that all notifications coming out of the 
repository would be synchronous, and it was up to the UI (i.e. me, or 
someone else on the Apps team) to queue them up if we needed 
asynchronous notifications. Can we make this one synchronous too, and 
leave the responsibility for queuing up notifications for async delivery 
to the frontend? (i.e. keep asynchronicity "above the line")

Random other things:
1) should watchKind also take a 'recursive' parameter to decide if it 
should also watch sub-kinds of the given kind? Seems like that would be 
consistent with other APIs that refer to kinds/subkinds
2) Is there a reason that kind watchers don't fire during view refresh? 
I guess I look at changes that result from view refreshes as being 
identical to any other changes within the current view...

Other than the above issues, this is actually a nice set of APIs - much 
less crazy than you indicated when we talked earlier today :)

Alec

Andi Vajda wrote:
>
> With the recent work on collection items and notifications being more 
> or less complete (?), I described the latest developments on the 
> 'chandlerdb' blog:
>
>   http://blogs.osafoundation.org/chandlerdb/2006/03/collections_ite.html
>   http://blogs.osafoundation.org/chandlerdb/2006/03/receiving_notif.html
>
> Andi..
>
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> Open Source Applications Foundation "Dev" mailing list
> http://lists.osafoundation.org/mailman/listinfo/dev



More information about the Dev mailing list