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

Add re-tracker Search API Index implementation for Strawberry Flavors #320

Closed
DiegoPino opened this issue Apr 17, 2024 · 1 comment
Closed
Assignees
Labels
enhancement New feature or request Events and Subscriber Search API F around and find out Strawberry Flavor Post Processing data extracted that goes into Solr
Milestone

Comments

@DiegoPino
Copy link
Member

What?

Strawberry Flavor data sources are not Content Entities, just virtual structures saved inside the permanent key-value storage. On re-tracking of an index we need to add our own implantation. Means

  • Act on an event
  • Read in batches SBFlavor collection items and validate if their parents (nodes and files) still exist. If not also delete. The later already happens automatically on any ADO change/file removal but I can see how tracker might not be updated 100% of the time bc of race conditions related to Drupals DB -read only committed - approach which implies sometimes a deletion might happen inside the same transaction as an untracking but the later is not aware of that (or the other way around)
@DiegoPino DiegoPino added enhancement New feature or request Events and Subscriber Strawberry Flavor Post Processing data extracted that goes into Solr Search API F around and find out labels Apr 17, 2024
@DiegoPino DiegoPino added this to the 1.4.0 milestone Apr 17, 2024
@DiegoPino DiegoPino self-assigned this Apr 17, 2024
@DiegoPino
Copy link
Member Author

Fixed via 393da64. Not you should be able to re-track SBF. Only question (to be determined?) is if there could be any issues with non committed SBF to key value in a single Transaction? We will know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Events and Subscriber Search API F around and find out Strawberry Flavor Post Processing data extracted that goes into Solr
Projects
None yet
Development

No branches or pull requests

1 participant