[ 
https://issues.apache.org/jira/browse/METRON-2290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tibor Meller updated METRON-2290:
---------------------------------
    Description: 
{color:#1c1e29}The state of auto polling on Alerts UI is persisted in the 
browser's localStorage. Next time the User visiting the UI the auto polling 
state (on/off, refresh interval) will be automatically restored.{color}

 

{color:#1c1e29}Unfortunately, there is a race condition between the restoration 
of{color}
 * {color:#1c1e29}persisted auto polling state,{color}
 * {color:#1c1e29}persisted page size and{color}
 * {color:#1c1e29}default time range filter.{color}

{color:#1c1e29}To fix this in the simplest possible way I delayed the start of 
the auto polling if it's automatically starting on app initialization.{color}

{color:#1c1e29} With this the application able to restore the persisted page 
size and set the default time range properly before the auto polling start 
using these values.{color}

{color:#1c1e29}While I was investigating this issue I realized that the 
restoration of page size itself was also broken, so I fixed that as well 
(single line of code change).{color}

  was:
State of auto polling is persisted in Alerts UI. Next time the user lunch the 
UI the auto polling feature will automatically turn on if it was left that 
state at last visit.

Unfortunately there is a race condition between the restoration of
 - persisted auto polling state,
 - persisted page size and
 - default timer range filter.

To fix this in the simplest possible way I delayed the start of the auto 
polling if it's automatically starting on app initialization.
 With this the application able to restore the persisted page size and set the 
default time range properly before the auto polling start using these values.

While I was investigate this issue I realized that the restoration of page size 
it self also broken so I fixed that as well, with a few line of code change.


> [UI] Delaying first auto polling request on app start
> -----------------------------------------------------
>
>                 Key: METRON-2290
>                 URL: https://issues.apache.org/jira/browse/METRON-2290
>             Project: Metron
>          Issue Type: Bug
>            Reporter: Tibor Meller
>            Assignee: Tibor Meller
>            Priority: Major
>
> {color:#1c1e29}The state of auto polling on Alerts UI is persisted in the 
> browser's localStorage. Next time the User visiting the UI the auto polling 
> state (on/off, refresh interval) will be automatically restored.{color}
>  
> {color:#1c1e29}Unfortunately, there is a race condition between the 
> restoration of{color}
>  * {color:#1c1e29}persisted auto polling state,{color}
>  * {color:#1c1e29}persisted page size and{color}
>  * {color:#1c1e29}default time range filter.{color}
> {color:#1c1e29}To fix this in the simplest possible way I delayed the start 
> of the auto polling if it's automatically starting on app 
> initialization.{color}
> {color:#1c1e29} With this the application able to restore the persisted page 
> size and set the default time range properly before the auto polling start 
> using these values.{color}
> {color:#1c1e29}While I was investigating this issue I realized that the 
> restoration of page size itself was also broken, so I fixed that as well 
> (single line of code change).{color}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to