From 82062cd123caf20153cd0be244ad25c15c3cd181 Mon Sep 17 00:00:00 2001 From: Stephen von Takach Date: Thu, 15 Oct 2026 10:35:19 +1100 Subject: [PATCH] feat(root): remove reindex and backfill Both were no-ops since search moved to PostgreSQL (PPT-2644), deprecated in #29, and rest-api has now removed the endpoints (PlaceOS/rest-api#454), so they only answered 404. ReindexOptions goes with them. Released as a minor: nothing in PlaceOS calls either. Co-Authored-By: Claude Opus 5.5 --- src/api.ts | 3 --- src/root/functions.ts | 20 +------------------- src/root/interfaces.ts | 4 ---- 3 files changed, 1 insertion(+), 26 deletions(-) diff --git a/src/api.ts b/src/api.ts index 7e5ca5ac2..9ad82d7d9 100644 --- a/src/api.ts +++ b/src/api.ts @@ -344,18 +344,15 @@ export { PlaceRepository } from './repositories/repository'; export { apiScopes, - backfill, coreVersions, healthCheck, platformInfo, - reindex, serviceVersion, signal, } from './root/functions'; export type { PlacePlatformInfo, PlaceVersion, - ReindexOptions, SignalOptions, } from './root/interfaces'; diff --git a/src/root/functions.ts b/src/root/functions.ts index fb9668c31..d8da4f994 100644 --- a/src/root/functions.ts +++ b/src/root/functions.ts @@ -2,12 +2,7 @@ import { apiEndpoint } from '../auth/functions'; import { get, post } from '../http/functions'; import { toQueryString } from '../utilities/api'; import { HashMap } from '../utilities/types'; -import { - PlacePlatformInfo, - PlaceVersion, - ReindexOptions, - SignalOptions, -} from './interfaces'; +import { PlacePlatformInfo, PlaceVersion, SignalOptions } from './interfaces'; /** Check API health */ export function healthCheck(): Promise { @@ -39,16 +34,3 @@ export function signal(channel: string, body: HashMap = {}): Promise { const q = toQueryString({ channel } as SignalOptions); return post(`${apiEndpoint()}/signal?${q}`, body).then(() => undefined); } - -/** @deprecated No-op since PlaceOS moved search to PostgreSQL (PPT-2644); will be removed */ -export function reindex(query_params: ReindexOptions = {}): Promise { - const q = toQueryString(query_params); - return post(`${apiEndpoint()}/reindex${q ? '?' + q : ''}`, {}).then( - () => undefined, - ); -} - -/** @deprecated No-op since PlaceOS moved search to PostgreSQL (PPT-2644); will be removed */ -export function backfill(): Promise { - return post(`${apiEndpoint()}/backfill`, {}).then(() => undefined); -} diff --git a/src/root/interfaces.ts b/src/root/interfaces.ts index 14425dc5e..be455e33f 100644 --- a/src/root/interfaces.ts +++ b/src/root/interfaces.ts @@ -14,7 +14,3 @@ export interface PlaceVersion { export interface SignalOptions { channel: string; } - -export interface ReindexOptions { - backfill?: boolean; -}