Commit graph

7 commits

Author SHA1 Message Date
Mahmoud Abdelwahab
8b13b75256
fix: dedupe workspaces in list output (#852)
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.
2026-04-21 15:52:26 +02:00
Jake Runzer
93e9078ac1
Add workspace info to list --json output (#721)
Include nested workspace object with id and name for each project.
Also add pagination (first: 500) to member workspace projects query.
2026-01-07 12:07:36 -05:00
Jake Runzer
4e830ff507
Fix deprecated GraphQL field usage (#709)
* Fix deprecated GraphQL field usage

Migrate from deprecated service.serviceInstances and volume.volumeInstances
to environment.serviceInstances and environment.volumeInstances. Also removes
deprecated team field usage in favor of workspace id.

* Extract common service/environment lookup helpers

- Add get_service_ids_in_env() and find_service_instance() to controllers/project.rs
- Add build_service_env_map! macro in link.rs
- Replace duplicated lookup patterns across commands
2025-12-09 17:19:52 -05:00
Paulo Cabral Sanz
a4984de90f
Use workspace based queries/mutations (#664)
Team concept is being removed from the platform
2025-09-11 19:59:51 -03:00
Jake Runzer
84f420414e
filter deleted projects from link command (#633)
* filter deleted projects from link command

* imports
2025-05-23 18:34:02 -04:00
Jake Runzer
528f675bde
SSH session mode (#628)
* start of ssh --tmux flag

* small refactoring

* reconnect sort of working

* auto reconnect on disconnect

* better spinners

* lint fix

* fix tmux connect

* comment

* fix windows

* rename --tmux to --session

* fix mouse scrolling
2025-05-09 16:55:54 -04:00
Paulo Cabral Sanz
72f67b0c08
Properly show external workspaces (#610)
* Properly show external workspaces

We are going away with the concept of a personal workspace. Right now personal workspaces in the CLI have both projects the user is a member of and projects owned by the workspace created for the user when they signed up.

And that workspace created for the user when they signup now has a team, so it appears twice in the selector.

To solve this we stop using `me.projects` and go throught he externalWorkspaces query, displaying each external project in its workspace.

* Cleanup workspace fetching

* Improve messaging when using the deprecated flag
2025-03-25 14:02:11 -03:00