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

Rework dbusbroker dbus calls to format errors #518

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

denisonbarbosa
Copy link
Member

We now have a wrapper around the dbus calls to be able to intercept the errors and format the messages in a way that is helpful to end user. This helps avoiding error messages that are too technical, such as "the object X was not provided by any .service files" which is returned when the broker is not available on DBus.

UDENG-4094

We now have a wrapper around the dbus calls to be able to intercept the
errors and format the messages in a way that is helpful to end user.
This helps avoiding error messages that are too technical, such as "the
object X was not provided by any .service files" which is returned when
the broker is not available on DBus.

Co-authored-by: Didier Roche-Tolomelli <[email protected]>
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 92.85714% with 2 lines in your changes missing coverage. Please review.

Project coverage is 84.75%. Comparing base (924b003) to head (4b312ca).
Report is 12 commits behind head on main.

Files with missing lines Patch % Lines
internal/brokers/dbusbroker.go 92.85% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #518      +/-   ##
==========================================
- Coverage   84.84%   84.75%   -0.10%     
==========================================
  Files          79       79              
  Lines        6942     6938       -4     
  Branches       75       75              
==========================================
- Hits         5890     5880      -10     
- Misses        736      739       +3     
- Partials      316      319       +3     

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

@denisonbarbosa denisonbarbosa marked this pull request as ready for review September 5, 2024 13:16
@denisonbarbosa denisonbarbosa requested a review from a team as a code owner September 5, 2024 13:16
Copy link
Member

@didrocks didrocks left a comment

Choose a reason for hiding this comment

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

Thanks for adding the tests after our pairing session :) I did look at it again and I didn’t spot anything, nice!

Copy link
Collaborator

@3v1n0 3v1n0 left a comment

Choose a reason for hiding this comment

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

Probably the refactor and the actual fix could be split in two commits, but not a blocker.

Nice one!

@denisonbarbosa denisonbarbosa merged commit 35d5b9e into main Sep 6, 2024
7 checks passed
@denisonbarbosa denisonbarbosa deleted the rework-broker-dbus-calls branch September 6, 2024 11:09
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.

4 participants