stephpy/timeline-bundle

Global Context

Closed this issue · 5 comments

There are 2 timeline entities created when using a custom context: one for the context and one named GLOBAL

if the point of GLOBAL is to be able to list all elements from the timeline table, then there is no need of it.

Am I missing something ?

Yes, by default, all actions are dupplicated on context GLOBAL. But you can deactivate it with configuration.

See spread.on_global_context

@rande @stephpy we also struggled with this concept, and we're still not sure if we're implementing it 100% correctly. Why would i want to have the same entry in both the GLOBAL and the custom context?

I had a use case with that.

3 tab uses timeline actions on 3 differents contexts: Contacts, Enterprises, Focus.

but there was a page which group|merge theses contexts. (using GLOBAL context)

We could set spread.on_global_context by default to false.

hi @pulse00, just for information, I am starting to integrate this bundle into sonata: the next step will be to integrate the notification bundle to start spread service.

http://sonata-project.org/bundles/timeline/master/doc/index.html

@rande i've seen it. great idea!