Skip to content

refactor(store): delete dead per-row Import* API (links-store-cleanup-bex7)#217

Merged
brandon-fryslie merged 1 commit into
masterfrom
links-store-cleanup-bex7
Jun 11, 2026
Merged

refactor(store): delete dead per-row Import* API (links-store-cleanup-bex7)#217
brandon-fryslie merged 1 commit into
masterfrom
links-store-cleanup-bex7

Conversation

@brandon-fryslie

Copy link
Copy Markdown
Collaborator

Summary

  • Deleted ImportIssue, ImportComment, ImportRelation, ImportLabel methods and their four input structs from internal/store/import_export.go — zero callers existed anywhere in the module
  • Removed the now-unused errors import
  • ReplaceFromExport is the only live import path and remains unchanged

Context

[LAW:carrying-cost]: The per-row Import* API had no callers but still exacted maintenance cost — the RelationType refactor (PR #206) had to convert ImportRelation to model.ParseRelationType just to keep it compiling. Removing the dead surface makes the import contract unambiguous: restore is atomic via ReplaceFromExport, not incremental via per-row calls.

Test plan

  • go test ./... clean (verified locally — all 22 packages pass)
  • Zero callers of the deleted API confirmed via grep before deletion

…-bex7)

ImportIssue, ImportComment, ImportRelation, ImportLabel and their four
input structs had zero callers — ReplaceFromExport is the only live
import path. [LAW:carrying-cost] Dead exported API still costs
maintenance: the RelationType refactor had to convert ImportRelation just
to keep it compiling. Remove the dead surface; the import contract is
now unambiguously atomic via ReplaceFromExport.
@brandon-fryslie brandon-fryslie merged commit fc424e8 into master Jun 11, 2026
5 of 6 checks passed
@brandon-fryslie brandon-fryslie deleted the links-store-cleanup-bex7 branch June 11, 2026 09:45
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