Skip to content

UI: auto-refresh of nodes and volumes is stopped after any API or Network error #3242

Open
@JBWatenbergScality

Description

@JBWatenbergScality

Component:

UI

What happened:

Nodes and volumes not refreshed automatically.

What was expected:

Nodes and volumes to be refreshed.

Steps to reproduce

  1. Log into MetalK8s ui
  2. Switch your computer to sleep mode
  3. The nodes and volumes do not get refreshed anymore

Resolution proposal:

The issue comes from https://github.com/scality/metalk8s/blob/development/2.9/ui/src/ducks/app/nodes.js#L466 and https://github.com/scality/metalk8s/blob/development/2.9/ui/src/ducks/app/volumes.js#L413. The UI currently deliberately stop polling the API as soon as an error occurred, no matter which kind of error.

  • Network error should be retried with an exponential backoff mechanism
  • If retry pattern fails a notification should be displayed to the user inviting him to retry fetching the data
  • When the user focus again the page the polling should be attempted again and the notification dismissed if it succeeds

Metadata

Metadata

Assignees

No one assigned

    Labels

    complexity:mediumSomething that requires one or few days to fixkind:bugSomething isn't workingkind:debtTechnical debtpriority:highHigh priority issues, should be worked on ASAP (after urgent issues), not postponedtopic:uiUI-related issues

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions