Skip to content

feat: accounts get <account-login> via get_accounts filter - #54

Merged
chmmou merged 1 commit into
mainfrom
feature/accounts-get-with-login
May 8, 2026
Merged

feat: accounts get <account-login> via get_accounts filter#54
chmmou merged 1 commit into
mainfrom
feature/accounts-get-with-login

Conversation

@chmmou

@chmmou chmmou commented May 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • New kasapi-cli accounts get <account-login> calling get_accounts with an account_login filter; result is unwrapped from the single-entry array, missing logins surface as a not-found error.
  • Existing kasapi-cli accounts get (= get_accountsettings) renamed to accounts settings. This frees up get for the filter pattern and matches mail accounts list|get.
  • Adds a singular key/value Tabular layout on Account, plus the new testdata/account/get_account_response_success.xml fixture.

Add account.Client.Get(ctx, login) calling get_accounts with an
account_login filter; unwrap the single-entry array and surface an
empty result as a not-found error, mirroring mailaccount.Client.Get.

Rename the existing accounts get (get_accountsettings) to accounts
settings so accounts get can take an <account-login> argument. This
matches the established mail accounts list|get pattern.

Add a singular Tabular layout on Account for the key/value detail
view, plus a new singular fixture
testdata/account/get_account_response_success.xml derived from the
existing list fixture.
@chmmou
chmmou merged commit d258bcc into main May 8, 2026
1 check passed
@chmmou
chmmou deleted the feature/accounts-get-with-login branch May 8, 2026 20:13
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.

1 participant