Skip to content

Display project name in workspaces list

What does this MR do and why?

In #408623 (closed), we removed the possibility of obtaining a project’s reference in the Workspace’s GraphQL graph for security reasons. The Workspaces list is not displaying the Workspace’s related project name anymore.

Solution

Use the projects GraphQL query to lookup all the Workspaces’ associated projects. Display the projects’ name in the Workspaces list.

Screenshots or screen recordings

Before After
Screenshot_2023-05-04_at_4.06.31_PM Screenshot_2023-05-04_at_4.17.41_PM

How to set up and validate locally

  1. Enable the remote development feature flag Feature.enable(:remote_development_feature_flag)
  2. You might need to run gdk restart rails-web so rails reconfigure the routes.
  3. Open http://gdk.test:3000/-/remote_development/workspaces in your Web Browser.
  4. You should see a list of workspaces like the screenshots above.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #409093 (closed)

Edited by David O'Regan

Merge request reports