š fix: the Type column on Needs you survives onboard
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").setUpViewsreturns the views whose columns it sent. Whenonboardhad 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:" getsType 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:
changesdrops views thatsettledaccepts, andsettledneedscolumns()to be undefined. A filter-only fix sendsconfiguration: null. - REST
GET ā¦/projectsV2/{n}/fieldslists Type (issue_type). RESTPOST ā¦/viewswithvisible_fieldsincluding it makes a view showing Type. GraphQLvisibleFieldsandfieldson that view leave Type out (Title, Status only). updateProjectV2Viewstill refuses the Type field's id: "Visible fields must be available in the view." So the API cannot put Type back.- Whether
updateProjectV2Viewwith avisibleFieldIdslist 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 (
DeleteProjectV2forbidden), 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.
setUpViewsnow 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.