-
-
Notifications
You must be signed in to change notification settings - Fork 236
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
Report re-opened through questionnaire without comment #2357
Comments
Thanks for the detailed report :) #1998 changed the process so that a basic questionnaire response is recorded as soon as the link in the email is clicked (in case they don't then fill in the form at all). This means there is no associated update if that happens. However, in that situation, a report page should still list questionnaire responses without associated updates (see the |
Did #1998 intend to relax the requirement that a comment is needed when re-opening a report? If so I agree it seems load_updates looks wrong since it's making the assumption that state change implies a comment. How about if load_updates, instead of looking at whether the state was changed in the questionnaire, includes those entries from the questionnaire table for which there isn't an entry in the comment table (using the 'questionnaire_id' extra meta data in the comment table)? So we'll start with all entries from the questionnaire table and filter out those with ids found in the comment table. Then load_updates is not making any assumptions about when a questionnaire has a comment. For the basic questionnaire response recorded as soon as the link is clicked, before the form has been properly filled in and submitted, what do we expect new_state to be? |
Yes,
|
Describe the bug
We've noticed a few issues recently where a body has marked a report as Fixed, yet it shows up as still Open.
It looks like this when viewing the report:
The only update in the report is from the body, which has marked the report as Fixed (circled in the picture - "Löst" in Swedish). The map pin shows it as open, and there's no fixed banner at the top right of the report frame.
Checking the problem state in the database:
Checking the updates:
Checking the questionnaires:
So it seems the reporter has re-opened the report through the questionnaire. This doesn't show up in the updates however.
According to https://fixmystreet.org/running/surveys/ the reporter needs to leave a comment when re-opening an issue:
"If the user changes the state of a problem that is currently fixed to something else, that is, they effectively re-open the problem, then the update comment is not optional."
So I suppose there should have been another row in the comment table for this report?
To Reproduce
We have been unable to reproduce. When we re-open through the questionnaire a comment is required (and that comment correctly shows up in the report)
Expected behavior
When a report is re-opened through the questionnaire, it should be visible among the updates for the report.
Additional context
FixaMinGata is currently running v2.3.4 of FixMyStreet.
Any tips on how I can investigate this further, or something I can try in order to reproduce, would be much appreciated!
The text was updated successfully, but these errors were encountered: