• Randall Leeds's avatar
    Clean up filter, updater, and store interactions · 4919b16b
    Randall Leeds authored
    Rather than having the annotator service handle the API service
    discovery event, handle it in the app controller. That allows for
    all the calls to add the Store plugin to be centralized in this
    controller.
    
    The `reloadAnnotations` function is modified so as not to assume
    that a Store is already loaded, cleaning up only if one is. The
    new store is placed on the scope so that its entities can be watched.
    
    Rather than racing with the store, the updater is configured with
    a new filter when the entities change. When the stream route is loaded,
    these entities are empty, but the configured stream filter is sent
    without re-initializing the filter. The stream search controller only
    has to send a new filter if an updater is already open, otherwise it
    is opened when the store is configured.
    
    The patched `Store.loadAnnotations` is changed so that it creates a
    fresh entities object on each invocation. This change ensures that if
    provider frame disconnection is handled at some point the entities will
    not continue to be included in searches and it makes the scope watcher
    for this property very cheap.
    
    Fixes #1306
    4919b16b
Name
Last commit
Last update
..
plugin Loading commit data...
.gitignore Loading commit data...
app.coffee Loading commit data...
app_directives.coffee Loading commit data...
controllers.coffee Loading commit data...
directives.coffee Loading commit data...
displayer.coffee Loading commit data...
filters.coffee Loading commit data...
flash.coffee Loading commit data...
guest.coffee Loading commit data...
helpers.coffee Loading commit data...
host.coffee Loading commit data...
services.coffee Loading commit data...
session.coffee Loading commit data...
socket.coffee Loading commit data...
streamfilter.coffee Loading commit data...
streamsearch.coffee Loading commit data...