-
Notifications
You must be signed in to change notification settings - Fork 95
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
Add database updates to APIs #302
Conversation
… type custom field: Name: cannot be blank' errors
"path", r.URL.Path, | ||
"doc_id", docID, | ||
) | ||
// Don't return an HTTP error because the database isn't the source of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can mark this as a TODO just so we can track it when we introduce the new API?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking that this would never change in this file - the new version of the API will be a different file and this file will just be deleted. I'll remember to return an HTTP error for v2 🙂
"path", r.URL.Path, | ||
"doc_id", docID, | ||
) | ||
// Don't return an HTTP error because the database isn't the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as above.
This PR adds functionality to current APIs to make database updates in addition to Algolia updates, as we migrate to the database being the source of truth for this information. Database errors for these APIs won't return HTTP errors and instead just log them because this data (in the DB) isn't critical yet.