Page MenuHomePhabricator

Create 'action type' checkbox filters for Special:SecurePollLog form
Closed, ResolvedPublic

Description

See the parent task T271279 for how the final form should look.

This task is for creating the 'action type' filters.

Form fields are specified using an array, as documented in HTMLForm.php

The 'Action type' fields should have the following:

  • Should have type 'check', which maps to HTMLCheckField (see HTMLForm::typeMappings)
  • Should become disabled if Voter log is selected in the dropdown at the top of the form, and enabled otherwise

The values of these fields should be passed through to the SecurePollLogPager. The pager's query, built in SecurePollLogPager::getFilterConds, should be updated.

Event Timeline

Change 663587 had a related patch set uploaded (by STran; owner: STran):
[mediawiki/extensions/SecurePoll@master] Add action type filter to Special:SecurePollLog page

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

@Prtksxna What should happen if 'Admin log' is selected and neither of the 'Admin type' checkboxes are checked?

image.png (414ร—730 px, 21 KB)

A related question: what should be the default state of those checkboxes when 'Admin log' is selected at the top?

@Prtksxna What should happen if 'Admin log' is selected and neither of the 'Admin type' checkboxes are checked?

Is there a third action type that is always shown? If not, do you think it'd make sense to turn these into Radios:

  • Admin added
  • Admin removed
  • Both

A related question: what should be the default state of those checkboxes when 'Admin log' is selected at the top?

Both checkboxes should be checked. If we go with radios, then Both to be selected.

Should this filter be disabled if "All SecurePoll logs" is selected? Right now we only disable it when "Voter log" is selected but we don't filter on the action type if "All" is selected either. We could but then that's essentially "Admin log" isn't it?

Should this filter be disabled if "All SecurePoll logs" is selected?

Yep, we should do that.

Right now we only disable it when "Voter log" is selected but we don't filter on the action type if "All" is selected either. We could but then that's essentially "Admin log" isn't it?

You're right. It could be slightly different if the radios apply only to the Admin logs while still showing all the Voter logs. But I think disabling seems more straightforward.

Change 663587 merged by jenkins-bot:
[mediawiki/extensions/SecurePoll@master] Add action type filter to Special:SecurePollLog page

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