Skip to content

feat(projects): add VectorsDB onboarding stages - #15186

Merged
atharvadeosthale merged 2 commits into
mainfrom
feat-vectorsdb-onboarding-stages
Nov 2, 2026
Merged

atharvadeosthale merged 2 commits into
mainfrom
feat-vectorsdb-onboarding-stages

Conversation

@atharvadeosthale

@atharvadeosthale atharvadeosthale commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

What does this PR do?

Adds vectorsDB.create, vectorsDB.createCollection and vectorsDB.createDocument to the project onboarding stages in app/config/onboarding.php.

Onboarding already records the first time a project creates a TablesDB, DocumentsDB or legacy database, collection and document. VectorsDB was the only database product missing. With these stages, the stages API lists VectorsDB and the shutdown hook in app/controllers/shared/api.php stamps it like the others.

The console onboarding checklist counts the new stages too: in apps/console/src/lib/onboarding/project-onboarding.ts, "Create a database" and "Define tables and load data" are done when a project completes a VectorsDB database, collection or document, as they already are for the other database products.

Test Plan

  • StagesBase::testListProjectStages now also expects vectorsDB.create.
  • New StagesBase::testCreateVectorsDBDatabaseCompletesStage: creating a VectorsDB database with an API key completes the vectorsDB.create stage.
  • Tried on a local Appwrite Cloud stack with these keys: a POST /v1/vectorsdb call recorded vectorsDB.create on the project's onboarding map.

Related PRs and Issues

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs? No API metadata changes.

Project onboarding records the first time a project creates a TablesDB,
DocumentsDB or legacy database, table and row, but not a VectorsDB database,
collection or document.
@luxor-code-review

luxor-code-review Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Review complete. No blocking issues — approved ✅; 1 nitpick below.

🧹 Nitpicks (1) — 🟢 1 low
  • 🟢 Console onboarding lists miss new vectorsDB stages (onboarding.php:38) — The PR registers vectorsDB.create, vectorsDB.createCollection, and vectorsDB.createDocument as tracked onboarding stages (app/config/onboarding.php:37-40), but the console consumer that reacts to these stage keys was not updated.

The PR wires the VectorsDB service into project onboarding: three new stage keys are registered server-side, and the shared e2e base for the Project service learns to exercise and await them. Server-side wiring and test coverage are consistent with the existing databases/tablesDB stages.

Files Change
app/config/onboarding.php Adds vectorsDB.create, vectorsDB.createCollection, and vectorsDB.createDocument stage keys to the tracked onboarding stages.
tests/e2e/Services/Project/StagesBase.php Extends the onboarding e2e suite to create a VectorsDB database, collection, and document via the /vectorsdb route and assert the corresponding stages complete.

Reviewed commit: 00ae2c0

@ghost

ghost commented Nov 2, 2026 •

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

Registers VectorsDB database, collection, and document creation as project onboarding stages, and adds server E2E coverage for listing and completing the database stage. The Console onboarding checklist now recognizes these VectorsDB stages when calculating database-step progress.

Latest changes: The newest commit adds the VectorsDB database and schema method keys to the Console onboarding checklist’s tracked stage arrays.

Verdict New comments Fixed Still open
✅ Approved 0 0 0
📂 Walkthrough · 3
File Change
app/config/onboarding.php Registers the VectorsDB database, collection, and document creation methods as onboarding stages.
tests/e2e/Services/Project/StagesBase.php Checks that the VectorsDB database stage is listed and completes after database creation.
apps/console/src/lib/onboarding/project-onboarding.ts Includes VectorsDB database and schema methods in the Console onboarding progress keys.

Reviewed the commits since 00ae2c0 · Details · Comment @hansi-codes review to re-run, or mention @hansi-codes with a question.

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Tier S · Looks good to merge. Summary

@atharvadeosthale

Copy link
Copy Markdown
Member Author

Fixed the nitpick in b443bc3: the console's "Create a database" and "Define tables and load data" steps now also count vectorsDB.create, vectorsDB.createCollection and vectorsDB.createDocument.

@pkg-pr-new

pkg-pr-new Bot commented Nov 2, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/appwrite/appwrite/@appwrite.io/console@15186

commit: b443bc3

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

Security rules

No new WARNING or ERROR findings from security rules.

6 existing findings tracked in .semgrep/baseline.json
  • php.appwrite.guest-write-without-abuse-limit (3)
  • php.appwrite.secret-compare-timing (1)
  • php.appwrite.weak-secret-env-default (2)

Posted by Checks / Rules. Re-runs update this comment in place. Rule details and baseline: .semgrep/README.md.

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

✨ Benchmark results

Comparing main (before) → feat-vectorsdb-onboarding-stages (after).

Metric Before After Change
🚀 Requests/sec 164.16 158.68 ⚪ -3.3%
⏱️ Latency P50 103.73 ms 109.61 ms 🔴 +5.7%
⏱️ Latency P95 248.73 ms 256.2 ms ⚪ +3%
Per-scenario breakdown & investigation details

Metrics below reflect the current branch (after). Δ P95 compares against the base.

Scenario P50 (ms) P95 (ms) Requests RPS Δ P95 (ms)
API total 109.61 256.2 10,260 158.68 +7.46
Account 214.55 398.27 540 9.04 +23.73
TablesDB 105.27 195.33 5,580 89.26 +6.3
Storage 101.56 229.18 2,700 44.87 -3.02
Functions 153.58 312.87 1,440 24.6 +19.65

Top API waits (after)

API request Max wait (ms)
account.name.update 592.98
functions.create 517.66
account.prefs.update 510.85
tablesdb.rows.get 485.29
functions.variables.create 483.41

@atharvadeosthale
atharvadeosthale merged commit 9fbb1f1 into main Nov 2, 2026
75 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants