-
Notifications
You must be signed in to change notification settings - Fork 103
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
Clean up datamodel for case and query #262
Conversation
…inder.rb however makign this change as one of our tests was flagging it as causing extra unrequired loads! also makes it the same as the others!
Looking at the hosted version of Quepid, interestingly we have 23036 deleted queries and only 18461 not deleted queries! |
BTW, I'm starting to think the soft delete might be useful... If I have a bunch of queries and ratings, do I want to lose them just because I don't want the query right now on my case? |
This work was subsumed in first the Rails 5 upgrade, and then in the work on #288, so this can be closed. |
Description
Let cases and queries be deleted.
Motivation and Context
I started out looking at #250 about archiving a case being supported, but not deleting. Digging in, I realized that I don't know why we have a
soft_delete
function on Queries. What is the point of being able to mark a query as deleted, but not actually delete it? Especially since soft deleting caused a bug in the snapshots, see #255. As far as I can tell, a soft deleted query is never undeleted.. And never used?So branching this out a bit to removing the soft delete function on a query. If you delete a query you delete the query!
How Has This Been Tested?
Screenshots or GIFs (if appropriate):
Types of changes
Checklist: