Skip to content

Commit

Permalink
Adding 'new_record' field for all schemas
Browse files Browse the repository at this point in the history
* NEW addresses #1609.

Signed-off-by: Spiros Delviniotis <spyridon.delviniotis@cern.ch>
  • Loading branch information
spirosdelviniotis committed Oct 5, 2016
1 parent 1df3d26 commit 64ab662
Show file tree
Hide file tree
Showing 12 changed files with 54 additions and 6 deletions.
5 changes: 5 additions & 0 deletions inspire_schemas/records/authors.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@
"description": "Stores name in native form.",
"type": "array"
},
"new_record": {
"$ref": "elements/json_reference.json",
"description": "Master record that replaces this record",
"title": "New record"
},
"other_names": {
"description": "Contains other variation of names. Usually a different form of writing the primary name.",
"items": {
Expand Down
5 changes: 5 additions & 0 deletions inspire_schemas/records/conferences.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@
"type": "array",
"uniqueItems": true
},
"new_record": {
"$ref": "elements/json_reference.json",
"description": "Master record that replaces this record",
"title": "New record"
},
"nonpublic_note": {
"title": "Non public note",
"type": "string"
Expand Down
5 changes: 5 additions & 0 deletions inspire_schemas/records/experiments.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@
"title": "Hidden note",
"type": "string"
},
"new_record": {
"$ref": "elements/json_reference.json",
"description": "Master record that replaces this record",
"title": "New record"
},
"nonpublic_note": {
"description": "FIXME: difference from hidden_note!?",
"title": "Non public note",
Expand Down
5 changes: 5 additions & 0 deletions inspire_schemas/records/institutions.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@
"type": "array",
"uniqueItems": true
},
"new_record": {
"$ref": "elements/json_reference.json",
"description": "Master record that replaces this record",
"title": "New record"
},
"non_public_notes": {
"items": {
"title": "Non-Public note",
Expand Down
5 changes: 5 additions & 0 deletions inspire_schemas/records/jobs.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@
"type": "array",
"uniqueItems": true
},
"new_record": {
"$ref": "elements/json_reference.json",
"description": "Master record that replaces this record",
"title": "New record"
},
"position": {
"title": "Job position",
"type": "string"
Expand Down
5 changes: 5 additions & 0 deletions inspire_schemas/records/journals.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@
"type": "array",
"uniqueItems": true
},
"new_record": {
"$ref": "elements/json_reference.json",
"description": "Master record that replaces this record",
"title": "New record"
},
"nonpublic_note": {
"title": "Non public note",
"type": "string"
Expand Down
5 changes: 4 additions & 1 deletion tests/integration/fixtures/authors_example.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@
"value": ")qk,t/ [((>?! oOEE=a8uIb\"u5V_J@/%qmn&YH,:1:stA@z}TNi/lrF{*X;YBt-e=J*AFmNsTF_(4[dtSFMpIWt1*:pA, UZ~oG)`hd5AYA.FW@M-Wq3+ag7a\\:J~4(3aIM7mbYg;5yOSyv,S?Az`ncWRH{cBAv`L%jEsmY"
},
"native_name": [],
"new_record": {
"$ref": "1M\"?!ouZ]W}^ 6ZBtT (OpV2~FoO1*YXan`6q+Zz{|E}b&Rty<P]6o0i)l[,YDwm4_9c}HnG.:l_H"
},
"other_names": [
"ad non",
"sed cupidatat Duis ut",
Expand Down Expand Up @@ -169,4 +172,4 @@
"value": "1*jBK`<gem?+ j`1T|$;b<Q%;8?+"
}
]
}
}
5 changes: 4 additions & 1 deletion tests/integration/fixtures/conferences_example.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@
"value": "sunt ut nulla"
}
],
"new_record": {
"$ref": "1M\"?!ouZ]W}^ 6ZBtT (OpV2~FoO1*YXan`6q+Zz{|E}b&Rty<P]6o0i)l[,YDwm4_9c}HnG.:l_H"
},
"nonpublic_note": "voluptate culpa ipsum anim incididunt",
"note": [],
"opening_date": "1V_5^kBacxK2f+DgAPp*}jGfAQ1e+7dkR+n+cZk[JP#f&GO$[6,0Y\"C]h [R)dc31",
Expand Down Expand Up @@ -188,4 +191,4 @@
"value": "1)qfrCEry,z;*XdT.&P+`tE8G`#Wq6kE&T\"p4\"yxd4:q;<E:{H^x:dXh[_y{2W-E!jRx2*Kxpcu67Gf)oN]&Fls|6t|3e\"YV6(}Md"
}
]
}
}
5 changes: 4 additions & 1 deletion tests/integration/fixtures/experiments_example.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@
"cillum culpa ut ut nulla"
],
"hidden_note": "dolor ut cillum",
"new_record": {
"$ref": "1M\"?!ouZ]W}^ 6ZBtT (OpV2~FoO1*YXan`6q+Zz{|E}b&Rty<P]6o0i)l[,YDwm4_9c}HnG.:l_H"
},
"nonpublic_note": "dolor labore voluptate",
"other_experiment_names": [
{
Expand Down Expand Up @@ -227,4 +230,4 @@
"value": "18\"vH8lmG]h9iblVl&1/Z%`.%#R\\7IAQKy~ _JJDCM'O5V9kF%AprGIE9J`]d<&,jiw'Zqd"
}
]
}
}
5 changes: 4 additions & 1 deletion tests/integration/fixtures/institutions_example.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@
]
}
],
"new_record": {
"$ref": "1M\"?!ouZ]W}^ 6ZBtT (OpV2~FoO1*YXan`6q+Zz{|E}b&Rty<P]6o0i)l[,YDwm4_9c}HnG.:l_H"
},
"non_public_notes": [
"aliquip"
],
Expand Down Expand Up @@ -151,4 +154,4 @@
"value": "1&,-`1N8_%I}<%^\"aIC+FvgvUD$<A;A0iTQu"
}
]
}
}
5 changes: 4 additions & 1 deletion tests/integration/fixtures/jobs_example.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@
}
}
],
"new_record": {
"$ref": "1M\"?!ouZ]W}^ 6ZBtT (OpV2~FoO1*YXan`6q+Zz{|E}b&Rty<P]6o0i)l[,YDwm4_9c}HnG.:l_H"
},
"position": "incididunt est amet cillum dolor",
"ranks": [
"UNDERGRADUATE",
Expand Down Expand Up @@ -140,4 +143,4 @@
"value": "1oCrjGBqlEYvIo"
}
]
}
}
5 changes: 4 additions & 1 deletion tests/integration/fixtures/journals_example.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
"value": "1kaeYi96?cHS(He9DVeVEr47|U9\\rS+JkqP^S6X*cEO/cf<8k$/TRV*"
}
],
"new_record": {
"$ref": "1M\"?!ouZ]W}^ 6ZBtT (OpV2~FoO1*YXan`6q+Zz{|E}b&Rty<P]6o0i)l[,YDwm4_9c}HnG.:l_H"
},
"nonpublic_note": "sint",
"peer_reviewed": false,
"public_note": "magna Ut et",
Expand Down Expand Up @@ -99,4 +102,4 @@
"value": "1kylPX:wIFy+6EI`0/hZh*a#'KGM9!~w:G,SJ,7bO~NGj!hCA8]l0m_>`RwfR5LO"
}
]
}
}

0 comments on commit 64ab662

Please sign in to comment.