Repository navigation
Add users.links commands - #108
Merged
Merged
Conversation
Royalflamejlh
marked this pull request as ready for review
October 5, 2026 14:45
BigGig17
requested changes
Oct 5, 2026
BigGig17
left a comment
Contributor
There was a problem hiding this comment.
I'd like to avoid 1000+ line PRs, could we break this one up a little bit?
Royalflamejlh
force-pushed
the
john/feat/users-links-commands
branch
from
October 5, 2026 15:20
12e90e2 to
e0ddc82
Compare
Royalflamejlh
force-pushed
the
john/feat/users-links-commands
branch
from
October 5, 2026 15:22
e0ddc82 to
d06b1bb
Compare
Royalflamejlh
changed the base branch from
main
to
john/feat/users-linkable-accounts
October 5, 2026 15:22
Royalflamejlh
marked this pull request as draft
October 5, 2026 15:22
Royalflamejlh
force-pushed
the
john/feat/users-links-commands
branch
2 times, most recently
from
October 5, 2026 15:49
0ebc2d2 to
1aaba59
Compare
Royalflamejlh
marked this pull request as ready for review
October 5, 2026 15:53
Royalflamejlh
marked this pull request as draft
October 5, 2026 16:32
Royalflamejlh
marked this pull request as ready for review
October 5, 2026 18:51
Adds `dx users links create`, `delete`, `list`, and `set`, wrapping the matching `users.links.*` Web API methods.
Renders the `account` object that get-dx/app#18740 adds to each `users.links.list` link, reusing the linkableAccounts detail rows.
Royalflamejlh
force-pushed
the
john/feat/users-links-commands
branch
from
October 5, 2026 20:59
3676e7c to
3258477
Compare
andrewjensen
approved these changes
Oct 5, 2026
| ok: true; | ||
| }; | ||
|
|
||
| async function createLink( |
Collaborator
There was a problem hiding this comment.
Non-blocking: I see that the endpoint has a lot of domain-specific error codes defined. You may want to create a mapping of codes to human-readable labels to render with rich text, like this:
const ERROR_LABELS = {
manual_link_conflict: "The account is manually linked to another user.",
link_update_in_progress: "Another request for the same user and source did not finish in time. Retry the request."
// etc.
}We do a more minimal version of this in this teams error handling.
Contributor
Author
There was a problem hiding this comment.
Will open follow up PR for this
This was referenced Oct 5, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
dx users links create,delete,list, andset, wrapping the matchingusers.links.*Web API methods. Stacked on #109, which adds thedx userscommand group anddx users linkableAccounts list.The user ID is a positional argument, and
--sourceand--account-idare required flags, the same wayworkflowRuns addLinkhandles its required params.dx users links settakes--account-idsas a comma-separated list. Passing""sends an empty array, which unlinks every account for that source, as the API docs describe.