-
Notifications
You must be signed in to change notification settings - Fork 20
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
Islandora connector houdini #49
Islandora connector houdini #49
Conversation
}) | ||
|
||
// Make a HEAD request for the Node | ||
.removeHeaders("*", "Authorization") |
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 this assume the node is publicly available, is there a JWT on the event we could reuse?
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.
Yeah totally. That's what this code is doing. The second (and any subsequent) parameter(s) to removeHeaders() are patterns that identify headers to keep. We're maintaining the Authorization header all the way down, which is populated here: https://github.com/Islandora-CLAW/islandora/blob/6e4815ef8743889b4bbd9d9870d2c60f21fe5fc3/src/EventGenerator/EmitEvent.php#L143
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.
} | ||
|
||
private void regexSearchAndSetProperty(String regex, String[] links, String propertyName, Exchange exchange) { | ||
Pattern pattern = Pattern.compile(regex); |
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.
Seeing as how you have 3 of these patterns that you use for each request. It might be better to compile them as class variables once and just use them in here.
This is now wrapped up in Islandora/documentation#86 |
Codecov Report
@@ Coverage Diff @@
## master #49 +/- ##
============================================
+ Coverage 77.31% 79.47% +2.16%
- Complexity 16 56 +40
============================================
Files 4 11 +7
Lines 119 229 +110
Branches 1 1
============================================
+ Hits 92 182 +90
- Misses 26 46 +20
Partials 1 1
Continue to review full report at Codecov.
|
GitHub Issue: Islandora/documentation#766
What does this Pull Request do?
Provides a camel listener to send images to Houdini and place the results back in Drupal.
What's new?
How should this be tested?
Testing instructions to come.
Interested parties
Tag (@ mention) interested parties or, if unsure, @Islandora-CLAW/committers