-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
support file DELETEs #354
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
support file DELETEs #354
Conversation
@@ -20,6 +20,17 @@ export class GridStoreAdapter extends FilesAdapter { | |||
}); | |||
} | |||
|
|||
deleteFile(config, filename) { | |||
return config.database.connect().then(() => { | |||
let gridStore = new GridStore(config.database.db, filename, 'r'); |
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.
r
stands for reading mode here, I honestly expect it not to work for file deletions.
This is pretty exciting! Good job on implementing this!
|
@nlutsenko Thanks for reviewing. I'll add in an e2e test to the PR. Regarding master-key security, I have a check in the deletionHandler for In any event, I'll also add a test for unauthenticated deletion attempt. |
Sorry, totally missed it, you are absolutely correct. |
@westhom updated the pull request. |
@westhom updated the pull request. |
04808c9
to
015fe85
Compare
@westhom updated the pull request. |
Added to ParseFile spec:
|
015fe85
to
a753765
Compare
@westhom updated the pull request. |
Looks great! So glad we have this now! |
Closed issue--> #340 |
e.g.
Returns empty 200 on success, but probably wants to return useful JSON instead? Fixes #340