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

Tibor Meller updated METRON-2290:
---------------------------------
    Description: 
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.

  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 as her 
dependencies.

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
>
> 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.



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

Reply via email to