Skip to content
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

Delete buckets and collections #428

Merged
merged 3 commits into from
Mar 7, 2016
Merged

Conversation

leplatrem
Copy link
Contributor

While I was add consistency in kinto.py, I realized that we could had DELETE endpoints to buckets and collections.

Of course, it deletes only the buckets/collections where the user has write permissions.

@leplatrem leplatrem force-pushed the delete-buckets-collections branch 2 times, most recently from 5068244 to c15000b Compare February 16, 2016 09:48
@leplatrem leplatrem changed the title [WIP] Delete buckets and collections Delete buckets and collections Feb 26, 2016
@leplatrem
Copy link
Contributor Author

This is now open for review/merge!

@magopian, FYI this PR switches from inherited method in the resource class to event subscribers.
@Natim r?

**Protocol**

- Delete every (writable) buckets using ``DELETE /v1/buckets``
- Delete every (writable) collections using ``DELETE /v1/buckets/<>/collections``
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you want a <bucket id> here instead of <>?

@magopian
Copy link
Contributor

magopian commented Mar 1, 2016

From what I understand of the code I read, this looks good to me. If someone else with better knowledge of the codebase could double-check, that would be nice ;)

There's a test failure, from the load tests, is it related to what you were discussing with @Natim on irc about cliquet having timestamp unicity issues?

* Use recent permission.remove_principal() method
* Use ACTIONS constants
leplatrem added a commit that referenced this pull request Mar 7, 2016
@leplatrem leplatrem merged commit 59ab6f5 into master Mar 7, 2016
@leplatrem leplatrem deleted the delete-buckets-collections branch March 7, 2016 15:17
@leplatrem leplatrem modified the milestone: 2.0 Mar 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants