This repository was archived by the owner on Sep 16, 2021. It is now read-only.
Open
Conversation
Provides a skeleton of a UI at /issues/moderation which allows the admin to delete spam, or mark it as ham. When marking items as ham they need to feed back to akismet to improve the spam checking service. Required new action functions to execute commonly required functions, like getting a comment by ID, deleting comments (although there was functionality for deleting issues already). TODO: - UI cleanup (pagination?) - Controller methods for issue delete/reset - Checking of auth tests. - Tests
Where issues are being moderated, it is now possible to clear the report or delete the issue depending on whether we want to reset the issue or remove it (because it is spam).
The action layer was inconsistent in the formatting of the result, with issue_comment_search returning a naked list of objects whilst issue_search returned a dict with a count and a results key. So this commit fixes issue_comment_search. Also adds basic pagination to the moderation controller, although it is not yet rendered
Changes the issue_comment_search to accept offset and limit and to also wrap the results with a count.
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Provides a moderation queue to allow for un-spamming and deleting of both comments and issues. It is expected that this will be populated by the akismet integration.
Partially fixes datagovuk/ckanext-dgu#368