Branch: refs/heads/master
Home: https://github.com/openSUSE/open-build-service
Commit: 3b7fe81ba8ef1317f244587d2f257bf0c7ce016e
https://github.com/openSUSE/open-build-service/commit/3b7fe81ba8ef1317f24458...
Author: Dany Marcoux
Date: 2020-08-26 (Wed, 26 Aug 2020)
Changed paths:
R src/api/app/mixins/populate_sphinx.rb
A src/api/app/models/concerns/append_sphinx_callbacks.rb
M src/api/app/models/package.rb
M src/api/app/models/project.rb
M src/api/spec/models/full_text_search_spec.rb
Log Message:
-----------
Append ThinkingSphinx callbacks to Package and Project models
Deleted packages/projects are now removed from Sphinx indices. Before,
we were missing the `after_destroy` callback from
`ThinkingSphinx::ActiveRecord::Callbacks::DeleteCallbacks`. This
resulted in having deleted packages/projects in our Sphinx indices. The
error was `ThinkingSphinx::Search::StaleIdsException` with the message
`Record IDs found by Sphinx but not by ActiveRecord : 123, 456, 789`
See upstream:
https://github.com/pat/thinking-sphinx/blob/df2746b5679c8009527ac87b761357d5...
https://github.com/pat/thinking-sphinx/blob/7622e5e40fe8a79a3329ddc78d54390c...
Commit: e280316b5c98e3e0fadfd1829172fb23867eea8d
https://github.com/openSUSE/open-build-service/commit/e280316b5c98e3e0fadfd1...
Author: Henne Vogelsang
Date: 2020-08-26 (Wed, 26 Aug 2020)
Changed paths:
R src/api/app/mixins/populate_sphinx.rb
A src/api/app/models/concerns/append_sphinx_callbacks.rb
M src/api/app/models/package.rb
M src/api/app/models/project.rb
M src/api/spec/models/full_text_search_spec.rb
Log Message:
-----------
Merge pull request #10071 from dmarcoux/issue-9436
Append ThinkingSphinx callbacks to Package and Project models
Compare: https://github.com/openSUSE/open-build-service/compare/df1321866ddc...e28031...