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

[DPE-3684] Factor out minor changes from the raft reinit PR #681

Merged
merged 3 commits into from
Nov 25, 2024

Conversation

dragomirp
Copy link
Contributor

Factored out minor changes out of #611 to minimise the size of the PR to be kept in sync with main.

Copy link

codecov bot commented Nov 22, 2024

Codecov Report

Attention: Patch coverage is 85.71429% with 4 lines in your changes missing coverage. Please review.

Project coverage is 71.79%. Comparing base (3eb537d) to head (d98ccc1).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/charm.py 71.42% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #681      +/-   ##
==========================================
+ Coverage   71.49%   71.79%   +0.30%     
==========================================
  Files          13       13              
  Lines        3199     3216      +17     
  Branches      476      478       +2     
==========================================
+ Hits         2287     2309      +22     
+ Misses        797      791       -6     
- Partials      115      116       +1     

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


🚨 Try these New Features:

@@ -18,6 +18,8 @@ pydantic = "^1.10.18"
poetry-core = "^1.9.1"
pyOpenSSL = "^24.2.1"
jinja2 = "^3.1.4"
pysyncobj = "^0.3.13"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We should most probably bump in the snap as well, though changes appear minor.

Comment on lines -514 to -515
def _on_peer_relation_changed(self, event: HookEvent): # noqa: C901
"""Reconfigure cluster members when something changes."""
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Splitting over McCabe.

Comment on lines +752 to +754
if ip:
return str(ip)
return None
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should fix potential "None" string result.

@dragomirp dragomirp marked this pull request as ready for review November 22, 2024 19:32
@dragomirp dragomirp requested review from a team, taurus-forever, marceloneppel and lucasgameiroborges and removed request for a team November 22, 2024 19:33
@@ -106,7 +108,7 @@ line-length = 99

[tool.ruff.lint]
explicit-preview-rules = true
select = ["A", "E", "W", "F", "C", "N", "D", "I001", "B", "CPY", "RUF", "S", "SIM", "UP", "TCH"]
select = ["A", "E", "W", "F", "C", "N", "D", "I001", "B", "CPY", "RUF", "S", "SIM", "UP", "TC"]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Renamed in ruff 8.0

Copy link
Contributor

@taurus-forever taurus-forever left a comment

Choose a reason for hiding this comment

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

Great!

@dragomirp dragomirp merged commit 58fc973 into main Nov 25, 2024
97 checks passed
@dragomirp dragomirp deleted the dpe-3684-factor-off-minor-changes branch November 25, 2024 16:50
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.

4 participants