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

Duplicated error toasts #4297

Open
AlexRuiz7 opened this issue Jun 28, 2022 · 1 comment
Open

Duplicated error toasts #4297

AlexRuiz7 opened this issue Jun 28, 2022 · 1 comment
Labels

Comments

@AlexRuiz7
Copy link
Member

AlexRuiz7 commented Jun 28, 2022

Wazuh Elastic Rev Security
4.3.x 7.x 4xxx Basic, ODFE, Xpack
Browser
Chrome, Firefox, Safari, etc

Description
There are several situations in which the same error is raised several times, due to a decentralized way to manage errors. This results in several stacked error toasts covering a considerable chunk of the UI, which could be omitted.

We need to design an error handler capable to detect duplicated errors and skip them, raising only a single error. This could be achieved by using a queue that only allows a single error in, when several identical errors attempt to enter the queue within an interval of time, as a cooldown time to avoid toasts spamming.

Identical errors could be detected by generating a hash from the error's title and detail / message, and comparing the hashes of the incoming errors.

image

@AlexRuiz7
Copy link
Member Author

Parent issue: #4145

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant