Remove the email pipeline
The mailbox sync (Microsoft Graph and IMAP), its Claude classifier, the /email routes and the Settings page's email section are taken out while the pipeline is unused. The last commit with it is tagged email-pipeline-last; reverting this commit brings it back. The status rules the capture path shares (statusOrder, StatusAdvances, NormalizeStatus) move to job_status.go with their tests. ProcessedEmail stays in the migration, marked dormant, so its history survives for a restored pipeline. golang.org/x/oauth2 is no longer needed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -45,7 +45,7 @@ func jobStatusEnumValues(t *testing.T) []string {
|
||||
}
|
||||
|
||||
// One vocabulary, two places it has to be written down: the enum the GraphQL
|
||||
// API validates against and the map the email pipeline ranks with. A status
|
||||
// API validates against and the map the capture endpoint ranks with. A status
|
||||
// in the enum but not the map could be saved from the tracker and then never
|
||||
// advanced; one in the map but not the enum could be stored by the pipeline
|
||||
// and then not edited.
|
||||
@@ -89,7 +89,7 @@ func TestUnmarshalJobStatus(t *testing.T) {
|
||||
}
|
||||
}
|
||||
// Strict on the way in: none of the forgiveness NormalizeStatus shows the
|
||||
// email pipeline. In particular nothing is coerced to "applied".
|
||||
// capture endpoint. In particular nothing is coerced to "applied".
|
||||
for _, bad := range []any{"hired", "Applied", " applied", "", "on hold", 3, nil, true} {
|
||||
if got, err := UnmarshalJobStatus(bad); err == nil {
|
||||
t.Errorf("UnmarshalJobStatus(%#v) = %q, want an error", bad, got)
|
||||
|
||||
Reference in New Issue
Block a user