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

[Backport 2.4] Fix github agents visualizations id #5069

Conversation

asteriscos
Copy link
Member

Description

Team,

this PR fixes an exception when selecting an agent or removing a pinned agent and later generating a PDF report in the dashboard.
The problem was that the agents visualizations had exactly the same HTML ID as the overview visualizations, therefore when angularJS updated the state it didn't create a new instance of the visualization component.

Issues Resolved

Closes #5065

Evidence

Peek 2023-01-04 17-38

Test

Scenario: Loading Github dashboard for the first time and generating a PDF report should not produce any errors
When The user loads Github dashboard
And The user clicks Generate report
Then a toast with a report successful message should pop up

Scenario: Loading Github dashboard then changing the pinned agent state and generating a PDF report should not produce any errors
When The user loads Github dashboard
And The user clicks Explore agent
And The user selects an agent
And The user clicks Generate report
Then a toast with a report successful message should pop up

Scenario: Loading Github dashboard then changing the pinned agent state and generating a PDF report should not produce any errors
When The user loads Github dashboard
And The user removes a pinned agent
And The user clicks Generate report
Then a toast with a report successful message should pop up

Check List

  • All tests pass
    • yarn test:jest
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

@asteriscos asteriscos requested a review from a team as a code owner January 4, 2023 17:12
@asteriscos asteriscos self-assigned this Jan 4, 2023
@asteriscos asteriscos linked an issue Jan 4, 2023 that may be closed by this pull request
yenienserrano
yenienserrano previously approved these changes Jan 4, 2023
Copy link
Member

@yenienserrano yenienserrano left a comment

Choose a reason for hiding this comment

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

LGTM

image

@chantal-kelm chantal-kelm self-requested a review January 5, 2023 12:35
chantal-kelm
chantal-kelm previously approved these changes Jan 5, 2023
Copy link
Member

@chantal-kelm chantal-kelm left a comment

Choose a reason for hiding this comment

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

CR: ✅
TEST: ✅

Grabacion.de.pantalla.2023-01-05.a.la.s.09.35.23.mov

@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2023

Code coverage (Jest) % values
Statements 8.72% ( 3225 / 36946 )
Branches 4.55% ( 1306 / 28679 )
Functions 7.62% ( 698 / 9158 )
Lines 8.79% ( 3110 / 35377 )

@chantal-kelm chantal-kelm self-requested a review January 9, 2023 13:58
Copy link
Member

@chantal-kelm chantal-kelm left a comment

Choose a reason for hiding this comment

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

CR: ✅
TEST: ✅

Grabacion.de.pantalla.2023-01-05.a.la.s.09.35.23.mov

@asteriscos asteriscos merged commit 4c82dc3 into 4.4-2.4-wzd Jan 9, 2023
@asteriscos asteriscos deleted the backport-2.4-wzd/change.github-agent-visualizations-id-5065 branch January 9, 2023 15:05
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.

Error generating PDF report in Github module
3 participants