Skip to content

fix: dedupe workspaces in list output#852

Merged
m-abdelwahab merged 1 commit intomasterfrom
mahmoud/dedupe-workspaces
Apr 21, 2026
Merged

fix: dedupe workspaces in list output#852
m-abdelwahab merged 1 commit intomasterfrom
mahmoud/dedupe-workspaces

Conversation

@m-abdelwahab
Copy link
Copy Markdown
Collaborator

@m-abdelwahab m-abdelwahab commented Apr 21, 2026

Summary

  • Dedupe workspaces by id when merging me.workspaces with externalWorkspaces — a workspace the user both owns and has external (project-level) access to no longer appears twice in railway list, railway project list, or railway whoami --json.

Closes #844, #831

Workspaces returned by `me.workspaces` and `externalWorkspaces` can
overlap when a user has both workspace membership and project-level
access to the same workspace, causing duplicates in `railway list`,
`railway project list`, and `railway whoami --json`. Dedupe by id
while merging, preferring the Member variant (richer data).

Closes #844, #831.
@m-abdelwahab m-abdelwahab added the release/patch Author patch release label Apr 21, 2026
@m-abdelwahab m-abdelwahab merged commit 8b13b75 into master Apr 21, 2026
6 of 7 checks passed
@m-abdelwahab m-abdelwahab deleted the mahmoud/dedupe-workspaces branch April 21, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release/patch Author patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLI duplicates output when running railway list and railway project list

1 participant