-
Notifications
You must be signed in to change notification settings - Fork 119
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
1.22 breaking change #352
Closed
Gasparila opened this issue
May 10, 2019
· 2 comments
· Fixed by flexport/algoliasearch-rails#2 or #354
Closed
1.22 breaking change #352
Gasparila opened this issue
May 10, 2019
· 2 comments
· Fixed by flexport/algoliasearch-rails#2 or #354
Comments
Gasparila
added a commit
to flexport/algoliasearch-rails
that referenced
this issue
May 11, 2019
Fix breaking change introduced in algolia#352 According to the [documentation](https://github.com/algolia/algoliasearch-rails/blob/master/lib/README.md#630), using custom attributes without a custom `_changed?` method will always cause changes to push to the API. This behavior was lost in algolia#338 Fix unexpected behavior during transactions algolia#353 `@algolia_must_reindex` is reset in every validate call. This means that a record that is updated multiple times in a transaction will only be indexed if the final update marks as must reindex. Update the code so that once `@algolia_must_reindex` is marked as `true`, it remains true until explicitly unset in `algolia_perform_index_tasks`
We've experienced the same bug and it was hard to debug... Please Algolia be careful with regressions 🙏 |
Gasparila
added a commit
to flexport/algoliasearch-rails
that referenced
this issue
May 11, 2019
Fix breaking change introduced in algolia#352 According to the [documentation](https://github.com/algolia/algoliasearch-rails/blob/master/lib/README.md#630), using custom attributes without a custom `_changed?` method will always cause changes to push to the API. This behavior was lost in algolia#338 Fix unexpected behavior during transactions algolia#353 `@algolia_must_reindex` is reset in every validate call. This means that a record that is updated multiple times in a transaction will only be indexed if the final update marks as must reindex. Update the code so that once `@algolia_must_reindex` is marked as `true`, it remains true until explicitly unset in `algolia_perform_index_tasks`
Merged
Gasparila
added a commit
to flexport/algoliasearch-rails
that referenced
this issue
May 13, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
#338 introduced a few
breaking changes (including 1 fixed in #350).
https://github.com/algolia/algoliasearch-rails/pull/338/files#diff-dfaec67e907148ea8211e17340f0f30cR749 changed the behavior
for when
<attribute>_changed?
doesn't exist. Previously it wouldbe conservative and always auto-index if there are custom attributes.
Now it will assume no changes are necessary
Steps To Reproduce
The text was updated successfully, but these errors were encountered: