Skip to content

chore: remove final legacy cleanup items#78

Merged
discreteds merged 3 commits into
developfrom
chore/legacy-cleanup-final
Apr 26, 2026
Merged

chore: remove final legacy cleanup items#78
discreteds merged 3 commits into
developfrom
chore/legacy-cleanup-final

Conversation

@discreteds

Copy link
Copy Markdown
Member

Summary

  • Remove 4 deprecated bridge methods from BaseDBConnection (get_connection_string_template, get_connection_string_params, get_connection_kwargs, format_connection_string) and legacy fallback branches in Ibis/Iceberg connect_default()
  • Replace redundant isinstance(pw, SecretStr) guard with pw is not None check in ConnectionProfile.to_connection_string(), now that upstream mountainash-settings enforces SecretStr typing via validate_assignment=True

Closes the final two actionable items from the legacy-cleanup backlog.

Test Plan

  • hatch run test:test-quick — 441 passed, 6 skipped
  • Verify no downstream consumers call the removed bridge methods

🤖 Generated with Claude Code

discreteds and others added 3 commits April 26, 2026 20:01
…ck branches

All downstream consumers now use ConnectionProfile / to_driver_kwargs().
Removes get_connection_string_template, get_connection_string_params,
get_connection_kwargs, format_connection_string from BaseDBConnection, the
isinstance(ConnectionProfile) guard and legacy path from
BaseIbisConnection.connect_default(), and the isinstance dispatch from
IcebergConnectionBase.connect_default().

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Upstream mountainash-settings now enforces SecretStr typing via
validate_assignment=True, making the isinstance guard redundant.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Apr 26, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 47.36842% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 55.82%. Comparing base (dff2582) to head (9b2b9e2).
⚠️ Report is 5 commits behind head on develop.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/mountainash_data/backends/ibis/connection.py 50.00% 5 Missing and 3 partials ⚠️
...rc/mountainash_data/backends/iceberg/connection.py 0.00% 1 Missing ⚠️
src/mountainash_data/core/settings/profile.py 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop      #78      +/-   ##
===========================================
+ Coverage    54.79%   55.82%   +1.03%     
===========================================
  Files           51       51              
  Lines         2617     2556      -61     
  Branches       288      270      -18     
===========================================
- Hits          1434     1427       -7     
+ Misses        1074     1021      -53     
+ Partials       109      108       -1     

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

@discreteds discreteds merged commit 91a6183 into develop Apr 26, 2026
5 of 6 checks passed
@discreteds discreteds deleted the chore/legacy-cleanup-final branch April 26, 2026 10:33
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.

1 participant