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

Fix dataset-purge Paster command #2460

Merged
merged 2 commits into from
Sep 4, 2015

Conversation

drmalex07
Copy link
Contributor

The dataset purge command leaves dangling references to purged datasets in "member"
table (so this fix takes care to remove those membership records before).

I came across this issue when trying to purge an organization (whose datasets were supposed to be purged before) and received a 5xx server error. This was happening because the process of purging an organization includes purging of membership records (but of course, the actual member datasets were now absent).

I have only tested this against 2.2.2, but from a quick look i think this also applies to 2.2.3.

The dataset-purge command leaves dangling references to purged datasets in "member"
table (so this fix takes care to remove those membership records before).
Handle the case when the command is invoked with a dataset name as its
argument (dataset-ref).
wardi added a commit that referenced this pull request Sep 4, 2015
@wardi wardi merged commit 2762f12 into ckan:release-v2.2.2 Sep 4, 2015
@wardi
Copy link
Contributor

wardi commented Sep 4, 2015

whoops, this was for release-v2.2.2 will reset

@wardi
Copy link
Contributor

wardi commented Sep 4, 2015

@drmalex07 closing this PR, please resubmit against master and we can backport it.

@drmalex07
Copy link
Contributor Author

@wardi , ok i will try it on master.
As long as the membership model is not changed, i do not expect any significant differences.

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.

None yet

2 participants