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

Connection #1117

Merged
merged 3 commits into from
Jan 29, 2024
Merged

Connection #1117

merged 3 commits into from
Jan 29, 2024

Conversation

bjoernricks
Copy link
Contributor

What

Refactor Connection for better typing and improve class hierarchy

Why

Maintenance

Checklist

  • Tests

Use composition instead of inheritance for reading xml data.
Improve GvmConnection by being just a protocol and not a specific
implementation. This allows for more flexibility. For example the
DebugConnection is now also a GvmConnection.
@bjoernricks bjoernricks requested a review from a team as a code owner January 29, 2024 13:59
@greenbonebot greenbonebot enabled auto-merge (rebase) January 29, 2024 13:59
Copy link

Conventional Commits Report

Type Number
Changed 3

🚀 Conventional commits found.

gvm/connections.py Dismissed Show dismissed Hide dismissed
gvm/connections.py Dismissed Show dismissed Hide dismissed
gvm/connections.py Dismissed Show dismissed Hide dismissed
gvm/connections.py Dismissed Show dismissed Hide dismissed
gvm/connections.py Dismissed Show dismissed Hide dismissed
Copy link

codecov bot commented Jan 29, 2024

Codecov Report

Attention: 14 lines in your changes are missing coverage. Please review.

Comparison is base (bfd819b) 98.13% compared to head (96f5066) 97.93%.

Files Patch % Lines
gvm/connections.py 73.58% 6 Missing and 8 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1117      +/-   ##
==========================================
- Coverage   98.13%   97.93%   -0.20%     
==========================================
  Files          60       60              
  Lines        4445     4461      +16     
  Branches     1060     1068       +8     
==========================================
+ Hits         4362     4369       +7     
- Misses         69       72       +3     
- Partials       14       20       +6     

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

@greenbonebot greenbonebot merged commit 60712a8 into main Jan 29, 2024
16 of 18 checks passed
@greenbonebot greenbonebot deleted the connection branch January 29, 2024 15:55
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.

3 participants