Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix new replies being moved to the newly focused group #13

Merged
merged 2 commits into from
Jul 5, 2016

Conversation

robertknight
Copy link
Member

This builds on top of #8

Only new top level annotations should be moved to the new group when
switching groups.

Fixes hypothesis/h#3559

Only new top level annotations should be moved to the new group when
switching groups.

Fixes hypothesis/h#3559
@seanh seanh force-pushed the do-not-move-new-replies-on-group-change branch from d8f3c7b to f40b892 Compare July 4, 2016 10:19
@seanh
Copy link
Contributor

seanh commented Jul 4, 2016

Rebased

@seanh
Copy link
Contributor

seanh commented Jul 4, 2016

Hmm, I still seem to be able to reproduce the issue on this branch

@robertknight
Copy link
Member Author

After some more investigation it turns out that the issue is now fixed if you have the selection-tabs feature enabled, and the reply's group is no longer changed when switching groups.

However, if you do not have the selection-tabs feature enabled, then the reply still appears.

Previously the `group` and `permissions` properties of new replies were
set _after_ creating the reply with `createAnnotation()`. This meant
that the new reply did not have the correct group and permissions when
it was filtered for the first time by the `buildThread()` function.
@seanh seanh merged commit 94af10d into master Jul 5, 2016
@seanh seanh deleted the do-not-move-new-replies-on-group-change branch July 5, 2016 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants