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

Added condition for destroy #1223

Merged
merged 4 commits into from
Jan 28, 2022
Merged

Conversation

yenienserrano
Copy link
Member

Descriptionv

Using an user with no permissions to enter the Agents section produces an error on the controller. There is already a component with such DOM element's ID.

Resolve:

Added destroy if this.linearChartAgent exists to call this.linearChartAgent.destroy(), which did not allow doing this.topAgent.destroy()

Steps to reproduce
Using RBAC and an user with no agents:read permissions:

1.Open the browser's Dev Tools (F12) and Console
2.Go to 'Agents' view
3.The App is hidden (Ok)
4.Navigate out of Agents and then back in.
5.See that no error appears

Close:

searchTopAgent component failes to be re-initiailized #1222

Screenshot:

image
image
image

@yenienserrano yenienserrano linked an issue Jan 28, 2022 that may be closed by this pull request
Copy link
Member

@AlexRuiz7 AlexRuiz7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AlexRuiz7 AlexRuiz7 merged commit 8aaa728 into 4.3-8.2 Jan 28, 2022
@AlexRuiz7 AlexRuiz7 deleted the fix/1222-added-condition-for-destroy branch January 28, 2022 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

searchTopAgent component failes to be re-initiailized
2 participants