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 Submission permission, view and link #1145

Merged
merged 4 commits into from
Apr 4, 2019

Conversation

Parbhat
Copy link
Contributor

@Parbhat Parbhat commented Apr 2, 2019

Groups can be given delete submission permission from Wagtail admin.

Closes #728

@Parbhat Parbhat requested a review from frjo April 2, 2019 14:01
request=request,
submission=submission,
)
response = super().delete(request, *args, **kwargs)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ideally, the message should be sent after deletion of submission. But the messaging system requires Event model object which has a non-null foreign key to submission. We have to make some changes in the messaging system to make event optional. Suggestions?

Copy link
Member

Choose a reason for hiding this comment

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

I do not think will be a problem. In worst case senario the submission is not deleted but OTF staff get a notice that it has been deleted. Nice work!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, it should not be an issue.

Copy link
Member

@frjo frjo left a comment

Choose a reason for hiding this comment

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

Works well. Added a migration and some info to the confirm delete template.

request=request,
submission=submission,
)
response = super().delete(request, *args, **kwargs)
Copy link
Member

Choose a reason for hiding this comment

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

I do not think will be a problem. In worst case senario the submission is not deleted but OTF staff get a notice that it has been deleted. Nice work!

@Parbhat
Copy link
Contributor Author

Parbhat commented Apr 3, 2019

@frjo Thanks for the review and adding missing migration.

@frjo frjo added the RTBC label Apr 4, 2019
@frjo frjo force-pushed the feature/728-delete-submissions branch from 6dca87f to 7db7414 Compare April 4, 2019 19:42
@frjo frjo merged commit cf23e1a into master Apr 4, 2019
@frjo frjo deleted the feature/728-delete-submissions branch April 25, 2019 09:12
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