-
Notifications
You must be signed in to change notification settings - Fork 2
Emit internal _
fields
#63
Comments
Copying previous discussion for better overview: "don't emit It should at least be possible to bypass this filter by somehow marking desired fields. E.g., all fields explicitly mapped by the user and/or listed in Originally posted by @blackwinter in #60 (comment) |
Since I saw this in the catmandu documentation. It always seems to emit fields that have See the example here Also I think that I think we should mimik the behaviour that keeps the field by default as in catmandu. Test case: If this is only about the metamorph internal fields (like |
Virtual fields can be accessed like regular metadata fields, but aren't emitted by default.
Don't mark internal fields with underscore prefix; instead, make `_id` a virtual field. NOTE: Inlined `Value.merge()` in `Value.Hash.add()` in order to prevent subtle bugs with virtual fields in the future.
Virtual fields can be accessed like regular metadata fields, but aren't emitted by default.
Don't mark internal fields with underscore prefix; instead, make `_id` a virtual field. NOTE: Inlined `Value.merge()` in `Value.Hash.add()` in order to prevent subtle bugs with virtual fields in the future.
@TobiasNx: Ready for review. |
Oops, I may have been too quick with merging the pull request. Is the functional review still coming? |
To be honest, I was planing to, but I realized that I do not know how to review new MR for Fix, this seems different from metafacture when building from source. @fsteeg deploid his new commit to the test playground. But I think that this is not the solution. How should I do this |
In your Metafacture project (oersi-etl?), you can add a source dependency on the metafacture-fix branch in question: diff --git build.gradle build.gradle
index 2724310..67b2bcc 100644
--- build.gradle
+++ build.gradle
@@ -44,7 +44,7 @@ dependencies {
implementation 'org.metafacture:metafacture-elasticsearch:5.3.0-rc2'
implementation 'org.metafacture:metafacture-xml:5.3.0-rc2'
implementation 'org.metafacture:metafacture-fix:0.2.0-rc2'
- implementation 'org.metafacture:metafix:0.2.0-rc6'
+ implementation('org.metafacture:metafix') { version { branch = '63-emitUnderscoreFields' } }
implementation('org.metafacture:metafacture-biblio:5.3.0-rc2') {
exclude group: 'xml-apis', module: 'xml-apis'
}
diff --git settings.gradle settings.gradle
index 10ca9b3..26490b5 100644
--- settings.gradle
+++ settings.gradle
@@ -8,3 +8,9 @@
*/
rootProject.name = 'oersi-etl'
+
+sourceControl {
+ gitRepository('https://github.com/metafacture/metafacture-fix.git') {
+ producesModule('org.metafacture:metafix')
+ }
+} This depends on the particular system/configuration, of course. |
Right, two issues here (colliding with comment by @blackwinter, but posting anyway):
|
True, but I was trying to save time by parallelizing the process. Maybe unsuccessfully :/ Sorry! |
+1 I tested it. What does not seem to work though is to keep "_id" additionally to other fields if you do not want to use retain. I stated the problem above. |
Thanks for the review!
You should be able to map it onto itself: |
Came up in #60. Internal
_
fields should be emitted if explicitly listed inretain
.The text was updated successfully, but these errors were encountered: