feat: [M3-7412] - Add new Parent/Child api-v4 endpoints#9944
feat: [M3-7412] - Add new Parent/Child api-v4 endpoints#9944jaalah-akamai merged 29 commits intolinode:developfrom
Conversation
|
Actually I will be added a unit test to |
packages/manager/.changeset/pr-9944-upcoming-features-1701281085057.md
Outdated
Show resolved
Hide resolved
…85057.md Co-authored-by: Mariah Jacobs <114685994+mjac0bs@users.noreply.github.com>
packages/api-v4/.changeset/pr-9944-upcoming-features-1701281121547.md
Outdated
Show resolved
Hide resolved
packages/manager/.changeset/pr-9944-upcoming-features-1701281085057.md
Outdated
Show resolved
Hide resolved
…1547.md Co-authored-by: Dajahi Wiley <114682940+dwiley-akamai@users.noreply.github.com>
…85057.md Co-authored-by: Dajahi Wiley <114682940+dwiley-akamai@users.noreply.github.com>
Exactly |
|
@bnussman-akamai We're going to update this to a mutation due to a recent ask of needing to revoke tokens 👍 |
| }: ChildAccountPayload) => | ||
| useMutation<Token, APIError[], ChildAccountPayload>(() => | ||
| createChildAccountPersonalAccessToken({ euuid, headers }) | ||
| ); |
There was a problem hiding this comment.
The way this will work is from the Parent, we'll create an ephemeral token for the child account in order to log in. While in the Proxy account, we'll be able revoke this the typical way by hitting /profile/tokens/{tokenId}.
Co-authored-by: Mariah Jacobs <114685994+mjac0bs@users.noreply.github.com>
Co-authored-by: Mariah Jacobs <114685994+mjac0bs@users.noreply.github.com>
Co-authored-by: Mariah Jacobs <114685994+mjac0bs@users.noreply.github.com>
Co-authored-by: Mariah Jacobs <114685994+mjac0bs@users.noreply.github.com>
|
Unit test added 🚀 This should be good now |
mjac0bs
left a comment
There was a problem hiding this comment.
Thanks for the unit test. CI looks good; that one e2e failure on rescue-linode is unrelated.
Let's 🚢 !
Co-authored-by: Banks Nussman <115251059+bnussman-akamai@users.noreply.github.com>
|
Coverage Report: ✅ |
Description 📝
New Parent/Child @linode/api-v4 endpoints:
getChildAccountsgetChildAccountcreateChildAccountPersonalAccessTokenChanges 🔄
request.tsxto not override headers that are explicitly passed in viasetHeaders().const { data: linodes } = useLinodesQuery({}, {}, shouldCheckLinodeCount);Preview 📷
How to test 🧪
Test for Request.test.tsx
yarn test src/request.test.tsxAs an Author I have considered 🤔
Check all that apply