Skip to content

Add user answer deleted field#672

Merged
joshi1983 merged 3 commits intomasterfrom
add-user-answer-deleted-field
Jul 30, 2018
Merged

Add user answer deleted field#672
joshi1983 merged 3 commits intomasterfrom
add-user-answer-deleted-field

Conversation

@joshi1983
Copy link
Copy Markdown
Collaborator

No description provided.

@joshi1983 joshi1983 force-pushed the add-user-answer-deleted-field branch from 76571b7 to 33a0df8 Compare July 29, 2018 21:51
passionInfinite and others added 3 commits July 29, 2018 20:25
Also, made use of the new field to simplify a rating calculation query.

Also, adjusted some of the AnswerRepository to maintain the new deleted_at field in its intended state. (NULL for only the latest answer by a given user for a given location and question).

I looked for but couldn't get the Eloquent delete method and queries to recognize deleted_at for the soft-delete field it was intended to be.  Instead, resorted to explicitly using update statements, whereNull('deleted_at').

Related to #615
@joshi1983 joshi1983 force-pushed the add-user-answer-deleted-field branch from 33a0df8 to b09fd3f Compare July 30, 2018 00:25
@joshi1983 joshi1983 merged commit 6f730ea into master Jul 30, 2018
@joshi1983 joshi1983 deleted the add-user-answer-deleted-field branch July 30, 2018 00:27
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.

2 participants