-
Notifications
You must be signed in to change notification settings - Fork 66
Clean up Che Workspaces #388
Comments
Burr - this script will do it for you - but - be creful whrn you run it as
it also deletes all github repos for the user - it is intended for use with
TEST ACCOUNTS not PERSONAL accounts.
https://github.com/fabric8io/fabric8-test/blob/master/ee_tests/local_cleanup_nuclear.sh
…On Sat, Jul 22, 2017 at 4:32 PM, Burr Sutter ***@***.***> wrote:
The number of workspaces tends to grow over time.
https://screencast.com/t/gMfOy9zCrae
Besides the screen above, what is the technique for removing workspaces
you no longer need?
Are there other places to go clean up?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#388>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AAnOPfYUUPsSCFOcdjmTgnJpzjomRMVqks5sQlxrgaJpZM4OgRkl>
.
--
Len DiMaggio (ldimaggi@redhat.com)
JBoss by Red Hat
314 Littleton Road
Westford, MA 01886 USA
tel: 978.392.3179
cell: 781.472.9912
http://www.redhat.com
http://community.jboss.org/people/ldimaggio
|
The script says "TODO" Step 4 - Delete Che workspaces - TODOworkspaces= for workspace in $WORKSPACES; |
Thanks Burr! I will fix that in my next edit. ;-)
…On Sat, Jul 22, 2017 at 4:50 PM, Burr Sutter ***@***.***> wrote:
The script says "TODO"
Step 4 - Delete Che workspaces - TODO
workspaces=curl -L --header 'Authorization: Bearer $5'
http://che-osiotest3141-che.8a09.starter-us-east-2.openshiftapps.com/api/
workspace | grep -oP '"che","id":"[\w-]+' | sed 's/"che","id":"//g'
for workspace in $WORKSPACES;
do echo "deleting workspace " $workspace ;
curl -vLX DELETE -H 'Authorization: Bearer $5'
https://che-osiotest3141-che.8a09.starter-us-east-2.openshiftapps.com/api/
workspace/$workspace;
done
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#388 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAnOPegv9HzyAcSnlwwGmmSTq7PwQLXTks5sQmB-gaJpZM4OgRkl>
.
--
Len DiMaggio (ldimaggi@redhat.com)
JBoss by Red Hat
314 Littleton Road
Westford, MA 01886 USA
tel: 978.392.3179
cell: 781.472.9912
http://www.redhat.com
http://community.jboss.org/people/ldimaggio
|
@l0rd who is working on adding support for deleting a workspace? To be clear that is not the same as "remove codebase". |
@joshuawilson I think this is a very good time to introduce @ashumilova. Her team does the Dashboard for Che and they will be porting some of that functionality to OSIO. @ashumilova Would you like to take a look at this one, it is a small enough thing to get you familiar with the codebase. @ibuziuk and @l0rd can show the APIs to be used etc. |
sounds like a great place for her and her team to start |
@gorkem che-starter already has endpoints for workspace deletion[1]. So for me it looks like we need to:
Sounds like a plan ? |
That works for me. |
Hi, yes - we could start getting familiar with codebase with this one. |
Thanks @ashumilova. @joshuawilson I think that "Remove codebase" button should delete the related Che workspaces too. Now that button seems disabled but if there is some code behind that or if someone is working to implement it we may need to update the remove codebase too. |
Right now that button is a place holder. It is intended to delete the repo on Github. I do NOT think it should do more then that. That is a crazy, scary option. It should do only that. |
My two cents:
|
@ibuziuk did you ever implement the api for deleting a workspace? |
@catrobson do we have designs for the codebases page, I can't find them? Do they take into consideration the changes that @bmicklea suggested. |
@joshuawilson API for deleting workspace by name - http://che-starter-dsaas-preview.b6ff.rh-idev.openshiftapps.com/swagger-ui.html#!/workspace-controller/deleteExistingWorkspaceUsingDELETE |
Great! Thanks @ibuziuk! @ashumilova is this enough for you to start with? Let me know if you are missing something or get stuck. |
We're still going through design reviews, but here's the screens that we currently have for codebases and workspaces: The new designs probably do change the story for this. |
We may want to fix it so that we can remove workspaces and then fill in the new UI as time allows. |
@joshuawilson +1 to do an incremental fix to remove workspaces before we move over to the new UI |
@joshuawilson this API is available on from che-starter side though, wit does not have endpoint for it AFAIK |
@joshuawilson @ibuziuk It's easy enough to expose DELETE on the wit side and proxy it as we do with the others. |
@michaelkleinhenz can we get one of your devs to do this please? |
@aslakknutsen probably easy but what is the long term goal? proxy all che workspace mgmt calls through wit? I am not sure about the value of doing that after the multi-tenant Che. |
@joshuawilson Please create a story on the Planner backlog for it. |
@gorkem and @aslakknutsen what do you want to do? @michaelkleinhenz Isn't the Planner backlog for planner issues/user-stories? |
Is there a story already that can be estimated and planned? |
@michaelkleinhenz there is no story only this issue. Do think @xcoulon has time to help on this? |
@slemeur @joshuawilson since #1549 is closed, can we close this? Or is #1016 blocking this? (I don't think it is but want to confirm with you.) |
@ibuziuk what is the status on this? Do you still need the API or something else? |
The number of workspaces tends to grow over time.
https://screencast.com/t/gMfOy9zCrae
Besides the screen above, what is the technique for removing workspaces you no longer need?
Are there other places to go clean up?
The text was updated successfully, but these errors were encountered: