Skip to content

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

Merged
tiensonqin merged 2 commits into
masterfrom
logseq/fix-http-api-property-namespace-9613
Nov 27, 2026
Merged

tiensonqin merged 2 commits 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
Contributor

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 Resolved
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@tiensonqin
tiensonqin merged commit db1d242 into master Nov 27, 2026
5 of 6 checks passed
@tiensonqin
tiensonqin deleted the logseq/fix-http-api-property-namespace-9613 branch November 27, 2026 10:33
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