-
-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a send_state column to problems #4048
Comments
I like this idea. Would help identify real problems amongst the noise. A couple of thoughts:
|
More details on first bullet point - per some recent user support, potentially enable us to have Refused councils still show new reports in All reports (currently, e.g. the Tower Hamlets page only shows reports sent to Tower Hamlets because it goes off the |
I've started a branch for this here: https://github.com/mysociety/fixmystreet/compare/add-send-state-to-problems At the time of writing it's just got the DB migrations in there. Next steps are to update the report sending code to check the value of the |
"Could break the acknowledged reports out into their own section on the admin front page maybe, or at least indicate their status on that table" - they'll be greyed out if acknowledged. |
Plus #4517, and adding send_state => 'processed' to GetServiceRequests.pm (so they weren't processed), and changing the index to be partial excluding hidden/unconfirmed and putting send_state first, and making sure unconfirmeds were still to be processed too |
In a similar vein to #3865 if we add such a column to the problem table we can get the following benefits:
bodies_str
as we do now;Currently sending looks for reports: in an open state, with a bodies_str, not to a No-op body or No-op contact, currently unsent (either totally or with send_fail_body_ids set).
Could instead look for 'unprocessed' (and acknowledged?) - if no bodies_str/closed/fixed, mark as 'processed'; if No-op body/contact, do nothing; otherwise try and send - set sent if succeeded.
The text was updated successfully, but these errors were encountered: