-
Notifications
You must be signed in to change notification settings - Fork 158
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
If an instanceID is reused, duplicate entries will be shown in the submission table #608
Comments
I took a quick look at this. Some initial thoughts:
|
This is only sorted of related, but even if the submissions."createdAt" < cursor."createdAt" or
(submissions."createdAt" = cursor."createdAt" and submissions.id < cursor.id) In other words, |
This issue should now be fixed. @dbemke, probably the only thing that needs to be verified is that there are no negative row numbers. I also wanted to leave a few notes (highlights in bold):
|
Tested with Success! |
1 similar comment
Tested with Success! |
Problem description
Some forms can have duplicate entries shown in the submission table. The submission number displayed on the left goes negative.
URL of the page
https://test.getodk.cloud/#/projects/40/forms/build_simple_1500033035/submissions
https://test.getodk.cloud/#/projects/149/forms/all-widgets/submissions - problems start happening at row 77, I believe
Steps to reproduce the problem
Scroll to the bottom of a submission table and keep scrolling.
Screenshot
Expected behavior
Duplicates are not shown.
Central version shown in version.txt
20dcbf4 (v2023.5.1)
ab0c8ecbf837c7e433b20c7d7d1d2955cc8df1c6 client (v2023.5.0)
983ec81e69793fdb589ffdc346a16ef977489be4 server (v2023.5.0)
Browser version
Not browser-related
Around when did you see the problem (in UTC)?
March 12 10:04pm UTC
Other notes (if any)
The most likely culprit is cursor-based pagination.
The text was updated successfully, but these errors were encountered: