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

Be smarter with Failed to connect notifications #376

Open
djasa opened this issue Aug 31, 2022 · 5 comments · Fixed by #386
Open

Be smarter with Failed to connect notifications #376

djasa opened this issue Aug 31, 2022 · 5 comments · Fixed by #386

Comments

@djasa
Copy link

djasa commented Aug 31, 2022

srain produces notification per every Failed to connect to NETWORK event. I see two instances of it:

  1. obvious one: system has notion of its overall connectivity (linux with NM). On such a system, failure to connect is expected and thus shouldn't disturb users from whatever they're doing after first such notification. Conversely, notification-worthy event is actually when srain connects successfully while system continues to be in offline or limited-connection state
  2. less obvious: servers only accessible from some networks. For such a scenario, notification is suitable - but just one and persistent with follow-up suitable only when there are changes to system network connections.

Version

$ flatpak info im.srain.Srain

Srain - Modern IRC client written in GTK

          ID: im.srain.Srain
         Ref: app/im.srain.Srain/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 1.4.0
     License: GPL-3.0
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 915,5 kB
     Runtime: org.gnome.Platform/x86_64/42
         Sdk: org.gnome.Sdk/x86_64/42

      Commit: 2055941c2b9d402c1c383973df7afe8f511fd439484420746024afe9e5539f0d
      Parent: 7db333a933b6921fe1a5ebf850fc1e195f2378e9ee0e878b3a6134f2e12a3c2a
     Subject: Update to 1.4.1 (653ddbd7)
        Date: 2022-08-19 16:23:22 +0000
@SilverRainZ
Copy link
Member

How about this policy:

  • If the connection has been established once, produce a notification for every failure
  • If not, only produce a notification for the first failure (but keep reconnecting)

@djasa
Copy link
Author

djasa commented Sep 1, 2022 via email

@SilverRainZ SilverRainZ added this to the 1.5 milestone Sep 5, 2022
@SilverRainZ
Copy link
Member

Okay, I get it. How about notifying for once, until it is successfully connected again?

Srain is not in active development, but I think we can improve this in the next minor release.

@djasa
Copy link
Author

djasa commented Sep 5, 2022

Okay, I get it. How about notifying for once, until it is successfully connected again?

Yeah, that would be great from my POV.

Srain is not in active development, but I think we can improve this in the next minor release.

Got it. I tried using srain over last week as my primary IRC client and these new issues are the result. :) Without fixing this one, I couldn't use it long-term. Overall, I like it more than not as it gets most of basic stuff right.

@SilverRainZ
Copy link
Member

#386 does not good, I will introduce a better notification policy.

@SilverRainZ SilverRainZ modified the milestones: 1.5, 1.6 Oct 8, 2022
@SilverRainZ SilverRainZ modified the milestones: 1.6, 1.7 Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants