Skip to content

[PM-40202] [PM-40196] Aliases CLI collection items as shared-folder - #23897

Merged
aaronjordan merged 11 commits into
mainfrom
aj/pm-40202-alias-collections-as-folders
Nov 4, 2026
Merged

aaronjordan merged 11 commits into
mainfrom
aj/pm-40202-alias-collections-as-folders

Conversation

@aaronjordan

@aaronjordan aaronjordan commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

🎟️ Tracking

PM-40202
PM-40196

📔 Objective

Adds new CLI aliases for shared-folder* where we already accept collection*. All collection handling is reused for shared folders and existing unit tests are repeated in the context of shared folders. Notably, I did not add new tests where collection does not have coverage as net-new tests seem out of scope for the ask.

📸 Screenshots

VFO1 flag off VFO1 flag on
flag_off_list flag_on_list

@codecov

codecov Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 10.71429% with 75 lines in your changes missing coverage. Please review.
✅ Project coverage is 60.33%. Comparing base (9a03963) to head (ded013f).
⚠️ Report is 77 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
apps/cli/src/vault.program.ts 0.00% 47 Missing ⚠️
apps/cli/src/commands/list.command.ts 0.00% 15 Missing ⚠️
apps/cli/src/commands/get.command.ts 0.00% 6 Missing ⚠️
apps/cli/src/commands/edit.command.ts 66.66% 2 Missing ⚠️
apps/cli/src/vault/create.command.ts 50.00% 2 Missing ⚠️
apps/cli/src/vault/models/folder.response.ts 0.00% 2 Missing ⚠️
...min-console/models/response/collection.response.ts 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #23897      +/-   ##
==========================================
+ Coverage   59.40%   60.33%   +0.93%     
==========================================
  Files        4703     4796      +93     
  Lines      148903   152765    +3862     
  Branches    23755    24394     +639     
==========================================
+ Hits        88454    92172    +3718     
+ Misses      54283    54248      -35     
- Partials     6166     6345     +179     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@aaronjordan
aaronjordan force-pushed the aj/pm-40202-alias-collections-as-folders branch from 80b472e to c3dfb91 Compare October 15, 2026 22:52
@aaronjordan
aaronjordan marked this pull request as ready for review October 15, 2026 22:53
@aaronjordan
aaronjordan requested a review from a team as a code owner October 15, 2026 22:53
@aaronjordan aaronjordan changed the title [PM-40202] Aliases collection items as shared-folder [PM-40202] Aliases CLI collection items as shared-folder Oct 15, 2026
@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

🤖 Bitwarden Claude Code Review

Overall Assessment: APPROVE

This PR adds shared-folder aliases for collection objects and my-folder aliases for folder objects across the CLI list, get, get template, create, edit and delete commands, plus a hidden --sharedfolderid filter for list. Each alias falls through to the existing handler. The recent commits extend the vfo1-foundation gating to help examples and to the object field in JSON output (folder/my-folder, collection/shared-folder, org-collection/org-shared-folder), and the new configService dependency is wired into both the vault.program.ts and oss-serve-configurator.ts constructors. No new issues found. With the flag on, scripts that match on the object value will see the new strings, which appears to be the intended outcome of PM-45920/PM-45921.

Comment thread apps/cli/src/vault.program.ts Resolved
@aaronjordan
aaronjordan requested a review from nikwithak October 19, 2026 16:50
@aaronjordan aaronjordan added the t:feature Change Type - Feature Development label Oct 19, 2026
@aaronjordan

aaronjordan commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor Author

📝 I've added the PM-40196 documentation related to these methods inline with the implementation. It felt strange to defer them. Updated title and description to reflect this.

@aaronjordan aaronjordan changed the title [PM-40202] Aliases CLI collection items as shared-folder [PM-40202] [PM-40196] Aliases CLI collection items as shared-folder Oct 19, 2026

@nikwithak nikwithak 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.

Overall looks good - just a couple of notes about the string changes

Comment thread apps/cli/src/vault.program.ts Resolved
Comment thread apps/cli/src/vault.program.ts Resolved
@nikwithak nikwithak added the ai-review Request a Claude code review label Oct 19, 2026
Comment thread apps/cli/src/vault.program.ts Resolved
@aaronjordan
aaronjordan force-pushed the aj/pm-40202-alias-collections-as-folders branch from f08acd6 to 9006306 Compare October 21, 2026 21:58
@aaronjordan
aaronjordan requested a review from nikwithak October 21, 2026 22:10
nikwithak
nikwithak previously approved these changes Oct 21, 2026
Comment thread apps/cli/src/vault.program.ts Resolved
nikwithak
nikwithak previously approved these changes Oct 21, 2026
@aaronjordan

aaronjordan commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor Author

📝 Added commits to handle defects reported in PM-45920 and PM-45921. Also added screenshots for clarity.

@aaronjordan
aaronjordan merged commit c6ade9a into main Nov 4, 2026
124 of 135 checks passed
@aaronjordan
aaronjordan deleted the aj/pm-40202-alias-collections-as-folders branch November 4, 2026 18:28
@djsmith85 djsmith85 added the cli CLI Application label Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-review Request a Claude code review cli CLI Application t:feature Change Type - Feature Development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants