Page MenuHomePhabricator

SecurePoll: namespace not updated when election edited while election is running
Closed, ResolvedPublic3 Estimated Story PointsBUG REPORT

Description

What is the problem?

When creating an election, the election's config is recorded in a page (e.g. https://vote.wikimedia.beta.wmflabs.org/wiki/SecurePoll:154). This page is not updated when the election is edited while the election is running.

It is updated if I edit the election before it starts.

Steps to reproduce problem
  1. Go to https://vote.wikimedia.beta.wmflabs.org/wiki/Special:SecurePoll/create
  2. Create a new election, setting the start date to today
  3. Find the election's $id and go to https://vote.wikimedia.beta.wmflabs.org/wiki/SecurePoll:$id
  4. Edit the election, change the Return-to URL and/or the Admins

Expected behavior: The edits made in step 4 should be reflected in https://vote.wikimedia.beta.wmflabs.org/wiki/SecurePoll:$id
Observed behavior: The namespace remains the same as after the election was first created (in step 3)

Event Timeline

Change 674567 had a related patch set uploaded (by STran; owner: STran):
[mediawiki/extensions/SecurePoll@master] Write changes to namespace when editing running polls

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

STran set the point value for this task to 2.Mar 24 2021, 4:43 PM
STran changed the point value for this task from 2 to 3.

Change 674567 merged by jenkins-bot:
[mediawiki/extensions/SecurePoll@master] Write changes to namespace when editing running polls

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

I cannot reproduce the bug in the description. The respective SecurePoll:$id page gets updated.

I also retested editing an election before it has started and making sure the SecurePoll:$id and SecurePoll:$id/msg/$lang gets updated, in case of regression.

Test environment: https://vote.wikimedia.beta.wmflabs.org SecurePoll 2.0.0 (83d545c) 06:33, 30 March 2021.