Remove the label-carrying GitHubClient.createIssue overload orphaned by IW-426 #452
Labels
No labels
agent-ready
bug
contract
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-human
needs-input
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/iw-cli#452
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
IW-426 moved
iw feedbackfrom the archived GitHub mirror to Forgejo, and its Phase 2 removed thedead
TrackerOps.createFeedbackIssuerouting layer. That deletion orphaned the label-carryingoverload
GitHubClient.createIssue(repository, title, description, issueType)atcore/adapters/GitHubClient.scala:203.LiveCommandEnv.createFeedbackIssuewas its only caller.The overload was left in place by an explicit decision recorded in
project-management/issues/IW-426/tasks.md("Decisions Taken on the Analysis Recommendation") andphase-02-context.md("Non-goals"). Removing it inside IW-426 would have widened adocumentation-cleanup diff into an unrelated adapter, against "smallest reasonable change". The
decision was made knowing it leaves dead code, and this issue is the price of that call.
What to remove
GitHubClient.createIssue(…, issueType)—core/adapters/GitHubClient.scala:203buildCreateIssueCommand—:105. Orphaned by the above.isLabelError—:280. Check whether the helper itself still has acaller after the removal.
case FeedbackParser.IssueType.Feature => "feedback"—:114, the label mapping inside theretained overload.
core/test/GitHubClientTest.scalathat cover the removed overload.What must NOT be removed
buildCreateIssueCommandWithoutLabelat:164and its test. The three-argumentcreateIssue(
:256) calls it at:271, and that overload is live viaIssue.createIssue→TrackerOps.createGitHubIssue(core/commands/LiveCommandEnv.scala:439-444). Issue creationthrough
ghmust keep working.Related, but separate
FeedbackParser.getLabelIdForIssueTypeandConstants.IwCliLabels(core/model/Constants.scala:72-75)are Linear label UUIDs, dead since the migration off Linear. They are not caused by IW-426 and are
recorded separately in that issue's
LESSONS.md.Estimate: about 1 hour.
Intake: needs-human
Workflow: waterfall
Reason: G7 a standing [fix] finding: the implementation sequence adds defaulted parameters to the three-argument createIssue while the five-parameter overload, which already has defaults, still exists; Scala rejects that, so the two changes must be one step (correction refused, second review found it again)
Analysis: project-management/issues/IW-452/analysis.md on branch IW-452