-
Notifications
You must be signed in to change notification settings - Fork 155
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
After updating an entity the number in the "Download x Entities” button for a moment shows a higher number (+1) #560
Comments
I can see at least two issues on this page:
|
I think this issue is now resolved. When I visit the URL and refresh the page several times, I always see that the count in the button matches the number of rows of the table. I think the issue had to do with deleted entities: deleted entities were not included in OData or the CSV download, but they were included in the count shown in the button. This entity list had one deleted entity.
I think (but am not 100% sure) that this intermittency had to with the order of responses from the server. If the UI received the entity list object before the OData, then I think it would show the incorrect count in the button. However, if it received the OData before the entity list object, then it would show the correct count.
Does that mean that the count in the button sometimes changed even without refreshing the page? Or did it only change when you refreshed the page? I think the count in the button should now be correct and consistent with the number of rows of the table. If you create or delete an entity, then click the refresh button, the count in the button should change to match the updated number of entities. You should never have to refresh the page to make the two counts match. Let me know if you see any issues related to these counts! |
(Before the fix) At first when I used the refresh button the count in the button didn't change, if I refreshed the page the count in the button was wrong. Afterwards refreshing the page changed the number in button to: ok number and +1 number so it was like back and forth changing the number. |
Tested with Success! |
1 similar comment
Tested with Success! |
Problem description
After updating an entity the number in the "Download x Entities” button for a moment shows a higher number (+1) than the number of entities in the entities table (the Data tab).
After following the steps below, if I refresh the page again (sometimes more than once) the number will get corrected. When the number is wrong in the downloaded CSV there isn't an extra record.
Some time after filing the issue I reopened the link below and I can see that the number is again +1 although it got corrected after refreshing.
URL of the page
used forms and dataset in
https://staging.getodk.cloud/#/projects/62/entity-lists/trees/entities
Steps to reproduce the problem
(Preconditions: Trees registration and Trees update form are added in Collect)
Screenshot
Expected behavior
The number of entities on the list should be equal to the number of entities to download.
Central version shown in version.txt
staging versions:
versions:
d2345d0 (v2023.4.0-5-gd2345d0)
+4b5d237c5d83f7fc5c64dce79229f9edd97cff62 client (v2023.4.0-46-g4b5d237c)
+c2580569befe146837d770185e49b61ebab5d06e server (v2023.4.0-44-gc2580569)
The text was updated successfully, but these errors were encountered: