-
Notifications
You must be signed in to change notification settings - Fork 183
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
Restoring spaces graph endpoint #3094
Merged
kobergj
merged 15 commits into
owncloud:master
from
kobergj:RestoringSpacesGraphEndpoint
Feb 4, 2022
Merged
Restoring spaces graph endpoint #3094
kobergj
merged 15 commits into
owncloud:master
from
kobergj:RestoringSpacesGraphEndpoint
Feb 4, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: jkoberg <[email protected]>
Signed-off-by: jkoberg <[email protected]>
Signed-off-by: jkoberg <[email protected]>
💥 Acceptance test Core-API-Tests-ocis-storage-1 failed. Further test are cancelled... |
Signed-off-by: jkoberg <[email protected]>
Signed-off-by: jkoberg <[email protected]>
kobergj
force-pushed
the
RestoringSpacesGraphEndpoint
branch
from
February 2, 2022 18:51
133023f
to
2da43f3
Compare
Signed-off-by: jkoberg <[email protected]>
Signed-off-by: jkoberg <[email protected]>
kobergj
force-pushed
the
RestoringSpacesGraphEndpoint
branch
from
February 3, 2022 11:03
a9ac051
to
3596f7a
Compare
Signed-off-by: jkoberg <[email protected]>
kobergj
force-pushed
the
RestoringSpacesGraphEndpoint
branch
from
February 3, 2022 11:35
3596f7a
to
19006fe
Compare
Signed-off-by: jkoberg <[email protected]>
Signed-off-by: jkoberg <[email protected]>
kobergj
force-pushed
the
RestoringSpacesGraphEndpoint
branch
from
February 3, 2022 15:53
0ba2543
to
feda44b
Compare
Signed-off-by: jkoberg <[email protected]>
micbar
approved these changes
Feb 4, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@kobergj can you move the description into the top post please? That makes it easier in the future. |
Signed-off-by: jkoberg <[email protected]>
kobergj
force-pushed
the
RestoringSpacesGraphEndpoint
branch
from
February 4, 2022 11:13
61336b3
to
63f052a
Compare
Signed-off-by: jkoberg <[email protected]>
Signed-off-by: jkoberg <[email protected]>
Kudos, SonarCloud Quality Gate passed! |
ownclouders
pushed a commit
that referenced
this pull request
Feb 4, 2022
Author: kobergj <[email protected]> Date: Fri Feb 4 13:45:37 2022 +0100 Restoring spaces graph endpoint (#3094) * restore drive & trashed information Signed-off-by: jkoberg <[email protected]> * TEMP: use feature branch reva Signed-off-by: jkoberg <[email protected]> * add changelog Signed-off-by: jkoberg <[email protected]> * TEMP: update reva version Signed-off-by: jkoberg <[email protected]> * go back to edge reva Signed-off-by: jkoberg <[email protected]> * use latest edge Signed-off-by: jkoberg <[email protected]> * back to feature reva Signed-off-by: jkoberg <[email protected]> * bump reva again Signed-off-by: jkoberg <[email protected]> * update expected failures Signed-off-by: jkoberg <[email protected]> * next reva bump Signed-off-by: jkoberg <[email protected]> * use edge reva Signed-off-by: jkoberg <[email protected]> * next reva change Signed-off-by: jkoberg <[email protected]> * use reva edge again (please go green) Signed-off-by: jkoberg <[email protected]> * remove expected failure as it passes now Signed-off-by: jkoberg <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Restore spaces by sending to the Patch Drive Graph endpoint. Get information when a drive is deleted (Check it's root for "deleted" flag)
Short example for space restore/delete
Step 1: Find spaceID
Step 2: Disable the space
Note that response on GET endpoint changes. It contains information that the drive is trashed. Calling curl from Step1 would return:
Step 3a: Restore the space
This will restore the space and everything will be like before
Step 3b: Delete the space
This will remove the space completely
curl -X DELETE -k https://localhost:9200/graph/v1.0/drives/db589b97-f2ea-4864-bf5f-55a43325f77a -u admin:admin -H "purge: true"
Note that delete and purge requests now use the same URL, just a different header. Purging an enabled space will still not work. Step 2 is mandatory.