Commit Graph
2 Commits
Author SHA1 Message Date
Xuanwo 181ac2b567 test: match SDK documentation fallback URL (#4875)
Update the SDK documentation-link CI assertion to match the production
fallback URL introduced by #4870.

#4870 changed `rust/lancedb/src/docs.rs` from `/enterprise` to
`/basics/embedded-vs-enterprise`. The extractor already reads that
source, but its regression test still expected the old value. Keep the
assertion and update only the expected URL.

Verification: `python -m unittest discover -s ci/tests -v` passes 35/35
on Python 3.12. The same command on main `3c4aaa8e` fails only
`test_extracts_all_links_from_repo_docs_rs`.
2026-11-05 19:43:12 +08:00
Xuanwo 2d70bec53a feat: add UTM-tagged docs links to SDK warnings and enterprise-only errors (#4797)
Add a central documentation link registry (`lancedb::docs::DocLink`) in
the Rust core that builds `docs.lancedb.com` URLs with UTM parameters
(`utm_source=lancedb_sdk`, `utm_medium=warning|error`,
`utm_campaign=<id>`, `utm_content=<sdk>-<version>`) placed before any
`#anchor` fragment and without user-identifying data.

- Initialize `utm_content` per language binding (`python`, `nodejs`,
`cli`, defaulting to `rust`) and expose the link builder to Python so
`DBConnection` and `Job` stubs reuse the core definitions.
- Append published documentation links to Enterprise-only `NotSupported`
/ `NotImplementedError` errors across database, job, catalog, and table
operations.
- Emit rate-limited maintenance warnings (once per table per process
when `warn` logging is enabled) when opening a native table with at
least 100 small fragments (`< 100k` physical rows each) or at least
1,000,000 unindexed rows on an optimizable user index, reading only
manifest metadata without opening data or `_indices/` files, and
document the thresholds in the compaction and reindexing guides.
- Verify published/in-repo `docs/web/` targets and `#anchor` fragments
in unit tests and include extracted SDK links in the scheduled
`docs-link-check` workflow.

Linear: OSS-2772
2026-11-03 14:12:15 +08:00