I figured out how to reproduce this. The problem only occurs if you load the 'ext.discussionTools.init' module while viewing Special:Watchlist (or another special page), as DiscussionTools fetches some metadata about the page using VisualEditor's API.
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Thu, Apr 8
For case A, I don't think we can do much, Popups only handles that in the old wikitext editor.
(added the subtasks that we looked at in today's triage meeting, plus two from the same "batch" that were already on our workboard)
And thank you for noticing this @Etonkovidova!
Backported
I'm glad you got it working. I think we can close this task now.
It can't be done at the moment.
It looks to me like the original problem in this task was already fixed.
Yes, scheduled for the next backport window today: https://wikitech.wikimedia.org/wiki/Deployments#deploycal-item-20210408T1800
Caused by 4984c5ffbbf26d6c274d19924d9bda70442eb1b5
Wed, Apr 7
Yes, a silly mistake, thanks for debugging @Krinkle.
(check logs after it's deployed)
No, I don't think the difference matters in the end. As I understand, we were considering different treatments for different block types, but in end end we decided to just do whatever visual editor does (which in turn just does whatever the wikitext editor does), so all special cases are handled elsewhere and we just display the message.
All subtasks resolved
@A.Amritesh Sorry I didn't reply to your messages earlier, I get lots of notifications. I'm glad you worked it out!
(check logs after it's deployed)
Yes, it's easier to keep track of as a separate task. I filed one for this: T279600. I think we didn't test this change with the wikitext editor :(
Testing instructions were written on T276393, it seems. Have you seen that, or are those unclear?
This patch will actually fix the issue. I made a reduced test case and tested it locally, here's a demo as well: https://patchdemo.wmflabs.org/wikis/179220305e/wiki/Talk:T275821
This patch will actually fix the issue. I made a reduced test case and tested it locally, here's a demo as well: https://patchdemo.wmflabs.org/wikis/179220305e/wiki/Talk:T273413
I'm sorry, you're right, this is not fixed. I assumed it would be, but I didn't test it. I'm really sorry for wasting your time!
I'm sorry, you're right, this is not fixed. I assumed it would be, but I didn't test it. I'm really sorry for wasting your time!
I think the error message means that action=parse is trying to use the text parameter (which would normally contain the wikitext to parse), except that you did not provide it, and also it's using the content model application/json instead of text/x-wiki because that's the default content model of the main namespace on Wikidata (and the default title when not provided is "API", which is in main namespace).
That is indeed the same error.
Related: T278442: Enable more signature flexibility in discussion tools and the tasks linked there.
I could reproduce this in the demo you linked, but not in the latest version of the code when testing locally (or this new demo I just made today: https://patchdemo.wmflabs.org/wikis/506b59600d/wiki/Talk:Main_Page).
This has been implemented in https://gerrit.wikimedia.org/r/c/mediawiki/extensions/DiscussionTools/+/663894 (it should have been tagged with this task).
This has been implemented in https://gerrit.wikimedia.org/r/c/mediawiki/extensions/DiscussionTools/+/663894 (it should have been tagged with this task).
Tue, Apr 6
Backported