Skip to content

Commit

Permalink
chore: Enhance author testdata with aliases, identifiers and areas
Browse files Browse the repository at this point in the history
  • Loading branch information
kellnerd committed Jul 25, 2024
1 parent fe8b0e4 commit 74bee3f
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 6 deletions.
24 changes: 21 additions & 3 deletions importer/testdata/author.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,33 @@
"languageId": 120,
"default": true,
"primary": true
}, {
"name": "MusicBrainz Test Artist",
"sortName": "Author, Test",
"languageId": 120,
"primary": false
}, {
"name": "Auteur du Test",
"sortName": "Test, Auteur du",
"languageId": 134,
"primary": true
}],
"disambiguation": "import test",
"type": "Person",
"typeId": 1,
"genderId": 3,
"beginAreaId": 8558,
"beginDate": "1701-04-23",
"endAreaId": 98703,
"endDate": "1742-12-31",
"ended": true,
"identifiers": [],
"identifiers": [{
"typeId": 2,
"value": "7e84f845-ac16-41fe-9ff8-df12eb32af55"
}, {
"typeId": 23,
"value": "OL3673719A"
}],
"annotation": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Iusto enim reprehenderit dolorum iure eaque accusamus, soluta pariatur aliquam commodi repellat cumque quaerat possimus nesciunt molestiae. Sunt deserunt magnam sint repellendus.",
"metadata": {
"links": [{
Expand All @@ -26,7 +44,7 @@
"source": "Testdata"
},
"entityType": "Author",
"lastEdited": "2024-07-17",
"originId": "A123",
"lastEdited": "2024-07-25",
"originId": "A1234",
"source": "Testdata"
}
24 changes: 21 additions & 3 deletions importer/testdata/author.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,33 @@ export const entity: QueuedEntity<ParsedAuthor> = {
"languageId": 120, // English, TODO: use language codes
"default": true,
"primary": true
}, {
"name": "MusicBrainz Test Artist",
"sortName": "Author, Test",
"languageId": 120, // English
"primary": false
}, {
"name": "Auteur du Test",
"sortName": "Test, Auteur du",
"languageId": 134, // French
"primary": true
}],
"disambiguation": "import test",
"type": "Person", // unused, TODO: map to ID
"typeId": 1, // Person
"genderId": 3, // Other
"beginAreaId": 8558, // Hill
"beginDate": "1701-04-23",
"endAreaId": 98703, // Ciudad Nezahualcóyotl
"endDate": "1742-12-31",
"ended": true,
"identifiers": [],
"identifiers": [{
"typeId": 2, // MusicBrainz Artist ID
"value": "7e84f845-ac16-41fe-9ff8-df12eb32af55"
}, {
"typeId": 23, // OpenLibrary Author ID
"value": "OL3673719A"
}],
"annotation": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Iusto enim reprehenderit dolorum iure eaque accusamus, soluta pariatur aliquam commodi repellat cumque quaerat possimus nesciunt molestiae. Sunt deserunt magnam sint repellendus.",
"metadata": { // currently unused
"links": [{
Expand All @@ -28,7 +46,7 @@ export const entity: QueuedEntity<ParsedAuthor> = {
"source": "Testdata"
},
"entityType": "Author",
"lastEdited": "2024-07-17",
"originId": "A123", // change this to import another dummy entity
"lastEdited": "2024-07-25",
"originId": "A1234", // change this to import another dummy entity
"source": "Testdata"
};

0 comments on commit 74bee3f

Please sign in to comment.