Council users could navigate directly to the file upload form even if there are no upcoming elections according to WDIV by using the upload form url. Admin users could also do this by clicking the upload links on the council list view at /uploads
This PR makes it so the upload form won't appear unless there are upcoming elections, and adds a short message telling the user to get in touch with us if they have data to upload.
Example of new message at uploads/upload_files/ADU:
coverage: 70.912%. remained the same
when pulling d630b7ebef6677f53d5a1fcf9ef1e0c2583e2f14 on awdem:fix/no-upcoming-elections-url-hack
into 30e60a50939058f43ae57ff0154b0ec8dbb54fe1 on DemocracyClub:master.
I think this repo actually does run the tests properly for PRs submitted from a fork, but just as a note for next time, can you submit PRs from a branch off the main repo. Ta
This PR addresses the following issue:
Council users could navigate directly to the file upload form even if there are no upcoming elections according to WDIV by using the upload form url. Admin users could also do this by clicking the upload links on the council list view at
/uploads
This PR makes it so the upload form won't appear unless there are upcoming elections, and adds a short message telling the user to get in touch with us if they have data to upload.
Example of new message at
uploads/upload_files/ADU
: