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

WD-8294 - feat: Display connection and polling of models error #1682

Merged
merged 8 commits into from
Jan 24, 2024

Conversation

vladimir-cucu
Copy link
Contributor

@vladimir-cucu vladimir-cucu commented Jan 17, 2024

Done

  • When connectAndStartPolling() fails, the error is sent to Redux store, and caught and displayed in ConnectionError component.

QA

  • Modify the end of the try block in connectAndStartPolling() by throwing a dummy error there e.g. throw new Error("Dummy error.");.
  • Log into the Juju Dashboard and check that just the ConnectionError component renders, same as in the attached screenshot.
  • Check that the error is logged in the console as Error while triggering the connection and polling of models. Error: Dummy error. followed by the stack trace.

Details

Screenshots

Screenshot from 2024-01-23 11-37-55

@webteam-app
Copy link

Demo starting at https://juju-dashboard-1682.demos.haus

Copy link

codecov bot commented Jan 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5e8ef26) 0.00% compared to head (cb2e0cd) 94.97%.
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##           main    #1682       +/-   ##
=========================================
+ Coverage      0   94.97%   +94.97%     
=========================================
  Files         0      178      +178     
  Lines         0     5177     +5177     
  Branches      0     1505     +1505     
=========================================
+ Hits          0     4917     +4917     
- Misses        0      240      +240     
- Partials      0       20       +20     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@huwshimi huwshimi left a comment

Choose a reason for hiding this comment

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

A few suggestions here.

Copy link
Contributor

@huwshimi huwshimi left a comment

Choose a reason for hiding this comment

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

This looks good, just one small suggestion.

@vladimir-cucu vladimir-cucu merged commit 9fe58af into canonical:main Jan 24, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants