Root cause (verified on a live Onyx 5.0.3 instance): pruning a File
connector whose connector_specific_config.file_locations is empty deletes
every document the connector holds — the prune reconciles the index
against the connector's "source" (no files) and removes everything,
including the documents we push via the ingestion API.
We created the connector with prune_freq=None to keep pruning off, but
Onyx's update_connector() rewrites a None prune_freq to
DEFAULT_PRUNING_FREQ (7 days). So any later update to the connector
silently enabled weekly pruning, which wiped the SMB documents after
~1-2 weeks ("disappearing after ~14 days").
Send prune_freq=0 instead: pruning is skipped while prune_freq is falsy,
and 0 (unlike None) survives update_connector() — it is never replaced by
the 7-day default. Verified live: a prune deletes the docs (1->0) while a
re-index does not; prune_freq=0 is stored as 0 and keeps pruning off.
Onyx 5.0 paginated /admin/connector/indexing-status to 10 connectors per
source per page (default page 1). find_cc_pair_id_by_name read only the
first page, so with >10 connectors in a source it missed the existing
AIDO SMB connector and provisioning then failed with
"Connector by this name already exists, duplicate naming not allowed."
Request every connector via the new get_all_connectors flag so the
lookup is reliable regardless of connector count. Verified against the
v5.0 source and a live v5.0 instance.