Skip to content
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

XForm num_of_submissons value is occasionally out of sync #2724

Open
kelvin-muchiri opened this issue Oct 15, 2024 · 0 comments
Open

XForm num_of_submissons value is occasionally out of sync #2724

kelvin-muchiri opened this issue Oct 15, 2024 · 0 comments
Labels

Comments

@kelvin-muchiri
Copy link
Contributor

kelvin-muchiri commented Oct 15, 2024

Environmental Information

  • Onadata version: <= v4.8.0

Problem description

The submissions count goes out of sync occasionally

Expected behavior

The submissions count should match the number of submissions after the forms receives submissions, submissions are soft deleted or hard deleted.

Steps to reproduce the behavior

Make multiple submissions to a form. Compare the value in XForm.num_of_submissions and the results of XForm.instances.filter(deleted_at__isnull=True).count()
Import multiple submissions to a form. Compare the value in XForm.num_of_submissions and the results of XForm.instances.filter(deleted_at__isnull=True).count()

Additional Information

Possible approach to resolving this an approach used to update the value for Entity.num_entities field

@kelvin-muchiri kelvin-muchiri changed the title XForm num_of_submissons is off XForm num_of_submissons value of occasionally out of sync Oct 15, 2024
@kelvin-muchiri kelvin-muchiri changed the title XForm num_of_submissons value of occasionally out of sync XForm num_of_submissons value is occasionally out of sync Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant