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

Deal gracefully with hidden followable in my activity #2752

Merged
merged 1 commit into from
Jul 10, 2018

Conversation

decabeza
Copy link
Collaborator

References

This is a backport of AyuntamientoMadrid#1466
Related issue: AyuntamientoMadrid#1462

Objectives

  • Avoid exception in my activity when displaying followed proposals that have been hidden
  • Display correct number of followed proposals, without including proposals that have been hidden

We were seeing an exception when a user was following a proposal and
that proposal becomes hidden

With this commit we are skipping this proposals and hopefully fixing
this exception

We are also adjusting the count of followed proposals, without
including hidden proposals. It might be cleaner, to remove a `Follow`
when its `Followable` becomes hidden. But then we should probably
activate the `Follow` again if the `Followable` becomes non-hidden…

For now this commit should suffice 😌
@decabeza decabeza merged commit b839613 into master Jul 10, 2018
@decabeza decabeza deleted the following-hidden-proposals branch July 10, 2018 16:44
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.

None yet

2 participants