-
Notifications
You must be signed in to change notification settings - Fork 0
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
[WIP] Delete records when visiblity or state change #320
base: main
Are you sure you want to change the base?
Conversation
6436965
to
3492690
Compare
Container Scanning Status: ✅ Success
|
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.
This is big! I left a few comments but will probably need to look at it again. Thank you!
|
||
#### Transformation Consumer | ||
|
||
1. Messages with the deleted => kv pair are handled separately. |
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.
It would be nice to say why they are handled separately. Is there something we could put in the context that would motivate this decision?
#### Transformation Consumer | ||
|
||
1. Messages with the deleted => kv pair are handled separately. | ||
1.A special solr document is generated from the deleted object hydration cache |
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.
Need a space here
internal_resource: "DeletionMarker", | ||
metadata: %{"resource_id" => [%{"id" => id}]} | ||
}) do | ||
# A CacheMarker for a DeletionMarker resource has a standard timestamp, but |
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.
👍🏻
@@ -68,6 +68,38 @@ defmodule DpulCollections.IndexingPipeline.Figgy.HydrationConsumer do | |||
|> Broadway.Message.put_data(message_map) | |||
end | |||
|
|||
@impl Broadway | |||
# pass through messages and write to cache in batcher to avoid race condition |
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.
Can we say more about the race condition in this comment? Or point to somewhere else where it's discussed?
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.
Does one of these handle_message clauses handle deletions? Could we add a comment clarifying the patterns matched here?
No description provided.