Skip to content

Fix Ashby plugin crash on null secondary location address - #703

Merged
andreugordillovazquez merged 1 commit into
mainfrom
fix/ashby-null-secondary-location-address
Oct 9, 2026
Merged

andreugordillovazquez merged 1 commit into
mainfrom
fix/ashby-null-secondary-location-address

Conversation

@andreugordillovazquez

Copy link
Copy Markdown
Member

Summary

  • Root cause: Ashby's posting API can return null for secondaryLocations[].address (seen on the artemis board for a "Remote" secondary location). SecondaryLocationSchema required an object, so Valibot failed with Invalid type: Expected Object but received null and the plugin threw "Error parsing Ashby data". Primary address was already nullable; secondary locations were not.
  • Fix: Allow null for secondary location address. Downstream code (extractLocation, location refs via location slug) already handles null addresses.
  • Scope: Not specific to artemis — any Ashby board that omits a secondary address would hit the same bug. Boards without null secondary addresses continue to parse as before.

Test plan

  • Unit tests for SecondaryLocationSchema / JobSchema with null secondary address
  • Parsed live artemis job board response successfully after the fix (fails with the old schema)
  • Parsed live notion, linear, and openai boards successfully (no regressions)
  • yarn check-vitest, check-typescript, check-biome, check-eslint in plugins/ashby

Ashby job boards can return null for secondaryLocations[].address
(e.g. artemis "Remote"), which failed validation even though primary
job address was already nullable.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-09T10:15:37.649234Z 9880efd PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@triozer triozer added the Auto submit to Marketplace on merge Submits the plugin to the marketplace after merging label Oct 9, 2026
@andreugordillovazquez
andreugordillovazquez added this pull request to the merge queue Oct 9, 2026
Merged via the queue into main with commit 367a053 Oct 9, 2026
9 of 10 checks passed
@andreugordillovazquez
andreugordillovazquez deleted the fix/ashby-null-secondary-location-address branch October 9, 2026 10:22

This branch had an error being deployed

1 failed deployment
production — 9880efd1 Deployed Oct 9, 2026 by andreugordillovazquez via Submit Changed Plugins #114
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Auto submit to Marketplace on merge Submits the plugin to the marketplace after merging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants