MPT-21504 migrate account users to /accounts/accounts/{id}/users#329
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (10)
💤 Files with no reviewable changes (6)
📝 WalkthroughWalkthroughThis PR removes the account_users service hierarchy from the Accounts resource and updates the API endpoint paths for the remaining accounts-users and accounts-user-groups resources to include an extra "accounts" path segment in the URL structure. ChangesAccount-users service removal and endpoint path updates
🎯 2 (Simple) | ⏱️ ~10 minutes
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
The platform removed the deprecated /v1/accounts/account-users/* and
/v1/accounts/{id}/users/* endpoint families (now 404). Re-point the
account-scoped users and user-groups services to the surviving
/v1/accounts/accounts/{id}/users[/...] prefix and delete the
account-users service and its sub-resource, along with their unit
tests. Verified with live API probes (old paths return 404, new path
returns 200) and the accounts_users e2e suite passes end to end.
c1a02d5 to
c63f13d
Compare
|



🤖 AI-generated PR — Please review carefully.
Summary
The platform removed the deprecated
/v1/accounts/account-users/*and/v1/accounts/{id}/users/*endpoint families — both now return 404 and break the e2e suite. This PR migrates the client to the surviving/v1/accounts/accounts/{id}/users[/...]prefix and drops the dead surface.AccountsUsersServiceandAccountsUserGroupsServiceto/public/v1/accounts/accounts/{account_id}/users[...].AccountUsersService/AccountUserGroupsServiceand theirAccounts.account_users/AsyncAccounts.account_usersaccessors.Endpoint verification (live API, ops token)
GET /public/v1/accounts/account-usersGET /public/v1/accounts/account-users/{id}GET /public/v1/accounts/{account_id}/usersGET /public/v1/accounts/accounts/{account_id}/usersTest plan
make test args="tests/unit/resources/accounts -q"— 234 passed.make check— ruff format/check, flake8, mypy, uv lock all pass.make e2e args=tests/e2e/accounts/accounts_users— 22 passed (previously 18 failed + 2 errors against the old prefix).client.accounts.account_usersaccessor.Refs: MPT-21504
Closes MPT-21504