You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Peter deleted a ballot-level election that was made mistakenly. This updated the modified timestamp for the ballot-level election, but didn't update its parent election's modified timestamp.
Aside from this causing some issues with other project's EE importers, it would make sense that deleting a child election also updates the parent election's modified timestamp because the parent has one less child.
two ballot-level elections were created and approved after their parent election local.2024-12-05. Their creation and approval didn't update the parent election modified timestamp. These ballot-level elections weren't synced by YNR because it only syncs recently modified parent elections. I think that this a change like the one suggested above would also address this issue, but it worth investigating.
Peter deleted a ballot-level election that was made mistakenly. This updated the modified timestamp for the ballot-level election, but didn't update its parent election's modified timestamp.
Aside from this causing some issues with other project's EE importers, it would make sense that deleting a child election also updates the parent election's modified timestamp because the parent has one less child.
For more info on the soft delete system: https://github.com/DemocracyClub/EveryElection/wiki/Cancelled-Elections-and-Soft-Deletes
One potential fix:
In the
ModerationHistory.save()
method, touch the modified date of any parent elections as well as the election object itself:EveryElection/every_election/apps/elections/models.py
Lines 556 to 569 in 0decd2d
related issue on YNR: #2289
The text was updated successfully, but these errors were encountered: