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

Add statistics view to admin #3783

Closed
4 tasks done
joeribekker opened this issue Jan 16, 2024 · 0 comments · Fixed by #3789
Closed
4 tasks done

Add statistics view to admin #3783

joeribekker opened this issue Jan 16, 2024 · 0 comments · Fixed by #3789

Comments

@joeribekker
Copy link
Contributor

joeribekker commented Jan 16, 2024

Currently, we cannot reliably show the number of submissions received by Open Formulieren. We can count the submissions present in the database but those are cleaned periodically and should not affect the counter.

Tasks

  • Add model with attributes: form (fk), form_name (str), submission_count (int), first_submission (datetime), last_submission (datetime).
  • Add admin with list view to show these fields. Make a convenience function to show self.form.name or self.form_name
  • Add admin page to form menu (django-admin-index)
  • Add hook to update the counter when a submission is successfully finished (not necessarily sent to a register backend but just received by OF)

The idea of the form and form_name fields is that if the form is deleted, we still have the statistics for it.

@joeribekker joeribekker added this to the Release 2.5.0 milestone Jan 16, 2024
vaszig added a commit that referenced this issue Jan 19, 2024
The submissions exist in the db but are cleaned periodically. We added a
model which keeps track of the submitted forms with a counter. We keep
the form name in case the form is deleted.
vaszig added a commit that referenced this issue Jan 19, 2024
The submissions exist in the db but are cleaned periodically. We added a
model which keeps track of the submitted forms with a counter. We keep
the form name in case the form is deleted.
vaszig added a commit that referenced this issue Jan 22, 2024
sergei-maertens pushed a commit that referenced this issue Jan 29, 2024
The submissions exist in the db but are cleaned periodically. We added a
model which keeps track of the submitted forms with a counter. We keep
the form name in case the form is deleted.
sergei-maertens pushed a commit that referenced this issue Jan 29, 2024
vaszig added a commit that referenced this issue Jan 30, 2024
sergei-maertens pushed a commit that referenced this issue Jan 30, 2024
The submissions exist in the db but are cleaned periodically. We added a
model which keeps track of the submitted forms with a counter. We keep
the form name in case the form is deleted.
sergei-maertens added a commit that referenced this issue Jan 30, 2024
…stics-view-to-admin

[#3783] Add statistics view for the submitted forms to the admin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants