Page MenuHomePhabricator

Split up module specific-JS in SecurePoll
Closed, ResolvedPublic2 Estimated Story Points

Description

From https://gerrit.wikimedia.org/r/c/mediawiki/extensions/SecurePoll/+/661995/:

We like to keep the number of modules as small as possible - which we could also do separate files with a dispatcher. I personally find separate files preferable, but I was thinking we should untangle the modules in a separate commit. Does that sound OK?

The js in modules/ext.securepoll.htmlform.js manages two independent features and can be split up as mentioned. An example of this architecture can be found in IPInfo.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Niharika moved this task from Untriaged to Triage/To be Estimated on the Anti-Harassment board.

Change 666192 had a related patch set uploaded (by DLynch; owner: DLynch):
[mediawiki/extensions/SecurePoll@master] Split ext.securepoll.htmlform into multiple files

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

Change 666192 merged by jenkins-bot:
[mediawiki/extensions/SecurePoll@master] Split ext.securepoll.htmlform into multiple files

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

dom_walden subscribed.

The two features managed by the now split javascript module are:

  • adding the custom column labels on Special:SecurePoll/create
  • disabling/enabling form fields on Special:SecurePollLog

I checked that both of these still functioned on their respective pages.

Test Environments: