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

B: Handle consecutive vandalisms on the same Article. (Solution 1) #57

Closed
Grahamwp opened this issue Aug 4, 2019 · 5 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@Grahamwp
Copy link

Grahamwp commented Aug 4, 2019

Original Subject: WikiLoop Battlefield only partially reverts in cases of consecutive vandalism edits done by the same user

The subject line says it all. I think this is a major issue due to misleading edit summaries, and this project should be disabled until it is fixed. See this page history. I also brought this up on Meta, along with another minor issue.

xinbenlv added a commit that referenced this issue Aug 4, 2019
@xinbenlv
Copy link
Contributor

xinbenlv commented Aug 4, 2019

Hi @Grahamwp thanks for your report of issue. Per your request, I temporily disabled revert until a solution is work out. Let's have follow up discussion about how we can resolve this problem.

You should see the application behavior already changed: when a revision is marked as ShouldRevert, it will not popup the button to a shortcut URL to conduct the actual revert.

@xinbenlv
Copy link
Contributor

xinbenlv commented Aug 4, 2019

Solution 1: When a revision is marked as ShouldRevert, also check if a previous revision is from the same user, if it comes from the same user, instead of going to the revert shortcut link, we let people go to the article history of the title.

  1. with revId we have title
  2. with title we can make a query to Action API.
{
	"action": "query",
	"format": "json",
	"prop": "revisions",
	"titles": "Wikipedia",
	"rvlimit": "2" # 2 will be good enough, but we can also get 10 or more for further discussion.
}
  1. If previous revision is from the same user, we direct people to article history URL instead of the shortcut revert URL

@Grahamwp
Copy link
Author

Grahamwp commented Aug 5, 2019

Thanks for disabling the edit functionality for now. What I was thinking was more broadly in line with how other anti-vandalism tools work. Go to the last revision not by the vandal, click on the edit link there (so you're editing that revision), and put in the edit summary something like "Reverting to last version by [name of previous user] ... [program string]". In the Federation of Australia example, you'd go here:
https://en.wikipedia.org/w/index.php?title=Federation_of_Australia&action=edit&oldid=908842179

Ideally this revert would be automated using OAuth or something to establish a user's credentials, for efficiency, like other anti-vandalism tools. Also, ideally the vandalism tool should warn the user using {{subst:uw-vandalism[n]}} ~~~~, where n is from 1 to 4, and then report the user for vandalism at the Administrator intervention against vandalism page after they've received four warnings in a month, again per usual practice.

I think you should really have a go at some anti-vandalism tools yourself and maybe dive into their code to see how they operate. The most popular are both open-source ... Twinkle and, for what I'm told is vandalism-fighting on steroids, Huggle. Their talk pages might help you find other users willing to advise you. I've actually never done RecentChanges patrolling in my life (I have enough problems with my watchlist!), and my only modern programming experience is enough Python to be dangerous. I've just been on Wikipedia for a really, really long time and have experienced a lot of things on the site.

@xinbenlv xinbenlv changed the title WikiLoop Battlefield only partially reverts in cases of consecutive vandalism edits done by the same user B: WikiLoop Battlefield only partially reverts in cases of consecutive vandalism edits done by the same user Aug 6, 2019
@xinbenlv xinbenlv added the bug Something isn't working label Aug 6, 2019
xinbenlv added a commit that referenced this issue Aug 7, 2019
> - #57, when multiple commits were conducted by the same user, the revert url redirect to history page so the reviewer can have a better overview.
>   we will further improve this with ROLLBACK feature or ADMIN notice feature in future release when we are granted Oauth
> - #58, package-lock.json rescyned by running `npm i`
> - #59, added template.env
> - #60, the error is caused by when ORES score is not available for an individual revision. We ignore them in this case.
@xinbenlv
Copy link
Contributor

xinbenlv commented Aug 7, 2019

This is fixed by 0e5c6ec commit.
We render the solution 1 for now.

We are going to create a second solution that more integrated with MediaWiki, but will require #61

@xinbenlv xinbenlv changed the title B: WikiLoop Battlefield only partially reverts in cases of consecutive vandalism edits done by the same user B: Handle consecutive vandalisms on the same Article. Aug 7, 2019
@xinbenlv xinbenlv changed the title B: Handle consecutive vandalisms on the same Article. B: Handle consecutive vandalisms on the same Article. (Solution 1) Aug 8, 2019
@xinbenlv
Copy link
Contributor

xinbenlv commented Aug 8, 2019

Close for Solution 1. For Solution 2 that involves comprehensive login-integration and permission application, we will do it in a separate Feature Request: #65

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants