-
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
pass event type as event header to milliner #61
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #61 +/- ##
============================================
+ Coverage 84.89% 85.33% +0.44%
- Complexity 96 98 +2
============================================
Files 16 16
Lines 331 341 +10
Branches 1 1
============================================
+ Hits 281 291 +10
Misses 49 49
Partials 1 1
Continue to review full report at Codecov.
|
I will work on tests once I know if this is the right approach to take. |
I'm going to try to update the tests for this as well |
…en isNewVersion is 1
… to both happen - very noisily
This appears to work for me. 👍 The one hiccup I have is that the derivative consumers aren't starting up. |
Ah, I bet I need to update the AS2Object in the connector-derivative also |
Are you seeing any kind of error message on the derivs? I'm not seeing anything errors in the karaf.log |
It’s alllllliiiiiiiive! 🥳 |
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.
(after Travis comes back okay).
...and Travis hates my whitespace. Good to know big brother is still watching. I'll undo that whitespace then. |
Well, at least Travis is happy now! @elizoller, we just need to get codecov happy now. |
ok, no problem. i'll look at the tests. thank you so much @seth-shaw-unlv! |
The more I look at this, the more I think that we don't need to touch the AS2Object in the derivative-connector. Because the derivative-connector doesn't need to know if its a new Drupal version, right? |
@elizoller, you are probably right. Wasn't that added when we were trying to figure out why my derivatives weren't processing? We can try pulling it out and seeing if it still works without it. |
If I remove it from the AS2Object for the derivative-connector here in Alpaca then the related PR for Islandora will have to not send the isNewVersion flag to anything that goes to islandora-connector-* queues instead of islandora-indexing-fcrepo (or else it'll error). So it'll involve a commit here and corresponding commit on the islandora PR Islandora/islandora#733 |
GitHub Issue: (Islandora/documentation#740)
What does this Pull Request do?
Passes the event type through from the Drupal event object to Milliner's node stream
What's new?
just mapping event.object.type to a header called Event
How should this be tested?
Additional Notes:
I kind of made up this header. There are many different ways to do this. It could be an entirely separate stream of events from drupal and/or it could point to a separate milliner endpoint. I'm definitely open to whatever is deemed as the best practice - this was just a starting point to get the pieces connected.
Interested parties
@Islandora-CLAW/committers