INSPIRE-specific configuration of the JSON Merger.
inspirehep / inspire-json-merger Goto Github PK
View Code? Open in Web Editor NEWINSPIRE-specific configuration of the JSON Merger.
License: GNU General Public License v3.0
INSPIRE-specific configuration of the JSON Merger.
License: GNU General Public License v3.0
After discussion with Micha we suggest as follows:
('MANUAL_MERGE', ('authors',), ( pmap(<ROOT>), pmap(<HEAD>), pmap(<UPDATE>) )),
MANUAL_MERGE
and do as follows:HEAD
at the right position .ADD_BACK_TO_HEAD
conflict with identical content as HEAD
change and remove it as it's already added to HEAD
replace
JSON patch at the right positionThis should result in less conflicts in editor, also should allow to achieve behavior of getting HEAD when dismissing all conflicts.
Originally posted by @pazembrz in inspirehep/inspirehep#1110 (comment)
When UPDATE removes something from HEAD json_merger generates ADD_BACK_TO_HEAD
conflict. Now it's just interpreted as it is so in merged
value is absent and in patch we have an add
of HEAD value, but we want it to work in opposite way. So in merged
we should have value from HEAD and patch should be a delete
.
Because it's the right thing to do.
Currently the structure of the inspire_json_merger
folder doesn't help to understand what to import and from where.
All conflicts should be displayed as changes form head. For conflicts which do not have separate configuration If there is conflict on update, then HEAD value should be in merged
and update should be put as conflict. So when curator reject all conflicts only HEAD values should be left. This will require to set default fallback conflict strategy to KEEP_HEAD.
All conflicts which we are ignoring (ones from conflict_filters
) should stay with HEAD values if they are not configured differently.
Given two objects, i.e. two authors, we need a new strategy to merge them in according to a custom property, for example the full_name
's length.
Now that integration
is gone we can flatten the structure of this folder, also avoiding things like utils/utils.py
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.