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

fix(Proofs): Deny users to delete a proof with prices #517

Merged
merged 2 commits into from
Oct 11, 2024

Conversation

raphodn
Copy link
Member

@raphodn raphodn commented Oct 11, 2024

What

Currently the API allows users to delete proofs even if the proof has prices.
(it would not delete prices, but set their proof_id to None)

To enforce data quality, and avoid mistakes, we restrict the deletion to only proofs with 0 prices.

Pending questions

What if the user linked the prices to a wrong proof for instance ? Will need to upload a new proof first, and the prices again to this new proof (maybe allow one day to update the price's proof, or update the proof image ?)

Linked PRs

@raphodn raphodn merged commit 3b1ed29 into main Oct 11, 2024
9 checks passed
@raphodn raphodn deleted the raphodn/proof-api-delete-if-no-prices branch October 11, 2024 13:39
@monsieurtanuki
Copy link

Just tested: "Cannot delete proof with associated prices" 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants