• Robert Knight's avatar
    Fetch annotations in parallel with groups and profile where possible · 1d00a99b
    Robert Knight authored
    Currently both the sidebar and notebook wait until the user's profile and groups are
    fetched before fetching annotations. This is because the search query to
    fetch annotations depends on the focused group. The groups query may
    take several hundred ms to complete, so this ends up delaying the
    initial fetch and display of annotations by that amount of time.
    
    In the notebook the common case is that the user is already logged in
    and the notebook is configured to display a specific group ("the direct
    linked group"): whatever the user had previously selected in the sidebar.
    In this scenario it is very likely that the direct-linked group will end
    up being the focused one after groups are fetched.
    
    Based on these assumptions, we can speed up the initial annotation by
    loading annotations from the direct-linked group. If the focused group
    ends up being different, annotations will just be re-fetched from the
    correct group once that is known.
    1d00a99b
Name
Last commit
Last update
..
components Loading commit data...
config Loading commit data...
helpers Loading commit data...
services Loading commit data...
store Loading commit data...
test Loading commit data...
util Loading commit data...
cross-origin-rpc.js Loading commit data...
ga.js Loading commit data...
icons.js Loading commit data...
index.js Loading commit data...
markdown-commands.js Loading commit data...
media-embedder.js Loading commit data...
render-markdown.js Loading commit data...
search-client.js Loading commit data...
service-context.js Loading commit data...
ui-constants.js Loading commit data...
websocket.js Loading commit data...