code4romania / redirectioneaza

Helping NGOs collect the 230 tax form
https://redirectioneaza.ro
Mozilla Public License 2.0
21 stars 24 forks source link

Delete an NGO's pre-filled form if its data changes #243

Closed tudoramariei closed 5 months ago

tudoramariei commented 6 months ago

Is your feature request related to a problem? Please describe.

For each NGO, you can download a pre-filled donation form with that organization's information. The form is generated on the first request and then stored to improve performance. If the NGO updates its data, the form becomes out-of-date and needs to be redone.

Describe the solution you'd like

When any of the fields present on the NGO's form change, the file should be deleted. It would be ideal that this task be async (using Django-Q2) to avoid waiting for S3 requests.

Additional context

We don't need to regenerate it. This will happen when a user requests it again.