While talking with maintaining edit logs and etc for description and etc, @Legoktm asked why were not using Wikitext for anything, and it seems like the best thing to do!
Description
Details
Event Timeline
Change 295670 had a related patch set uploaded (by 01tonythomas):
[WIP] Convert Newsletter to use contenthandler
From what I can understand about Contenthandler, we might need the following things:
- You cannot just rename a newsletter (but can change its main page) from the manage page, but to rename a newsletter, it would mean to move it using the move dropdown on the right corner. So I will remove the input box from the code from there, and this will be logged (just like a wiki page)
- Delete button would not be needed anymore, and this will happen pure wiki way too, logged in the proper way!
Done these, and I think the wiki way is making the Newsletter look more solid! I have added an additional box called 'Edit Summary' to the Special:Newsletter/manage form so that it would store the summary for the log.
Tony, thank you for all this work! The whole logging problem is a lot more solid now, and we even got some features for free.
Thank you @Qgil . Looks like its still lacking review. I think we will have to post this to the mailing list to get someone's attention :(
Still unreviewed? Any idea of who has the skills to review this patch? In short, this is the patch that is stopping the Newsletter extension from being deployed in Wikimedia.
Change 303984 had a related patch set uploaded (by 01tonythomas):
Make action=edit in a Newsletter namespace invoke Special:Newsletter
Change 304692 had a related patch set uploaded (by 01tonythomas):
Introduce ContentHandler on the Newsletter CustomEditpage
Change 309849 had a related patch set uploaded (by 01tonythomas):
Show up NewsletterEditPage for editing Newsletter contet
Change 295670 abandoned by 01tonythomas:
Convert Newsletter to use contenthandler
Reason:
We have split the same to multiple other commits. This one is technically, deprecated!
Interesting! @01tonythomas could you share a short update about he status of this task? Is it progressing, are you optimistic, any estimate about when you think this might be completed?
I must tell you that almost every week I get one person or another asking about the Newsletter extension, whether it is still a thing and whether it will be available in Wikimedia. :)
I am really optimistic it gets finished soon, as we have only 2/3 left now in https://gerrit.wikimedia.org/r/#/q/topic:shiftToContentHandler for review. If I can get say 10 minutes of @Legoktm or @Addshore, this can be even complted then and there.
Btw, I am stuck at one of legoktms comment here https://gerrit.wikimedia.org/r/#/c/304692/17/includes/NewsletterStore.php. If I do not get a reply today, maybe I will have to open a task, asking for help :-(.
I am also sad that this never made it into production (but we had drastic changes in between).-
Change 304692 merged by jenkins-bot:
Introduce ContentHandler on the Newsletter CustomEditpage
@01tonythomas is there any work left here? Has the latest version be deployed to our Labs instance and/or Beta for testing?
Not yet :-( I am stuck in a rebase loop at https://gerrit.wikimedia.org/r/#/c/309849/ Let me see if I can get that resolved today.
I just fixed the rebase issue btw. Looks like there are more issues to be fixed. Will update the task once done.
I see things are working, and I am going to merge the same. I will come up with more tasks which might be blockers, and easy for people to fix post the merge.
Change 309849 merged by jenkins-bot:
Show up NewsletterEditPage for editing Newsletter content
Change 319007 had a related patch set uploaded (by 01tonythomas):
Add in NewsletterDiffEngine to explore history
Alright. So I think we can have all those tasks in the list as Google-Code-In-2016 tasks, we will have loads more, and this would be the bets program to fix them up.
I will pulled the changes to http://newsletter-test.wmflabs.org/wiki/Main_Page, and things are live there.
I will have to open up some other task to clear the tables, so that the new system works.
Change 319998 had a related patch set uploaded (by 01tonythomas):
Remove unused $user passed to NewsletterEditPage
Change 319998 merged by jenkins-bot:
Remove unused $user passed to NewsletterEditPage
Alright. Thanks to Google-Code-In-2016, we are left with no more blockers for this. At this point, the newsletter extension stores relevant things with ContentHandler, and you can see it in action here - http://newsletter-test.wmflabs.org/wiki/Newsletter:CustomOne.
We got the advantage of better logging, more wiki way page editing, deletion and undeletion, moving of newsletter names etc possible due to the shift, and thanks to @Legoktm for the idea. @Glaisher and @Addshore @Reedy @Qgil for your contributions and patience :D