-
-
Notifications
You must be signed in to change notification settings - Fork 359
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
#surveyme in last Note comment should show the Note (even if there are no preceding comments) #6052
Comments
This behaviour is coordinated by Lines 191 to 223 in 45a51eb
more specifically Line 207 in 45a51eb
This hides a note that is created from (a) within SC, (b) by yourself and (c) has no replies, just like your test (3), no matter if #surveyme is contained or not. A note I created via osm.org and downloaded the data in SC after that correctly shows the note, even though #surveyme is the first comment: So, it would need to be discussed, whether the exclusion of notes from oneself within the app without replies should be hidden no matter what, or, if surveyme should "override" that behaviour. |
Thanks for the investigation! |
I'd agree that the current behavior is as intended. The reason is stated in the comment: newly created notes by user should not be shown if it was both created in this app and has no replies yet |
I see no reason why we should exclude them? Original note creator can do that on-ground survey as well as any other on-the ground mapper (and probably better, as they obviously have active interest in that being solved, or they wouldn't create the note in the first place).
Yes, but that is pre-surveyme behaviour, and should be overriden by Same as we regularly don't show the note if it was last commented by current user -- but that check is currently being overriden by |
Back in #2641 (via b3ad39b), it was made that
#surveyme
tag in the last comment would always (unless manually hidden by the user) result in showing the OSM Note, even if that comment was created by the same user which is using the app.In SC 60.0 it works mostly, i.e. if that comment is any but the first one.
I don't think that is intentional (I see no logic for that, nor do the comments seem to indicate the reason for such strange behaviour).
If the user's last comment contains a marker indicating the survey is required and we want to display the note in that case (as we do), then it should not matter how many comments preceded that last one (0 or more).
How to Reproduce
test
; and note gets hidden - OK#surveyme test
; and note remains displayed - OK#surveyme test
-- note gets hidden - BADExpected Behavior
Versions affected
SC 60.0, Android 14
The text was updated successfully, but these errors were encountered: