Page MenuHomePhabricator

Convertreference Suggestion is showing unexpectedly for a non-bare-URL
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue:

What happens?:

  • A Convertreference suggestion is shown

image.png (1,599×472 px, 250 KB)

What should have happened instead?:

Event Timeline

Change #1305502 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/VisualEditor@master] ConvertReferenceEditCheck: for url-only the URL has to cover the range

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

DLynch subscribed.

This reference is: <ref>UNECE. (1996, December 31). Recommendation 9: Alphabetical code for the representation of currencies. (ECE/TRADE/203). United Nations. https://unece.org/trade/documents/alphabetical-code-representation-currencies</ref>. The test for whether the bare reference contained only a URL had a loophole -- because the URL wasn't linked, it was letting it through.

Change #1305508 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/VisualEditor@master] ConvertReferenceEditCheck: add tests

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

Change #1305509 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/VisualEditor@master] ConvertReferenceEditCheck: catch numbered links at covered strictness

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

Change #1305502 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] ConvertReferenceEditCheck: for url-only the URL has to cover the range

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

Change #1305508 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] ConvertReferenceEditCheck: add tests

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

Change #1305509 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] ConvertReferenceEditCheck: catch numbered links at covered strictness

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

EAkinloose subscribed.

Tested on en-beta:

✅ bare url triggers suggestion, as expected

image.png (2,032×650 px, 161 KB)

✅ non-bare url does not trigger suggestion
image.png (868×638 px, 103 KB)