Skip to content

SP-2354: Add export and import bookmarks commands - #404

Merged
Roberto Welzel Filho (roberto-welzel) merged 6 commits into
mainfrom
sp-2354-export-import-bookmarks
Aug 7, 2026
Merged

SP-2354: Add export and import bookmarks commands#404
Roberto Welzel Filho (roberto-welzel) merged 6 commits into
mainfrom
sp-2354-export-import-bookmarks

Conversation

@roberto-welzel

Copy link
Copy Markdown
Contributor

Description

Add export bookmarks and import bookmarks commands that wrap the package-manager bookmark batch APIs. These are used by the content-deployment-pipeline to copy bookmarks during T2TC.

Relevant links

Checklist

  • I have self-reviewed this PR
  • I have tested the change and proved that it works in different scenarios
  • I have updated docs if needed

Made with Cursor

Includes-AI-Code: true
Co-authored-by: Cursor <cursoragent@cursor.com>
Replace `any` types with proper interfaces for bookmarks API
methods, prefix unused `command` parameter with underscore,
use template literal for string interpolation, and add error
path tests plus module registration tests to reach coverage
threshold.

Includes-AI-Code: true
Co-authored-by: Cursor <cursoragent@cursor.com>
Refactor API methods to use idiomatic try/catch with await
instead of .catch() chains, and pass the original error as
cause to FatalError for proper error chain preservation.

Includes-AI-Code: true
Co-authored-by: Cursor <cursoragent@cursor.com>
Mark class members as readonly and use toHaveLength() assertions
in tests for better error reporting.

Includes-AI-Code: true
Co-authored-by: Cursor <cursoragent@cursor.com>
Comment thread src/commands/bookmarks/bookmarks-api.ts Outdated
Comment thread src/commands/bookmarks/bookmarks-command.service.ts
Comment thread src/commands/bookmarks/bookmarks-command.service.ts
Drop { cause: e } from FatalError constructors to stay
consistent with the pattern used across the rest of the
codebase.

Includes-AI-Code: true
Co-authored-by: Cursor <cursoragent@cursor.com>

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.

Image

Includes-AI-Code: true
Co-authored-by: Cursor <cursoragent@cursor.com>
@sonarqubecloud

sonarqubecloud Bot commented Aug 7, 2026

Copy link
Copy Markdown

@roberto-welzel
Roberto Welzel Filho (roberto-welzel) merged commit 32a9594 into main Aug 7, 2026
5 checks passed
@roberto-welzel
Roberto Welzel Filho (roberto-welzel) deleted the sp-2354-export-import-bookmarks branch August 7, 2026 13: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.

3 participants