You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(api): core.inquiries does not exist, so GET/POST /v1/inquiries always 500 #476
The SDK's Inquiry type, list, create, respond, templates, bulkMarkAsRead and bulkArchive all model the first concept. #443 and the app's inquiry pages need the second. The shared name is doing real damage — it is why the two got conflated in the first place.
Decide which one is real
Either:
the messaging concept is wanted → add a migration creating core.inquiries with the columns the endpoints and SDK type already assume; or
it is not → delete those endpoints and the SDK methods, and rename the remaining surface to something unambiguous (applicationInquiries), so inquiries stops meaning two things.
Worth resolving before porting the remaining 15 methods tracked in #443, since the answer changes what those methods should even be called.
#447 tracks the general form of this — an audit found 85 SDK methods calling endpoints that don't exist. This issue is the sharpest instance, and the one that blocks #443, since the fix here decides whether the remaining 15 inquiry methods belong on client.inquiries or a new client.applicationInquiries.
Same shape as #482 (profiles routes selecting nonexistent columns / core.employers), so a fix pattern for one likely applies to the other.
Confirmed still broken, and now part of a larger pattern: a sweep of every .from() in every route file found 45 references to tables that do not exist, across 24 names and 14 files (#660). core.inquiries is 2 of them.
#651 adds a guard so new instances fail a test rather than a page: it parses every .from() against the checked-in generated types, with the current 45 recorded as a baseline that can only shrink. core.inquiries is in that baseline — closing this issue means removing its entry, and the test fails if it is fixed but left listed.
Still live, re-verified today against the running API:
GET /v1/inquiries
500 {"error":"Failed to fetch inquiries",
"message":"Could not find the table 'core.inquiries' in the schema cache"}
select to_regclass('core.inquiries') → MISSING. core.inquiry_commentsdoes exist, which is the confusing part: the thread's messages have a home, the thread itself does not.
This now carries a store-readiness consequence
Two of them, neither obvious when this was filed:
A reviewer clicking into an inquiry gets a 500. Both stores exercise the app; a core screen erroring is a rejection risk, not just a bug.
Activity
thinkclay commentedon Jul 30, 2026
#447 tracks the general form of this — an audit found 85 SDK methods calling endpoints that don't exist. This issue is the sharpest instance, and the one that blocks #443, since the fix here decides whether the remaining 15 inquiry methods belong on
client.inquiriesor a newclient.applicationInquiries.Same shape as #482 (profiles routes selecting nonexistent columns /
core.employers), so a fix pattern for one likely applies to the other.test(api): fail when a route reads a table that does not exist
thinkclay commentedon Aug 27, 2026
Confirmed still broken, and now part of a larger pattern: a sweep of every
.from()in every route file found 45 references to tables that do not exist, across 24 names and 14 files (#660).core.inquiriesis 2 of them.#651 adds a guard so new instances fail a test rather than a page: it parses every
.from()against the checked-in generated types, with the current 45 recorded as a baseline that can only shrink.core.inquiriesis in that baseline — closing this issue means removing its entry, and the test fails if it is fixed but left listed.test(api): fail when a route reads a table that does not exist (#651)
thinkclay commentedon Sep 10, 2026
Still live, re-verified today against the running API:
select to_regclass('core.inquiries')→MISSING.core.inquiry_commentsdoes exist, which is the confusing part: the thread's messages have a home, the thread itself does not.This now carries a store-readiness consequence
Two of them, neither obvious when this was filed:
So this is on the iOS/Android readiness path now, not just the API-correctness backlog. Raising priority accordingly.
fix(types): regenerate types.ts — the local database was right, not d…
fix(inquiries): retire list() and create(), which called a table that…
ci(types): guard types.ts generation, and finish migration 350's move (…