Skip to content

refactor: delete the dead entity modules and the empty requests package - #325

Merged
AlexeyTrekin merged 1 commit into
devfrom
refactor/delete-dead-modules
Aug 11, 2026
Merged

refactor: delete the dead entity modules and the empty requests package#325
AlexeyTrekin merged 1 commit into
devfrom
refactor/delete-dead-modules

Conversation

@trekin-geoalert

Copy link
Copy Markdown
Collaborator

Phase A of the 3.7.0 refactoring (spec/007_architecture.md). Removes ~340 lines that no
import reaches, so later phases move less code.

The duplicate-enum question the plan flagged is settled, and the answer is that it is
inert. entity/status.py is byte-identical to schema/status.py apart from one relative
import, so two ProcessingStatus classes did exist at runtime, and enum members of two
distinct classes never compare equal. That would be a live bug if the two could meet. They
cannot: the only importer of entity/status is entity/processing, and entity/processing has
no importers at all, in the plugin or the tests. mapflow/ contains no importlib,
import or import_module either, so nothing reaches them dynamically. The whole branch
was unreachable rather than merely unused.

requests/ contained a single empty init.py and is referenced nowhere.

entity/ itself stays for now - entity/provider/ is live and moves to model/ in the next
step, which is where the package disappears.

Manual test

none - the deleted modules had no importers, so no code path changes. If anything did
reach them the plugin would fail to load at all, which the test suite would not miss.

Phase A of the 3.7.0 refactoring (spec/007_architecture.md). Removes ~340 lines that no
import reaches, so later phases move less code.

The duplicate-enum question the plan flagged is settled, and the answer is that it is
inert. entity/status.py is byte-identical to schema/status.py apart from one relative
import, so two ProcessingStatus classes did exist at runtime, and enum members of two
distinct classes never compare equal. That would be a live bug if the two could meet. They
cannot: the only importer of entity/status is entity/processing, and entity/processing has
no importers at all, in the plugin or the tests. mapflow/ contains no importlib,
__import__ or import_module either, so nothing reaches them dynamically. The whole branch
was unreachable rather than merely unused.

requests/ contained a single empty __init__.py and is referenced nowhere.

entity/ itself stays for now - entity/provider/ is live and moves to model/ in the next
step, which is where the package disappears.

## Manual test
none - the deleted modules had no importers, so no code path changes. If anything did
reach them the plugin would fail to load at all, which the test suite would not miss.
@AlexeyTrekin
AlexeyTrekin marked this pull request as ready for review August 11, 2026 15:22
@AlexeyTrekin
AlexeyTrekin merged commit 0758a13 into dev Aug 11, 2026
4 checks passed
@AlexeyTrekin
AlexeyTrekin deleted the refactor/delete-dead-modules branch August 11, 2026 15:23
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.

2 participants