Page MenuHomePhabricator

Moved 100% match was not found (Michgrig bug)
Closed, ResolvedPublic13 Estimated Story Points

Description

Bug description
If there are 100% matches of moved lines, wikidiff2 should be able to catch them.
However, in an example on ru-wiki Michgrig was matched with DrBug, instead of Michgrig itself. Furthermore, the link on "Michgrig" appearance on the right hand side line leads to a non-existing anchor.

Acceptance Criteria

  • Wikidiff2 correctly handles the "Michgrig" situation (and all similar ones)
  • None of the other examples of our test setup are worsened.

Notes

  • The page in question is going to be imported in the test wiki
  • Ideally, we could add a test to the repository that covers the test

Event Timeline

Lea_WMDE triaged this task as Medium priority.Feb 5 2019, 4:37 PM
Lea_WMDE created this task.
Lea_WMDE set the point value for this task to 13.

Change 493258 had a related patch set uploaded (by Jkroll; owner: Jkroll):
[mediawiki/php/wikidiff2@master] [WiP] Fix matching of moved lines in some cases

https://gerrit.wikimedia.org/r/493258

Change 493258 merged by jenkins-bot:
[mediawiki/php/wikidiff2@master] Fix matching of moved lines in some cases

https://gerrit.wikimedia.org/r/493258

Change 493688 had a related patch set uploaded (by WMDE-Fisch; owner: WMDE-Fisch):
[mediawiki/php/wikidiff2@master] Add test for T215293 bug

https://gerrit.wikimedia.org/r/493688

Change 493688 merged by jenkins-bot:
[mediawiki/php/wikidiff2@master] Add test for T215293 bug

https://gerrit.wikimedia.org/r/493688

Lea_WMDE moved this task from Demo to Done on the WMDE-QWERTY-Sprint-2019-02-20 board.

FYI: This still needs to go out with the next wikidiff2 release. For the release please see T203069: Deploy wikidiff2 v1.8.1 with changed signature

FYI: This still needs to go out with the next wikidiff2 release. For the release please see T203069: Deploy wikidiff2 v1.8.1 with changed signature

I also already created T217420: Tag and Release wikidiff 1.8.1 alreasdy. This one would be on our watch. The deployment as last step of the above ticket can be initiated afterwards.

Well, @Lea_WMDE, it's Tuesday. And it's definitely looks different (compare to F27961541). But still wrong. Thank you.

@IKhitron The diffing library we have to change (Wikidiff2) has to be deployed manually, and does not follow the train. If you watch T203069 you will see when the changes are live :)

Hello, @Lea_WMDE. I can see that the wikidiff2 (T203069) has been already deployed, so the original diff looks much better, and "Michgrig" fits the aim of the tool. Nevertheless, please check "Фил Вечеровский", with comma on the left diff side.

Hello, @Lea_WMDE. I can see that the wikidiff2 (T203069) has been already deployed, so the original diff looks much better, and "Michgrig" fits the aim of the tool. Nevertheless, please check "Фил Вечеровский", with comma on the left diff side.

Before there's even more confusion about whats going on here: The above link to the diff is build in a way that, it always compares a certain version with the the current version. So if the current version changes ( due to an update ) the diff changes as well. - I guess that's not very helpful in our case ^^'

@IKhitron I guess you mean this specific diff https://ru.wikipedia.org/w/index.php?diff=97742858&oldid=97533626&title=MediaWiki:Gadget-markadmins.json where АлександрВв on the left is linked to Salsero al Zviadi on the right :-)

I will adjust the link in the ticket description accordingly. - But we probably should create a new ticket for this. ( it looks a bit like the similarity threshold here is not working very well or not well with Cyrillic characters )

It is not what I was tacking about, but it seems as another problem.

Hello, @Lea_Lacroix_WMDE. Is there something new with this task? See this diff from yesterday. Thank you.

Of course. I am terribly sorry.