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

Clean up datamodel for case and query #262

Closed
wants to merge 163 commits into from
Closed

Conversation

epugh
Copy link
Member

@epugh epugh commented Dec 19, 2020

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

  • [] Bug fix (non-breaking change which fixes an issue)
  • [] Improvement (non-breaking change which improves existing functionality)
  • [] New feature (non-breaking change which adds new functionality)
  • [] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • [] My code follows the code style of this project.
  • [] My change requires a change to the documentation.
  • [] I have updated the documentation accordingly.
  • [] I have read the CONTRIBUTING document.
  • [] I have added tests to cover my changes.
  • [] All new and existing tests passed.

@epugh epugh requested a review from worleydl December 19, 2020 14:55
@epugh
Copy link
Member Author

epugh commented Dec 19, 2020

Looking at the hosted version of Quepid, interestingly we have 23036 deleted queries and only 18461 not deleted queries!

@epugh epugh temporarily deployed to quepid-pr-262 December 19, 2020 14:56 Inactive
@epugh epugh temporarily deployed to quepid-pr-262 December 19, 2020 15:51 Inactive
@epugh
Copy link
Member Author

epugh commented Dec 22, 2020

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?

@epugh
Copy link
Member Author

epugh commented Mar 14, 2021

This work was subsumed in first the Rails 5 upgrade, and then in the work on #288, so this can be closed.

@epugh epugh closed this Mar 14, 2021
@epugh epugh deleted the clean_up_datamodel branch April 25, 2021 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants