Skip to content

Remove download workspace button from the workspaces list and admin dashboard #14393

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 8, 2022

Conversation

gtsiolis
Copy link
Contributor

@gtsiolis gtsiolis commented Nov 3, 2022

Description

Remove download workspace button from admin.

Related Issue(s)

Fixes #14381 #14382

How to test

  1. Go to /admin/workspaces.
  2. Search for a workspace.
  3. Notice the Download Workspace button is now missing.

Release Notes

NONE

Documentation

Werft options:

  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-integration-tests=all
    Valid options are all, workspace, webapp, ide

@gtsiolis gtsiolis requested a review from a team November 3, 2022 10:48
@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label Nov 3, 2022
@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-gt-remove-download-workspace-button-on-admin.1 because the annotations in the pull request description changed
(with .werft/ from main)

@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-gt-remove-download-workspace-button-on-admin.2 because the annotations in the pull request description changed
(with .werft/ from main)

@easyCZ
Copy link
Member

easyCZ commented Nov 3, 2022

If this is just removed from the UI, nothing stops me from going to that URL and still downloading the workspace. Shall we remove the endpoint also?

@gtsiolis
Copy link
Contributor Author

gtsiolis commented Nov 3, 2022

Thanks for taking a look, @easyCZ! 🍻

I've left some thoughts in #14364 (comment).

target="_blank"
rel="noreferrer"
>
Learn more
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This currently links to #7901 as a minimal viable change. If and when we have a section in the docs we can link to for extensive explanation we could do that. Cc @kylos101 @atduarte

From #14364 (comment):

Current state of #14393
Screenshot 2022-11-03 at 3 06 37 PM

@gtsiolis
Copy link
Contributor Author

gtsiolis commented Nov 3, 2022

Here's how we can proceed with this PR, see #14364 (comment):

So, where can we go from here?

  1. Either someone from the WebApp or Workspace team picking up Remove download workspace button from the workspaces list and admin dashboard #14393 to properly resolve Update dashboard to remove download feature #14381 and Update admin page by removing download feature #14382.
  2. Keep the Remove download workspace button from the workspaces list and admin dashboard #14393 as a small MVC and merge the change that only removes the UI from the admin dashboard.
  3. Closing Remove download workspace button from the workspaces list and admin dashboard #14393 and letting someone from the team create a new PR from scratch.

@laushinka
Copy link
Contributor

laushinka commented Nov 8, 2022

  1. Either someone from the WebApp or Workspace team picking up Remove download workspace button from admin #14393 to properly resolve Update dashboard to remove download feature #14381 and Update admin page by removing download feature #14382.
  2. Keep the Remove download workspace button from admin #14393 as a small MVC and merge the change that only removes the UI from the admin dashboard.
  3. Closing Remove download workspace button from admin #14393 and letting someone from the team create a new PR from scratch.

Looks like removing the functionality should be covered in this issue[1], and this PR covers #14382. Maybe we can rename feature to button in the title, and then we can ship this.

@gtsiolis
Copy link
Contributor Author

gtsiolis commented Nov 8, 2022

Thanks for taking a look @laushinka!

1️⃣ Re-posting from #14364 (comment):

@kylos101 #14393 could already cover #14483, but I'll leave this to @easyCZ to decide, see 3efa8bc from #14393.

2️⃣ This PR will resolve #14381 and #14382.

3️⃣ Also, from #14364 (comment):

I've tried 🅰️ updating also the workspace entry context menu following the designs #14364 (comment) and 🅱️ removing the entrypoint. There's high chance I've removed more than needed or I missed removing more parts for the endpoint. 🛹


It would be great if you or someone from the WebApp team could pick this PR to push it through the finish line, as I'm not much familiar with the go lang changes. Feel free to pick this up or close it in favor of a new PR, whatever feels better for you or the team.

@easyCZ
Copy link
Member

easyCZ commented Nov 8, 2022

I can take a look. Will push against this PR directly. Sorry for the delay, didn't see the tags.

@gtsiolis
Copy link
Contributor Author

gtsiolis commented Nov 8, 2022

Thanks, @easyCZ! 🙏

@easyCZ easyCZ force-pushed the gt/remove-download-workspace-button-on-admin branch 2 times, most recently from d63a8e0 to f181ff2 Compare November 8, 2022 13:49
@roboquat roboquat added size/M and removed size/XL labels Nov 8, 2022
@easyCZ
Copy link
Member

easyCZ commented Nov 8, 2022

I've removed the backend changes and pushed them into #14518. I've rebased this and we will land the UI side first, then follow-up on the backend.

@easyCZ
Copy link
Member

easyCZ commented Nov 8, 2022

/werft run

👍 started the job as gitpod-build-gt-remove-download-workspace-button-on-admin.7
(with .werft/ from main)

@mads-hartmann
Copy link
Contributor

Added hold as this was blocking the merge queue

@easyCZ easyCZ force-pushed the gt/remove-download-workspace-button-on-admin branch from f181ff2 to a3148ce Compare November 8, 2022 14:36
@easyCZ
Copy link
Member

easyCZ commented Nov 8, 2022

Rebased again, to grab a fix for CI from #14519

@easyCZ
Copy link
Member

easyCZ commented Nov 8, 2022

/unhold

@roboquat roboquat merged commit 0ce0542 into main Nov 8, 2022
@roboquat roboquat deleted the gt/remove-download-workspace-button-on-admin branch November 8, 2022 14:51
@gtsiolis
Copy link
Contributor Author

gtsiolis commented Nov 8, 2022

Thanks @laushinka @easyCZ @mads-hartmann! 🏀

@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels Nov 9, 2022
@gtsiolis gtsiolis changed the title Remove download workspace button from admin Remove download workspace button from the workspaces list and admin dashboard Nov 9, 2022
gtsiolis added a commit that referenced this pull request Nov 21, 2022
roboquat pushed a commit that referenced this pull request Nov 21, 2022
@atduarte
Copy link
Contributor

atduarte commented Nov 28, 2022

Hey @gtsiolis! 👋 Removed the release notes as this is not relevant for the Gitpod end user (developer persona).

@gtsiolis
Copy link
Contributor Author

gtsiolis commented Nov 28, 2022

Sounds good, @atduarte! Thanks! 🏀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: webapp Meta team change is running in production deployed Change is completely running in production release-note-none size/M team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update dashboard to remove download feature
6 participants