Skip to content

Remove the dead external-DB import module - #7

Merged
jpapiez merged 1 commit into
masterfrom
remove-dead-externaldb-import
Aug 18, 2026
Merged

Remove the dead external-DB import module#7
jpapiez merged 1 commit into
masterfrom
remove-dead-externaldb-import

Conversation

@jpapiez

@jpapiez jpapiez commented Aug 18, 2026

Copy link
Copy Markdown

Deletes spoolman/import_externaldb.py (116 lines). No behaviour change — the module was never reachable.

Why it's dead

Its only function, import_external_filaments, has:

  • no callers anywhere in the repo,
  • no API route,
  • no poe task or entry point in pyproject.toml,
  • no dynamic/string reference.

git log -S import_external_filaments --all returns exactly one commit: 05a4898, the one that added it. It arrived while merging upstream PR Donkie#846 without the wiring that would have invoked it, so it has been dead since the day it landed.

Why it shouldn't be revived

Upstream now covers this ground natively: /external/filament, /external/material and the new /external/filament/search, with client_v2 creating filaments from those endpoints directly. A server-side bulk importer isn't the direction external-DB support is heading, so this isn't a stub worth finishing.

Validation

  • ruff check spoolman — clean.
  • App imports and registers the same routes (from spoolman.main import app → 8 routes, unchanged).
  • pytest tests — 26 passed.

Context

Found while auditing what is genuinely fork-only versus upstream, in preparation for #5. Independent of #5 and #6 — this branches from master and touches a file neither of them modifies, so it can merge in any order.

spoolman/import_externaldb.py has never been reachable. Its only function,
import_external_filaments, has no callers, no route, no poe task and no entry
point -- searching the whole history for the name turns up only the commit that
added it (05a4898), which brought it across while merging upstream PR Donkie#846
without the wiring that would have invoked it. So it has been dead since the day
it landed, and no behaviour changes by deleting it.

It is also no longer the way to do this. Upstream now exposes the external
database through /external/filament, /external/material and
/external/filament/search, and client_v2 creates filaments from those directly,
so a server-side bulk importer is not the direction this is going.

Verified: ruff clean, the app imports and registers its routes unchanged, and
the unit tests pass.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings August 18, 2026 17:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This pull request removes a dead, unreachable external-database bulk import module from the spoolman server package to reduce unused code and maintenance surface area.

Changes:

  • Deleted spoolman/import_externaldb.py, which contained an unused import_external_filaments importer and helper logic.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@jpapiez
jpapiez merged commit 01f454c into master Aug 18, 2026
12 checks passed
@jpapiez
jpapiez deleted the remove-dead-externaldb-import branch August 18, 2026 18:21
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