Hi all, I’m currently having some problems with the annotations on sightings. Specifically, once I agree or disagree with an annotation, I cannot remove my agreement or disagreement except in a roundabout and unintuitive way. I have tried it with three different observations and all behave the same, so it is not just one weird buggy sighting like most of my problems seem to be!
Here is an example with the sighting I first noticed it on. Here is how it looks at the start:
I then hit ‘Agree’ for life stage:
Normally, if I then hit ‘Agree’ again, it will remove my agreement. But at the moment, it thinks for a bit:
And then… nothing. No change:
Hitting ‘Disagree’ functions as normal, and swaps my vote:
But then there is the same problem with the disagreement - I cannot get rid of my vote unless I swap it back to agreement. I was thinking it could just be a display issue and that the agreement had been removed but just wasn’t showing for whatever reason, but if I open the observation in a second window it still shows my agreement vote (same if I log out and view the observation anonymously).
The only way I was able to remove my vote was by agreeing with a different annotation, but this only seemed to work after a couple of attempts:
But then of course it is just the same problem with a different annotation. In this case though because the annotation is my own, I can remove it and then re-add it and it goes back to normal:
Hopefully this is enough information to work out what’s going on!
I don’t think it’s loading time unless it takes an enormous amount of time. The annotation takes a good couple of seconds to load when I first put it in, and a couple more seconds to agree with it initially. I just tried it again then with a longer waiting time between the next steps - about 2 minutes - and it still acts the same way. I can’t imagine it would take more than a couple of minutes to properly load everything but I’ll leave it for an hour or two and see if that makes a difference.
this should affect everyone, across all platforms (since the problem seems to be in the API).
as far as i can tell, a DELETE /votes/unvote/annotation/{id} call doesn’t actually remove the annotation vote from the annotation, but it might be creating some sort of record that says the vote should be removed. as matthew_connors notes, a subsequent POST /votes/vote/annotation/{id} call or POST /annotations call (on a different annotation on the same observation) is required to actually remove the vote.
(an alternative to the workaround that matthew_connors notes is to – after attempting to delete the desired vote – simply create a new annotation and then delete that annotation.)
I only noticed it recently but I’m not sure how far back it goes. It wasn’t affecting me earlier this year but I have no idea when it actually started.
so another workaround would be to attempt to delete the vote and then click on one of the DQA metrics (which would trigger a reindex of the observation). you’ll see that the removal of the vote will occur with the change of the DQA metric.
if i’m understanding you correctly, this is intended behavior. in the annotations, the votes up and down are different from the initial annotation – sort of like in a meeting, a motion and second are separate from the votes for that motion.
I just tried that, and yep it removes the vote. I was half expecting the DQA agreement to behave in the same way but it works as normal and I can remove my vote without problem.