-
Notifications
You must be signed in to change notification settings - Fork 10
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
Disable coloring of comments icon for comments created by user itself #515
Disable coloring of comments icon for comments created by user itself #515
Conversation
Codecov Report
@@ Coverage Diff @@
## mampf-next #515 +/- ##
==============================================
- Coverage 66.48% 66.47% -0.02%
==============================================
Files 311 311
Lines 9417 9417
==============================================
- Hits 6261 6260 -1
- Misses 3156 3157 +1 |
This introduces the following bug that you can reproduce as follows:
|
With this new behavior, we now get that the new comments icon is not colored anymore when you've just published a comment (which is great I think). Yet, you still see your own comment in the comments list ( |
I made a change that should take care of the problem. The problem was that multiple instances of the
in
I cannot reproduce that (was it related to the bug I introduced?) Note that comments are grouped for media. So, if someone else made a new comment on the same medium, it will show in the list. If you can still reproduce it, I would need more info. |
With a fresh database, I cannot reproduce this issue anymore, it was probably related to the old logic when you created new reader instances. |
I think this would be really helpful. It could be done in a new PR where we also update the usage of Rails' persistance methods, so that methods with validations are used. |
I rewrote the code a little since the last review. In particular I adressed the following issue that occured in the last reviewed version: |
Thanks, I've played around with it and it works, code looks good too. There is still one little (workflow) issue in the following scenario: In my opinion, this is really an edge case and not easily fixable (and "Latest post" is still correct), so we might just totally ignore it. |
I think we should ignore this edge case here, since formally, everything is correct. (We might add an explanation of this for users in the docs in #311, though). |
Remember to "squash and merge". |
It has been lamented by some users that the new comment icon is also getting colored when a user itself creates a new comment, and this comment is also listed as unread for this user. This PR changes this behaviour: The new comment icon is no longer colored in this case, and the created comment is not listed as unread.