šŸ› fix: the Type column on Needs you survives onboard

Merged
AT
21d ago
+51-16

Slice: #44

Builds State #231 of P-16. Closes #231.

The owner added the Type (issue type) column by hand to Needs you on athya-hq Projects 4, 6 and 2. GitHub's API cannot see it, so a column list onboard sends cannot name it. This makes sure a rerun never sends one when nothing needs changing, and tells the owner how to add Type when it does.

What changes

  • viewsChecklist: "Needs you: add the Type column (+ at the right of the headers → Type, then Save)" (was "Needs you: show Type").
  • setUpViews returns the views whose columns it sent. When onboard had to set Needs you's columns on a Project copied from the template, it prints that a Type column there may be gone, with the step above, and "By hand:" gets Type on Needs you again → <Project>. A Project not copied gets the full checklist, as before.
  • Tests now assert what was only implied: a view whose filter is wrong but whose columns are right is updated with configuration: null; a rerun on right views sends no view mutation; the Type line appears only when Needs you's columns were sent.
  • README: onboard's by-hand steps name the Type column and how to add it, and that a rerun keeps it.

What I found about the API (scratch Project athya-hq #7, now closed; never #4, #6 or #2)

  • The rerun path already sent nothing for a settled view: changes drops views that settled accepts, and settled needs columns() to be undefined. A filter-only fix sends configuration: null.
  • REST GET …/projectsV2/{n}/fields lists Type (issue_type). REST POST …/views with visible_fields including it makes a view showing Type. GraphQL visibleFields and fields on that view leave Type out (Title, Status only).
  • updateProjectV2View still refuses the Type field's id: "Visible fields must be available in the view." So the API cannot put Type back.
  • Whether updateProjectV2View with a visibleFieldIds list that omits Type actually drops a Type column could not be observed: no API reads a view's Type column (GraphQL omits it, REST has no view read, REST view items return Title only), and the in-app browser is not signed in to GitHub. Since the list it sends is the whole visible set and Type cannot be in it, the code assumes it drops and says so ("may be gone").
  • AthyaBot cannot delete a Project (DeleteProjectV2 forbidden), so the scratch Project 7 "scratch: Type column test (delete me)" is closed; the owner may delete it.

No version bump; the coordinator releases.

šŸ¤– Generated with Claude Code


Summary by cubic

Fixes the Type (issue type) column on the Needs you view surviving repeated runs of onboard. GitHub's API can neither read nor set the Type column, so on a rerun where all columns are already correct, no column update is sent and a hand-added Type stays; when onboard does set Needs you's columns, it warns that Type may be gone and tells the owner how to add it again.

  • setUpViews now returns the names of the views whose columns it sent, and the Type warning appears only when Needs you was among them.
  • The views checklist names the exact steps for adding the Type column instead of a generic reminder.
  • Tests assert that a view with a wrong filter but right columns is updated with configuration: null, a settled rerun sends no view mutation, and the Type line appears only when Needs you's columns were sent.