Feature summary: Prevent ConvertReference from Suggesting a conversion of a PDF citation.
Use case(s): The Suggestion Mode feature for converting a reference (ConvertReferenceEditCheck.js) does not work at all with PDF files. There is a possibility that it may work in the future (via T424982 and linked tasks), but for now it is creating Suggestions that cannot be completed with the built-in conversion tool.
Benefits: Decrease the quantity of tasks that are significantly more complex than intended.
Alternative: On some wikis, there is a related "inline cleanup template", e.g. Enwiki's w:en:Template:Bare_URL_PDF. -- We could potentially show the contributor a button to add that template, instead of just not-showing the ConvertReference Suggestion at all (or hoping they'll attempt a fully-manual conversion).
Notes: Filing based on comments at:
- https://www.mediawiki.org/wiki/Talk:VisualEditor/Suggestion_Mode/Feedback#convertReference_on_Wize_technology_at_enwiki
- https://www.mediawiki.org/wiki/Talk:VisualEditor/Suggestion_Mode/Feedback#convertReference_on_Cunaquito_at_enwiki
Derived Requirement
Ensure ConvertReference does not generate Suggestion Mode suggestions for citations that contain plain PDF links, since the built-in conversion tool cannot currently convert these PDF references.
Test Steps
Test Case 1: Ensure ConvertReference does not suggest conversion for plain PDF links
- Open a Wikipedia article containing a reference with a plain PDF URL.
- Open the article in VisualEditor.
- Enable Suggestion Mode.
- Navigate to the section containing the plain PDF citation.
- Allow Suggestion Mode to analyze the article.
- Review the suggestions generated for the PDF citation.
- Verify that no ConvertReference suggestion is displayed for the plain PDF citation.
- ✅❓❌⬜ AC1: ConvertReference does not generate a conversion suggestion for a citation containing a plain PDF link.
Test Case 2: Ensure ConvertReference continues to suggest conversions for supported non-PDF citations
- Open a Wikipedia article containing both a plain PDF citation and a supported non-PDF citation.
- Open the article in VisualEditor.
- Enable Suggestion Mode.
- Allow Suggestion Mode to analyze the article.
- Locate the plain PDF citation.
- Verify that no ConvertReference suggestion is displayed for the PDF citation.
- Locate the supported non-PDF citation.
- Verify that ConvertReference can still provide a suggestion for the supported citation when it meets the feature's criteria.
- ✅❓❌⬜ AC2: Ignoring plain PDF links does not prevent ConvertReference from generating suggestions for eligible non-PDF citations.
QA Results - Beta
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T436547#12305014 |
| 2 | ✅ | T436547#12305014 |