-
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
Handle transformation and solr indexing errors #269
Conversation
Container Scanning Status: ✅ Success
|
32ac1bb
to
132f5be
Compare
132f5be
to
d196044
Compare
a23a3e0
to
c0b4c2d
Compare
6e33dd3
to
52200a7
Compare
908e509
to
03b3b36
Compare
03b3b36
to
f28c8ca
Compare
f28c8ca
to
9a43c3f
Compare
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.
Just a small style suggestion, but no blockers.
Looks great!
lib/dpul_collections/solr.ex
Outdated
) | ||
|
||
if response.status != 200 do | ||
Enum.each(docs, fn doc -> add([doc]) end) |
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.
Suggestion: docs |> Enum.each(&add/1)
or Enum.each(docs, &add/1)
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.
Had to change the guard clauses a bit, but overall, I think it's better now.
@@ -27,7 +27,7 @@ defmodule DpulCollections.IndexingPipeline.Figgy.HydrationCacheEntry do | |||
|
|||
%{ | |||
id: id, | |||
title_txtm: get_in(metadata, ["title"]), | |||
title_txtm: extract_title(metadata), |
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 like that we're starting to get to a pattern here.
ef22ec5
to
8a0d5cf
Compare
Work towards #268
Current counts:
Figgy: 56172
Hydration Cache: 56106
Transformation Cache: 56106
Solr Records: 56106