{"record":{"id":"c326befe5123a95b","repo":"santifer/career-ops","slug":"consider-entry-name-needs-a-consider-board-i","errorCode":null,"errorMessage":"consider: ${entry.name} needs a 'consider_board' id in portals.yml","messagePattern":"consider: (.+?) needs a 'consider_board' id in portals\\.yml","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"providers/consider.mjs","lineNumber":151,"sourceCode":"  if (Array.isArray(job.normalizedLocations) && job.normalizedLocations.length) {\n    return job.normalizedLocations.map(l => l?.label || l?.value).filter(Boolean).join(', ');\n  }\n  return job.remote ? 'Remote' : '';\n}\n\n/** @type {Provider} */\nexport default {\n  id: 'consider',\n\n  detect(entry) {\n    const origin = resolveOrigin(entry);\n    return entry.consider_board && origin ? { url: origin + ENDPOINT_PATH } : null;\n  },\n\n  async fetch(entry, ctx) {\n    const origin = resolveOrigin(entry);\n    if (!origin) throw new Error(`consider: ${entry.name} needs an https careers_url on a public host`);\n    if (!entry.consider_board) throw new Error(`consider: ${entry.name} needs a 'consider_board' id in portals.yml`);\n    const size = Number.isInteger(entry.consider_size) && entry.consider_size > 0 ? entry.consider_size : DEFAULT_SIZE;\n\n    // Perform the CSRF handshake before the POST. ctx._acquireHandshake is a\n    // test seam: set it to a stub in unit tests so no real network call is made.\n    const { cookie, csrfToken } = await (\n      typeof ctx._acquireHandshake === 'function'\n        ? ctx._acquireHandshake(origin)\n        : acquireCsrfHandshake(origin)\n    );\n\n    const csrfHeaders = {};\n    if (cookie) csrfHeaders.cookie = cookie;\n    if (csrfToken) csrfHeaders['x-csrf-token'] = csrfToken;\n\n    const json = await ctx.fetchJson(origin + ENDPOINT_PATH, {\n      method: 'POST',\n      // redirect:'error' so a 3xx from the (config-driven) board host can't be\n      // followed to a private/metadata IP — the host guard above pins the first hop.","sourceCodeStart":133,"sourceCodeEnd":169,"githubUrl":"https://github.com/santifer/career-ops/blob/aac998c7ed7248ea853b720ceeb1fdbeb322fc5d/providers/consider.mjs#L133-L169","documentation":"The Consider provider drives a per-company board via a 'consider_board' id; fetch checks entry.consider_board right after the origin check and throws when it is absent or falsy. The board id identifies which job list to POST for during the CSRF-handshake request, so without it the provider cannot construct a valid request even with a good careers_url. It is a required-config-field error scoped to portals.yml entries.","triggerScenarios":"Scanning an entry with provider: consider and a valid https careers_url but no consider_board key (or an empty string/0 value that is falsy).","commonSituations":"Adding a Consider-hosted company and capturing its careers_url but missing the board id from the widget embed or page source; an entry converted from another provider that never carried consider_board; a YAML indentation mistake nesting consider_board under the wrong key so it never reaches the entry.","solutions":["Add consider_board: <id> to the entry in portals.yml; find the id in the company's Consider careers widget/embed or the board parameter of their jobs page requests.","Check YAML indentation so consider_board sits on the entry itself, not a sibling/nested mapping.","Confirm the value is non-empty — an empty string or 0 is falsy and triggers the same throw.","Cross-check against a known-working consider entry in portals.yml for the exact key spelling and shape."],"exampleFix":"// before\n- name: mycompany\n  provider: consider\n  careers_url: https://jobs.mycompany.com\n// after\n- name: mycompany\n  provider: consider\n  careers_url: https://jobs.mycompany.com\n  consider_board: 1a2b3c","handlingStrategy":"validation","validationCode":"if (entry.provider === 'consider' && !entry.consider_board) { throw new Error(`consider entry '${entry.name}' is missing consider_board`); }","typeGuard":"const hasConsiderBoard = (entry) => typeof entry.consider_board === 'string' && entry.consider_board.length > 0;","tryCatchPattern":null,"preventionTips":["Extract the board id from the company's Consider careers widget/embed at onboarding time and record it immediately","Keep careers_url and consider_board as a pair in a config template for consider entries","Check YAML nesting so consider_board lands on the entry, not a sibling key","Audit portals.yml periodically for consider entries missing the board id"],"tags":["config","missing-config-field","consider"],"backgroundTag":"missing-required-config-field","analyzedSha":"aac998c7ed7248ea853b720ceeb1fdbeb322fc5d","analyzedAt":"2026-09-16T06:35:29.214Z","contentChangedAt":"2026-09-16T06:35:29.214Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}