Closed
Bug 1259776
Opened 10 years ago
Closed 10 years ago
[spam] Improve ban UI to optimise spam fight
Categories
(developer.mozilla.org Graveyard :: User management, task)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: Jeremie, Unassigned)
References
Details
(Keywords: in-triage, Whiteboard: [specification][type:change])
What feature should be changed? Please provide the URL of the feature if possible.
==================================================================================
The "Ban" button associated with a profile.
What problems would this solve?
===============================
Currently, banning spammers just prevent them to create more spam content. However, once banned, it is still necessary to feed spam filters and to remove the content they've created. This change allow to do this in one row.
Who would use this?
===================
All users involved with spam fight.
What would users see?
=====================
UX research is needed to avoid messing with regular banning and spam banning
What would users do? What would happen as a result?
===================================================
When the "Ban" button associated with a profile is clicked, allow to flag the user as spammer. If a ban user is flag as spammer, banning that user will also:
* Revert all their edits
* Remove all page they creates
* Feed spam filters with all their content
Is there anything else we should know?
======================================
Comment 1•10 years ago
|
||
We've made a plan for adding a "one-click ban hammer", so I'm taking over this bug for the work.
shobson created a requirements document [1], which went through several rounds of review with the MDN team. This design work was tracked in user story 102 [2], which includes some wireframes of alternate implementations. The implementation is tracked in user story 355 [3], which is divided into phases:
Phase 1: Show a user's revisions when banning (PR 3886 [4])
Phase 2: Also submit revisions as spam
Phase 3: Better diffs for new translations, and revert revisions when possible
Phase 4: Send a summary email to spam moderators
[1] https://docs.google.com/document/d/1xewZXZlz-VpUFXff3GQ2QElxgqxFxldN751boGkIBPI
[2] https://tree.taiga.io/project/viya-mdn-durable-team/us/102
[3] https://tree.taiga.io/project/viya-mdn-durable-team/us/355
[4] https://github.com/mozilla/kuma/pull/3886
Comment 2•10 years ago
|
||
Commit pushed to master at https://github.com/mozilla/kuma
https://github.com/mozilla/kuma/commit/32798b69bd97fc77709fb8d96aee0a8fb5611a6d
bug 1259776 - One click ban hammer - Phase 1
Squashed commit of @emullaney and @dchukhin's work in PR #3886:
* us-75 create includes template for user profile data, use in user detail ban hammer page,
* us-75 add a one click ban for users
* more consistent use of user template variable across views
* Add doc history section to the one-click ban hammer page.
* CSS to support faster spam banning
* more formatting for user ban one-click page. Add revision history to page.
* Show revision diff on each revision in history list on the one-click page via include.
* add a summary page for one-click banning
* add tests for summary one-click ban page
* fix template and failing tests
* Refactor the revision history into a new include in the 'users' app and out of the 'dashboards' app.
* fix "Ban User" button color and link to regular user ban page
* Adding back carriage return at end of include file that should remain unchanged for this branch
* fix flake8 errors
* correct assert statement at end of test
* Incorporate @stephaniehobson's styles and add tags column.
* add tempalte tests for users with no revisions
* Create two includes, rather than one, for the user profile info that is shared across the detail page and the ban page.
* Clean up include file indentation.
* Add internationalization to the two ban user templates and do some more cleanup.
* Add History link that was referenced in requirements document.
* Handle banning users on a POST
* tests for banning a user on a POST to ban_and_cleanup
* add test for ban_and_cleanup for a nonexistent user
* Moving summary page into separate view in case we need pagination on this page. Temporarily limit number of revisions displaying on summary page to prevent page crashing for users with many revisions.
* Some flake8 fixes. Doesn't cover all flake8 failures.
* Another flake8 fix.
* Add links to the one-click ban cleanup page.
* update tests to use new POST-only view
* fix kuma flake8 errors
* Fixing typo for one-click spam page.
* Change button text for user profile page to let user know they can clean up revisions but the user has already been banned, for previously banned users
* Adding a test to check that the correct ban links are showing up on the user profile page with the right text when a user is banned or not banned.
* Styling the history button (which is mentioned in the requirements but not shown on the wireframes and may need to move at some point)
* rename ban urls to be more consistent with each other
* Filter revisions for past three days for one-click ban page and one-click ban summary page. Update some of the logic around displaying button text on one-click form. Update related tests.
* Removing unnecessary comment.
* Shorten h1 on one-click page and alter text to use full phrase translation using interpolation.
* Adjusting text on one-click form page and summary page to use full-phrase translation using interpolation.
* refactor tests to be more DRY
* Improvement: query filter order by ID is faster than ordering by date.
* Update comment regarding second queryset on ban summary page. Add a sentence to notify user that revisions were not reverted yet.
* translate title and fix ban button logic with link to ban for other reason
* add test for ban button text and link to ban for other reason
Comment 3•10 years ago
|
||
Commits pushed to master at https://github.com/mozilla/kuma
https://github.com/mozilla/kuma/commit/a35b8c2aa7abd74257c5eebd0f016c2aca777405
bug 1259776 - begin Phase II: template and view changes to submit revisions as spam to Akismet
https://github.com/mozilla/kuma/commit/edc11991972a262893a4d570068f96ec734bf332
bug 1259776 - write tests for submitting to Akismet
https://github.com/mozilla/kuma/commit/20f6a9e4fad34671ec6fd684b48862e7d7daa95b
bug 1259776 - display revisions not submitted to Akismet on summary page
https://github.com/mozilla/kuma/commit/e552d21120e5f555a74beae53d556903b2697231
bug 1259776 - split akismet submission test into 3 tests
https://github.com/mozilla/kuma/commit/02b0297ccaa7b37d19270e881366a990476e4c8c
bug 1259776 - template changes for ban user and cleanup form page from @stepahaniehobson
https://github.com/mozilla/kuma/commit/35b6b6e4caf406154bf6e066eb26083128f4a388
bug 1259776 - remove reverted revisions section, add reported as spam section to summary page template
https://github.com/mozilla/kuma/commit/5fcf091feebde4af6070d502381d445619dc59a4
bug 1259776 - only display "Delete" button in summary in certain cases
https://github.com/mozilla/kuma/commit/590770c2790dd3c6a0319e8844ebd7c73e018370
bug 1259776 - list 1 revision for each document on summary page
https://github.com/mozilla/kuma/commit/778c1b530ffab7715f29e238175e681711a08352
bug 1259776 - template changes requested for summary page
https://github.com/mozilla/kuma/commit/4f8f6130b82dc2b53f4841f115655e98ced0ef9c
bug 1259776 - update older tests and code for new functionality
https://github.com/mozilla/kuma/commit/149162bbd08a5cbe5ab9ccf8e77e5e4f65ac94a4
bug 1259776 - a few template wording changes; user does not have link to ban self
https://github.com/mozilla/kuma/commit/a7d9b2c41f65c8f6db762bd268db1f005b135cb9
bug 1259776 - change template to fit mockup, and fix failing tests
https://github.com/mozilla/kuma/commit/c5fa642d7da753987250d38c588bfce03e05836d
bug 1259776 - refactor template and views to match mockup
https://github.com/mozilla/kuma/commit/69e405f588a2e3e1da76eed3258273a8d02160c8
bug 1259776 - update tests for new mockup functionality
https://github.com/mozilla/kuma/commit/911e55b99b98d6bed6a0e1a951a58d56b5d8ca6a
bug 1259776 - update links on summary template page
https://github.com/mozilla/kuma/commit/7223fc3098ce156e106eb35542224a0caa96bd16
bug 1259776 - more readable code and remove test redundancy
https://github.com/mozilla/kuma/commit/d51ad8fb3b2ab93adbf8887102638d69888b6ee8
Merge pull request #3896 from caktus/one-click-ban-hammer-phase-2
bug 1259776 - One click ban hammer: Phase II
Comment 4•10 years ago
|
||
Commits pushed to master at https://github.com/mozilla/kuma
https://github.com/mozilla/kuma/commit/dc95ae35d04ccb5d0e96998c8d17d7e12b7cc805
bug 1259776 - Phase 3 spam one-click. Add a compare for new translations. Use i18n on text on the form include.
https://github.com/mozilla/kuma/commit/6b01c4db25c30ca394dfbbc56c2a203d9beee168
bug 1259776 - Phase 3 spam one-click. Add view functionality to revert or delete spam revisions. Do not make revert if there is a more recent edit by a different user. Add information regarding these changes to the ban summary page and remove unneeded section for revisions not deleted/reverted which was a placeholder from Phase 2.
https://github.com/mozilla/kuma/commit/c5eb563b4ca31de0f235f440865b717d154f133c
bug 1259776 - Phase 3 spam one-click. Add view tests for proper revert/delete functionality. Still need to adjust template tests. Tests WIP.
https://github.com/mozilla/kuma/commit/4055061c41b716830cee43d79d59ff6d9f91422f
bug 1259776 - Phase 3 spam one-click. Adjust template test test_no_revisions_posted() with new phase 3 updates. Tests WIP.
https://github.com/mozilla/kuma/commit/6f6fca94cbb127c8f87b0dbffc0023e1b4a15d41
bug 1259776 - Phase 3 spam one-click. Adjust template test test_revisions_posted_different_docs() with new phase 3 updates. Tests WIP.
https://github.com/mozilla/kuma/commit/9ce3a139a83c42c3068489c525998a1cc11cecf0
bug 1259776 - Phase 3 spam one-click. Adjust template test test_revisions_posted_same_doc() with new phase 3 updates. Pep8 fixes. Tests WIP.
https://github.com/mozilla/kuma/commit/4fc166ba10c54624ff7f6e72ea6e18debdac03ee
bug 1259776 - Phase 3 spam one-click. Adjust template test test_revisions_not_submitted_to_akismet() with new phase 3 updates. Tests WIP.
https://github.com/mozilla/kuma/commit/a85fe6cbe67b3abf7736f060b1773d8ac7fa2b7e
bug 1259776 - Phase 3 spam one-click. Adjust template test test_no_revision_ids_posted() with new phase 3 updates. Tests WIP.
https://github.com/mozilla/kuma/commit/e8c585cf2fd353b712327ec1e5de38a69c488eac
bug 1259776 - Phase 3 spam one-click. Adjust template test test_all_revisions_already_spam() with new phase 3 updates. Tests WIP.
https://github.com/mozilla/kuma/commit/a99efa9110a51288ecdfda386ed564acd8031a26
bug 1259776 - Phase 3 spam one-click. Adjust template test test_some_revision_ids_posted() with new phase 3 updates. Tests WIP.
https://github.com/mozilla/kuma/commit/93dd1ff139b2b6531c0edbd107d663f943efb613
bug 1259776 - Phase 3 spam one-click. Adjust template test test_delete_link_does_not_appear_summary_page_other_revisions() with new phase 3 updates. Tests WIP.
https://github.com/mozilla/kuma/commit/cea0202aeffd128845bd32a3f97a358d7aa0aa4b
bug 1259776 - Phase 3 spam one-click. Add two new template tests for new revert/delete functionality.
https://github.com/mozilla/kuma/commit/e1780a3a579dd9137039b13ad880faf6a77c929d
bug 1259776 - Phase 3 fix. Remove unneeded document slug from revert() method.
https://github.com/mozilla/kuma/commit/a6ed5f5dcdb2aa176287b8c4d7dddf4045505c95
bug 1259776 - Phase 3 fix. Replace slug field with document directly in the delete_document() method.
https://github.com/mozilla/kuma/commit/6e0f6732043df1ebfa31d49b510b4081e0cd5f45
bug 1259776 - Phase 3 fix. Update comment re: blank cell. Display a link for deleted documents with the doc title, rather than the revision title.
https://github.com/mozilla/kuma/commit/7d031e70560bbc465e36a2d1d9c56f41789e1ffe
bug 1259776 - Phase 3 fix. Update comment re: blank cell. Display a link for reverted documents pointing to the revision.
https://github.com/mozilla/kuma/commit/b7ba7d65764b7f456c88faae2acb57fe8dce69a5
bug 1259776 - Phase 3 fix. Update logic that reverts revisions to revert the oldest spam revision per document only. WIP still need to fix broken tests.
https://github.com/mozilla/kuma/commit/c17090290efb31c7aba0c40ab7102a434af3b88c
bug 1259776 - Phase 3 fix. Update logic that checks for existing document to wrap in a try/except so that deleted documents continue. View test fixes. Test fixes WIP.
https://github.com/mozilla/kuma/commit/ca76d1044a5511a4e5e1a0a80b144db4251c0d59
bug 1259776 - Phase 3 fix. Fix test_some_revision_ids_posted() test logic.
https://github.com/mozilla/kuma/commit/f63a09e862d86d27cc864ca51b1e6e0b2cad64b9
bug 1259776 - Phase 3 fix. Pep8 fix.
https://github.com/mozilla/kuma/commit/34b46879755c89b6b8b11ee716821f5d3e8989f9
bug 1259776 - Minor review updates.
- removed a leftover comment in test_templates.py
- updated the docstring for test_multiple_revisions_are_spam to
accurately reflect the behavior
- replaced a trivial list comprehension with list(revisions_already_spam)
https://github.com/mozilla/kuma/commit/070cb94573fe11fd2b111f701f96ae10b6fb6169
bug 1259776 - Updates to test_templates.py
Clarified some comments, and added a check for reversions in
test_multiple_revisions_are_spam.
https://github.com/mozilla/kuma/commit/73689c83092c98485c7fa0271df9b466580e9ce9
bug 1259776 - Show the English document's revision at the time of translation
https://github.com/mozilla/kuma/commit/2f7081eeb04a3ca5178cffbe3e9a404b2c241f30
bug 1259776 - Updates to test_views.py
- added tests for delete_document and revert_document
- updated test_ban_nonexistent_user to compare the content to the original
https://github.com/mozilla/kuma/commit/d7d0f84e2ba692241b5b0b00f9efabac037a0549
bug 1259776 - Fixed easy review comments.
- removed the immediate wrapping <p> from 'You cannot ban yourself for spam.'
- made the page titles in the Reverted list into links to the document
- added a link to the top reverted revision to each of the Reverted entries
- removed the wrapping <ul> from 'None.' in `New action by user`.
- removed tabindex=0 from the table
- added `# pragma: no branch` to the condition in revert_document
https://github.com/mozilla/kuma/commit/31fdd2774e482a1cd916e0b7831481db9aeaebe7
bug 1259776 - Show the diff when the revision is the first one for a document.
Empty left side, full document on the right.
https://github.com/mozilla/kuma/commit/8496ca9b68a9fa802a0a58e17b5b6a782ebc42ef
bug 1259776 - Change the user ban views to take a username instead of an id.
https://github.com/mozilla/kuma/commit/0280e37c5429373015a4db5d31765c2de4ece2b5
bug 1259776 - Adjusted revision_by_distinct_doc to avoid additional database queries.
https://github.com/mozilla/kuma/commit/0096095fc92d5b967d2ce237ab24f7460fbfa928
bug 1259776 - Reworded "not identified as spam" as "identified as not spam".
And removed the extra db query for this variable.
https://github.com/mozilla/kuma/commit/1a4436aea889bf6abd836fa85956f425a05905fe
bug 1259776 - Added tracking of the documents that have a non-spam rev as their latest rev.
https://github.com/mozilla/kuma/commit/d111d3b0afc14e76011239d6b141e22eb50117af
bug 1259776 - Track documents that have revisions that were not addressed by the reversion.
https://github.com/mozilla/kuma/commit/258c6b1d2baf9987c412b9eb256e132127a6fd91
bug 1259776 - Updated and expanded template tests to account for new subsections.
https://github.com/mozilla/kuma/commit/9b5c3f94d63476acac0e4b559f1f98d4d11b972e
bug 1259776 - Test the logic branches where revert/delete of a document fails.
https://github.com/mozilla/kuma/commit/cdaa93818450aed1acc6f326823135797b6e8713
bug 1259776 - Added a couple more views tests.
Comment 5•10 years ago
|
||
Commits pushed to master at https://github.com/mozilla/kuma
https://github.com/mozilla/kuma/commit/c42611a70072d6393a0cf821528ed79776cfb28d
bug 1259776 - Added the logic to email the spam watch mailing list.
https://github.com/mozilla/kuma/commit/06e30023d1c5e1b87e5634228d081aae9ccb2620
bug 1259776 - Cleaned up the whitespace in spam_ban.ltxt
Also, made the "Needs Follow Up" and "No Action Taken" blocks optional
depending on whether or not any items would be included.
https://github.com/mozilla/kuma/commit/2ccf6a308d9ec39b1c25cfcdd3081c7ed4157293
bug 1259776 - Fixed up the whitespace in the email template, for real.
https://github.com/mozilla/kuma/commit/815645ff47831feef2db5339235ee4261d7b5509
bug 1259776 - Added a test showing that an email is sent upon ban+cleanup.
https://github.com/mozilla/kuma/commit/2c097a1132486ca0bb9de86c531b710766bd98dc
fix bug 1259776 - PEP8 fixes.
https://github.com/mozilla/kuma/commit/eb1e2f7ef186a886ce4bd107f1b7b9ca78f2198b
fix bug 1259776 - Cleaned up the Phase 3, 4, and 5 TODOs in test_templates.py.
https://github.com/mozilla/kuma/commit/1b2b0a79e1858aa16bc27935495e2d52bf2b9dbc
Merge pull request #3910 from caktus/one-click-ban-hammer-phase-4
bug 1259776 - Email the spam watch list
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Comment 6•10 years ago
|
||
Commits pushed to master at https://github.com/mozilla/kuma
https://github.com/mozilla/kuma/commit/a8422b8a1219ca6a80afbfe4af1ce5ae6a9b041f
bug 1259776 - Added links in the email for the revs sent to Akismet as spam.
In the email sent to the MDN spam mailing list upon banning a user and
cleaning up their edits, the Akismet items were the only ones lacking
a link to the actual revisions in question.
https://github.com/mozilla/kuma/commit/ed3951a1093ba38323add58de4a8ea4a6779662d
bug 1259776 - Wrapped rev titles in the Akismet section in links.
For the ban user and cleanup summary page.
Comment 7•10 years ago
|
||
Latest change (links for revisions submitted to Akisment) pushed to stage and production.
Comment 8•9 years ago
|
||
Commit pushed to master at https://github.com/mozilla/kuma
https://github.com/mozilla/kuma/commit/b03b5a461b185b647ffcfdfb1e76fa6d7f63cbc2
Bug 1259776: Display ban info on user profile
Displays ban info to users with ban permissions instead of super user permissions.
Adds ban date and moderator to user profile page.
Updated•6 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•