Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
3fbab848
Commit
3fbab848
authored
Jun 07, 2016
by
Nick Stenning
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3378 from hypothesis/pg-cleanup-streamer
Load annotation from DB in streamer
parents
2db2c595
ada7c3f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
streamer.js
h/static/scripts/streamer.js
+6
-3
No files found.
h/static/scripts/streamer.js
View file @
3fbab848
...
@@ -63,11 +63,14 @@ function connect($rootScope, annotationMapper, groups, session, settings) {
...
@@ -63,11 +63,14 @@ function connect($rootScope, annotationMapper, groups, session, settings) {
}
}
// Discard annotations that aren't from the currently focused group.
// Discard annotations that aren't from the currently focused group.
// Unless the action is delete, where we only get an id
// FIXME: Have the server only send us annotations from the focused
// FIXME: Have the server only send us annotations from the focused
// group in the first place.
// group in the first place.
annotations
=
annotations
.
filter
(
function
(
ann
)
{
if
(
action
!==
'delete'
)
{
return
ann
.
group
===
groups
.
focused
().
id
;
annotations
=
annotations
.
filter
(
function
(
ann
)
{
});
return
ann
.
group
===
groups
.
focused
().
id
;
});
}
switch
(
action
)
{
switch
(
action
)
{
case
'create'
:
case
'create'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment