You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If users toggle answers faster than 1 second, then a duplicate of that statement appears in the list of statements. This is because we are now filtering by createAt(), which only records up to the second (an example is 2024-07-19 08:11:03). So if a user clicks multiple times in one second, the createAt() time is the same for both entries so both entries are displayed.
Possible solutions:
We could add milliseconds to createAt() somehow
We could filter first by createAt(), then by id -- but that's assuming id is unique and correct chronologically
We could leave it for now, as users changing answers faster than a second is probably not too common
To Reproduce
Steps to reproduce the behavior:
Go to Dashboard -> Answers
Click on 'Edit your answers' and toggle any toggle for a specific statement
Expected behavior
It shouldn't show duplicate statements, no matter how fast the user toggles.
Screenshots
Toggled "others agree" for "Balls are round" too fast, so the statement appears twice
Additional context
This bug came up as a result of changing the filter for the latest answer for a statement per user to createAt() instead of id, which is better practice but has some limitations.
Related issues and PRs:
Describe the bug
If users toggle answers faster than 1 second, then a duplicate of that statement appears in the list of statements. This is because we are now filtering by
createAt()
, which only records up to the second (an example is 2024-07-19 08:11:03). So if a user clicks multiple times in one second, thecreateAt()
time is the same for both entries so both entries are displayed.Possible solutions:
createAt()
somehowcreateAt()
, then byid
-- but that's assuming id is unique and correct chronologicallyTo Reproduce
Steps to reproduce the behavior:
Expected behavior
It shouldn't show duplicate statements, no matter how fast the user toggles.
Screenshots
Toggled "others agree" for "Balls are round" too fast, so the statement appears twice
Additional context
This bug came up as a result of changing the filter for the latest answer for a statement per user to
createAt()
instead ofid
, which is better practice but has some limitations.Related issues and PRs:
The text was updated successfully, but these errors were encountered: