Skip to content

Fix HTTP API property namespace in db-version-changes.md - #141

Open
tiensonqin wants to merge 1 commit into
masterfrom
logseq/fix-http-api-property-namespace-9613
Open

Fix HTTP API property namespace in db-version-changes.md#141
tiensonqin wants to merge 1 commit into
masterfrom
logseq/fix-http-api-property-namespace-9613

Conversation

@tiensonqin

Copy link
Copy Markdown
Collaborator

Summary

db-version-changes.md incorrectly stated that HTTP API property writes use :plugin.property._api. The shipping implementation in logseq/logseq falls back to _test_plugin when there is no plugin id (e.g. HTTP API callers without a PluginLocal context).

This updates the docs to match actual behavior:

  • Properties: :plugin.property._test_plugin
  • Classes: :plugin.class._test_plugin

Fixes logseq/db-test#1051 (formerly logseq/logseq#13028).

Test plan

  • Verified _api no longer appears in the docs repo
  • Confirmed get-sanitized-plugin-id in logseq/logseq src/main/logseq/api/block.cljs uses "_test_plugin" as the fallback
Open in Web Open in Cursor 

Document the actual fallback namespace :plugin.property._test_plugin
(and :plugin.class._test_plugin for classes) used when property writes
come from the HTTP API or other callers without a plugin id.

Fixes logseq/db-test#1051

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
Copilot AI lite review requested due to automatic review settings August 17, 2026 16:35

Copilot AI 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.

Pull request overview

Updates the database version change documentation to accurately reflect the namespace used for HTTP API callers (or callers without a plugin id) when writing properties/classes.

Changes:

  • Replace the incorrect :plugin.property._api namespace reference with the documented fallback :plugin.property._test_plugin.
  • Document the analogous class namespace fallback :plugin.class._test_plugin.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread db-version-changes.md
Comment on lines +127 to 128
* All property related calls like `upsertBlockProperty` work with DB graphs. Property values can now be numbers and booleans. When called through the HTTP API (or any caller without a plugin id), properties are namespaced to `:plugin.property._test_plugin` (and classes to `:plugin.class._test_plugin`).
* See [this test file](https://github.com/logseq/logseq/blob/master/clj-e2e/test/logseq/e2e/plugins_basic_test.clj) for using the api with DB graphs. No newline at end of file
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.

DB: HTTP API property writes land in :plugin.property._test_plugin/*, but docs specify :plugin.property._api

3 participants