Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Notifications repeatedly notify for the same tweet #292

Closed

Description

@philipzae

I set 'On New Tweets' to 'Every' or 'Stack 5' and i repeatedly get a notification about the same tweet(s) after a few minutes.

From my notification log file
image

Activity

  1. IBBoard commented on Jan 20, 2021

    @IBBoard
    Owner

    Ah, that's probably something to do with the fix for #147 where we overlap our requests to try and reduce the chance of missing tweets due to eventual consistency.

    I'll have to look at how we handle notifications.

  2. changed the title [-]Notifications dont work properly[/-] [+]Notifications repeatedly notify for the same tweet[/+] on Jan 20, 2021
  3. philipzae commented on Jan 20, 2021

    @philipzae
    Author

    Just to be clear, it wasn't limited to just the same tweet, as I would set it to 'Stack 5' and that notification would also popup multiple times.

  4. IBBoard commented on Jan 21, 2021

    @IBBoard
    Owner

    I tested with "Every" (since I don't get 5 tweets every 2 minutes - which is our polling time) and it didn't come back after the patch. But the behaviour before the patch and examining the code was definitely caused by it notifying when the same tweet came in due to overlapping requests, even though you had seen that tweet before.

    If it's still happening after the patch then it would help if there are any patterns that you can see (Always the same tweet, even after you read some? Always the latest tweet when nothing new appears but changes when a new tweet comes in? Numbers don't match what Cawbird is reporting?)

  5. philipzae commented on Jan 21, 2021

    @philipzae
    Author

    I didn't have over 5 tweets with 2 minutes either, but the 5 tweets notification still kept popping up for the maybe 1 tweet which was there. 😄

    image

    The only thing that I could say is that I wasn't at the top of the timeline and don't have 'auto scroll on new tweets' enabled.

  6. IBBoard commented on Jan 22, 2021

    @IBBoard
    Owner

    If you had a multiple of five tweets unread and then each poll returned overlapping tweets but no new tweets then the old code would have kept notifying every two minutes. The moment a new unread tweet came in then it would have had 5n+1 tweets and so the "is divisible by zero" check wouldn't have passed and it wouldn't notify until you were at 5n+5.

    But now we shouldn't even get that far because the overlapping tweet is marked as "not a new unread tweet" and so it returns before it notifies.

  7. philipzae commented on Jan 22, 2021

    @philipzae
    Author

    Tried to test the patch to see if it works for all scenarios by building master, but got this error.
    image

  8. IBBoard commented on Jan 23, 2021

    @IBBoard
    Owner

    That's because the settings schema was updated recently, but your installed schema doesn't include the new fields. Try the "GSettings in memory" command from the README.

  9. philipzae commented on Jan 24, 2021

    @philipzae
    Author

    Doubt this will work for me as I build cawbird in a VM and copy the executable to my host OS.

  10. IBBoard commented on Jan 24, 2021

    @IBBoard
    Owner

    It should work if you copy the build/data/ directory and set the paths correctly. You'll need to copy and install the schema at some point. Unless you're planning to always install the latest Cawbird package and piggy-back all of its libraries and config to make the custom executable work.

  11. Asday commented on Apr 24, 2021

    @Asday

    When will this fix make it to a release? I am a stupid stupid idiot and only know how to let Manjaro take care of things for me, so my guess is that 1.3.3 needs to exist for me to receive this fix.

  12. IBBoard commented on Apr 24, 2021

    @IBBoard
    Owner

    Soon-ish. I've had some other priorities and there have been a few things that were found, fixed and getting a bit of testing that delayed my earlier release plans.

  13. Asday commented on Apr 24, 2021

    @Asday

    Aight beast, thanks for both the quick reply and for dealing with my pestilent presence. I'm excited for the release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions