♻️ refactor: relocate get_device_kinds, get_measure_keys, get_authenticated_user #191
Loading…
Reference in a new issue
No description provided.
Delete branch "refactor/relocate-misplaced-methods"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Three methods move to the mixin that owns their domain — private-module moves only, resolution still happens on the composed
ComwattClient, so the public API and every existing test are untouched:Kept in place (defensible):
get_modbus_configurationsstays in catalogues despite the/gateways/path;get_electricity_contract_providersstays in electricity-contracts.Evidence
get_device_kindssits in DevicesMixin,get_measure_keysin ConnectedObjectsMixin,get_authenticated_userin SitesMixin — flagged as misplaced by the #151 audit.After: each method lives in its domain mixin;
pytest -q→ 242 passed (no test edits),mypy→ clean.Merge Danger
Door: two-way
Blast Radius: none — same classes, same signatures, same flat
client.*surface; only the private file layout changes.Closes #177. Executes the method-relocation part of the #151 audit.
WIP: ♻️ refactor: relocate get_device_kinds, get_measure_keys, get_authenticated_userto ♻️ refactor: relocate get_device_kinds, get_measure_keys, get_authenticated_user