Proposal: Let's make notifications optional

Hello,

while I agree that notifications is useful feature to our users, its
one second polling mechanism is killing me during development, it
makes watching logs or debugging sessions a nightmare.

I propose an Administer - Setting option to completely turn it off -
no notification bell icon, no polling. If there is someone who things
users should not be given this option, let's make this an
environmental variable.

Opinions?

···

--
Later,
  Lukas @lzap Zapletal

Hello,

while I agree that notifications is useful feature to our users, its
one second polling mechanism is killing me during development, it
makes watching logs or debugging sessions a nightmare.

I propose an Administer - Setting option to completely turn it off -
no notification bell icon, no polling. If there is someone who things
users should not be given this option, let's make this an
environmental variable.

Opinions?

1. a Global setting, followed by a user setting sounds sane to me.
2. do you know that there is a global env already? just run:

NOTIFICATIONS_POLLING=1000000 foreman start

···

On Wed, Dec 20, 2017 at 10:07 AM, Lukas Zapletal <lzap@redhat.com> wrote:

--
Later,
  Lukas @lzap Zapletal

--
You received this message because you are subscribed to the Google Groups
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

2. do you know that there is a global env already? just run:

NOTIFICATIONS_POLLING=1000000 foreman start

I hereby withdraw my proposal, this works for me. Quite hidden one :slight_smile:

···

--
Later,
  Lukas @lzap Zapletal

Hello,

while I agree that notifications is useful feature to our users, its
one second polling mechanism is killing me during development, it
makes watching logs or debugging sessions a nightmare.

I propose an Administer - Setting option to completely turn it off -
no notification bell icon, no polling. If there is someone who things
users should not be given this option, let's make this an
environmental variable.

Opinions?

1. a Global setting, followed by a user setting sounds sane to me.
2. do you know that there is a global env already? just run:

NOTIFICATIONS_POLLING=1000000 foreman start

Great, I didn't know that.

Polling annoys me in development as well, but this env variable is
enough for me. Thanks!

···

On Wed, Dec 20, 2017 at 9:09 AM, Ohad Levy <ohadlevy@gmail.com> wrote:

On Wed, Dec 20, 2017 at 10:07 AM, Lukas Zapletal <lzap@redhat.com> wrote:

--
Later,
  Lukas @lzap Zapletal

--
You received this message because you are subscribed to the Google Groups
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

I also added an item to the Team UX backlog to make the notifications use
websockets (or similar) instead of the polling. The polling annoys me as
well.

Cheers,
Walden

···

On Wed, Dec 20, 2017 at 5:02 AM, Tomas Strachota <tstracho@redhat.com> wrote:

On Wed, Dec 20, 2017 at 9:09 AM, Ohad Levy <ohadlevy@gmail.com> wrote:
>
>
> On Wed, Dec 20, 2017 at 10:07 AM, Lukas Zapletal <lzap@redhat.com> > wrote:
>>
>> Hello,
>>
>> while I agree that notifications is useful feature to our users, its
>> one second polling mechanism is killing me during development, it
>> makes watching logs or debugging sessions a nightmare.
>>
>> I propose an Administer - Setting option to completely turn it off -
>> no notification bell icon, no polling. If there is someone who things
>> users should not be given this option, let's make this an
>> environmental variable.
>>
>> Opinions?
>
> 1. a Global setting, followed by a user setting sounds sane to me.
> 2. do you know that there is a global env already? just run:
>
> NOTIFICATIONS_POLLING=1000000 foreman start

Great, I didn't know that.

Polling annoys me in development as well, but this env variable is
enough for me. Thanks!

>
>>
>> --
>> Later,
>> Lukas @lzap Zapletal
>>
>> --
>> You received this message because you are subscribed to the Google
Groups
>> "foreman-dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send
an
>> email to foreman-dev+unsubscribe@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "foreman-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to foreman-dev+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

I also added an item to the Team UX backlog to make the notifications use
websockets (or similar) instead of the polling. The polling annoys me as
well.

Definitely the way to go, I've been experimenting with ActionCable and
it's not only cleaner (way less code, check out our polling code) but
more efficient.

The biggest limitation is
WebSockets don't work on Apache · Issue #1202 · phusion/passenger · GitHub - which I'm able to
circumvent with mod_proxy_wstunnel, http://anycable.io/ as Ohad
mentioned on IRC the other day looks like a feasible suggestion (if a
bit more involved)

···

On 12/20, Walden Raines wrote:

Cheers,
Walden

On Wed, Dec 20, 2017 at 5:02 AM, Tomas Strachota <tstracho@redhat.com> > wrote:

> On Wed, Dec 20, 2017 at 9:09 AM, Ohad Levy <ohadlevy@gmail.com> wrote:
> >
> >
> > On Wed, Dec 20, 2017 at 10:07 AM, Lukas Zapletal <lzap@redhat.com> > > wrote:
> >>
> >> Hello,
> >>
> >> while I agree that notifications is useful feature to our users, its
> >> one second polling mechanism is killing me during development, it
> >> makes watching logs or debugging sessions a nightmare.
> >>
> >> I propose an Administer - Setting option to completely turn it off -
> >> no notification bell icon, no polling. If there is someone who things
> >> users should not be given this option, let's make this an
> >> environmental variable.
> >>
> >> Opinions?
> >
> > 1. a Global setting, followed by a user setting sounds sane to me.
> > 2. do you know that there is a global env already? just run:
> >
> > NOTIFICATIONS_POLLING=1000000 foreman start
>
> Great, I didn't know that.
>
> Polling annoys me in development as well, but this env variable is
> enough for me. Thanks!
>
> >
> >>
> >> --
> >> Later,
> >> Lukas @lzap Zapletal
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> Groups
> >> "foreman-dev" group.
> >> To unsubscribe from this group and stop receiving emails from it, send
> an
> >> email to foreman-dev+unsubscribe@googlegroups.com.
> >> For more options, visit https://groups.google.com/d/optout\.
> >
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "foreman-dev" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to foreman-dev+unsubscribe@googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout\.
>
> --
> You received this message because you are subscribed to the Google Groups
> "foreman-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to foreman-dev+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout\.
>

--
You received this message because you are subscribed to the Google Groups "foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout\.

--
Daniel Lobato Garcia

@dLobatog
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30
Keybase: elobato (Daniel Lobato Garcia) | Keybase