From c71f740eece2120d9f3f2171313c7509498319db Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Sun, 1 Dec 2024 12:15:42 +0000 Subject: [PATCH] Update and format JSON fixture files --- test/support/fixtures/release.json | 52 +- test/support/fixtures/release_group.json | 582 +++++++++++++++++- .../fixtures/release_group_with_includes.json | 239 ++++++- 3 files changed, 870 insertions(+), 3 deletions(-) diff --git a/test/support/fixtures/release.json b/test/support/fixtures/release.json index 66e39217..e7ef3947 100644 --- a/test/support/fixtures/release.json +++ b/test/support/fixtures/release.json @@ -1 +1,51 @@ -{"title":"Marbles","quality":"normal","country":"XE","release-group":{"first-release-date":"2004-05-03","secondary-types":[],"title":"Marbles","id":"20790e26-98e4-3ad3-a67f-b674758b942d","primary-type-id":"f529b476-6e62-324f-b0aa-1f3e33d313fc","disambiguation":"","secondary-type-ids":[],"primary-type":"Album"},"cover-art-archive":{"count":0,"back":false,"front":false,"darkened":false,"artwork":false},"asin":null,"packaging":"Jewel Case","id":"0e290154-5375-4f4f-a658-4a92bf02faa5","barcode":"","status-id":"4e304316-386d-3409-af2e-78857eec5cfe","release-events":[{"date":"2004-05-03","area":{"id":"89a675c2-3e37-3518-b83c-418bad59a85a","name":"Europe","type-id":null,"sort-name":"Europe","iso-3166-1-codes":["XE"],"type":null,"disambiguation":""}}],"disambiguation":"non‐deluxe double CD with o‐card","status":"Official","date":"2004-05-03","text-representation":{"script":"Latn","language":"eng"},"packaging-id":"ec27701a-4a22-37f4-bfac-6616e0f9750a"} \ No newline at end of file +{ + "asin": null, + "barcode": "", + "country": "XE", + "cover-art-archive": { + "artwork": false, + "back": false, + "count": 0, + "darkened": false, + "front": false + }, + "date": "2004-05-03", + "disambiguation": "non‐deluxe double CD with o‐card", + "id": "0e290154-5375-4f4f-a658-4a92bf02faa5", + "packaging": "Jewel Case", + "packaging-id": "ec27701a-4a22-37f4-bfac-6616e0f9750a", + "quality": "normal", + "release-events": [ + { + "area": { + "disambiguation": "", + "id": "89a675c2-3e37-3518-b83c-418bad59a85a", + "iso-3166-1-codes": [ + "XE" + ], + "name": "Europe", + "sort-name": "Europe", + "type": null, + "type-id": null + }, + "date": "2004-05-03" + } + ], + "release-group": { + "disambiguation": "", + "first-release-date": "2004-05-03", + "id": "20790e26-98e4-3ad3-a67f-b674758b942d", + "primary-type": "Album", + "primary-type-id": "f529b476-6e62-324f-b0aa-1f3e33d313fc", + "secondary-type-ids": [], + "secondary-types": [], + "title": "Marbles" + }, + "status": "Official", + "status-id": "4e304316-386d-3409-af2e-78857eec5cfe", + "text-representation": { + "language": "eng", + "script": "Latn" + }, + "title": "Marbles" +} \ No newline at end of file diff --git a/test/support/fixtures/release_group.json b/test/support/fixtures/release_group.json index 22de3637..08044dc5 100644 --- a/test/support/fixtures/release_group.json +++ b/test/support/fixtures/release_group.json @@ -1 +1,581 @@ -{"id":"20790e26-98e4-3ad3-a67f-b674758b942d","secondary-types":[],"artist-credit":[{"artist":{"genres":[{"disambiguation":"","id":"ae9b8279-3959-48d8-8a88-741a7f6d4a48","count":10,"name":"progressive rock"}],"type-id":"e431f5f6-b5d2-343d-8b36-72607fffb74b","id":"1932f5b6-0b7b-4050-b1df-833ca89e5f44","name":"Marillion","sort-name":"Marillion","disambiguation":"British progressive rock band","type":"Group"},"joinphrase":"","name":"Marillion"}],"primary-type":"Album","first-release-date":"2004-05-03","primary-type-id":"f529b476-6e62-324f-b0aa-1f3e33d313fc","disambiguation":"","relations":[{"target-type":"release_group","attribute-ids":{},"release_group":{"disambiguation":"","secondary-type-ids":[],"artist-credit":[{"joinphrase":"","artist":{"name":"Marillion","sort-name":"Marillion","id":"1932f5b6-0b7b-4050-b1df-833ca89e5f44","type-id":null,"type":null,"disambiguation":"British progressive rock band"},"name":"Marillion"}],"secondary-types":[],"id":"ea42b213-0502-391b-bb51-e2ef6315b300","primary-type":null,"releases":[],"first-release-date":"2005-06","primary-type-id":null,"title":"A Handful of Marbles"},"source-credit":"","end":null,"attribute-values":{},"target-credit":"","type-id":"fcf680a9-6871-4519-8c4b-8c6549575b35","begin":null,"ended":false,"type":"single from","attributes":[],"direction":"backward"},{"attributes":[],"direction":"backward","type":"single from","begin":null,"ended":false,"type-id":"fcf680a9-6871-4519-8c4b-8c6549575b35","source-credit":"","end":null,"attribute-values":{},"target-credit":"","target-type":"release_group","release_group":{"primary-type":null,"releases":[],"title":"Don’t Hurt Yourself","first-release-date":"2004-07-12","primary-type-id":null,"disambiguation":"","secondary-types":[],"artist-credit":[{"joinphrase":"","artist":{"disambiguation":"British progressive rock band","type":null,"type-id":null,"id":"1932f5b6-0b7b-4050-b1df-833ca89e5f44","name":"Marillion","sort-name":"Marillion"},"name":"Marillion"}],"id":"46d750b1-e53b-32b6-8f32-5cf78b23667b","secondary-type-ids":[]},"attribute-ids":{}},{"type-id":"fcf680a9-6871-4519-8c4b-8c6549575b35","begin":null,"ended":false,"target-type":"release_group","attribute-ids":{},"release_group":{"releases":[],"primary-type":null,"title":"You’re Gone","first-release-date":"2004-04-19","primary-type-id":null,"disambiguation":"","id":"2aec590d-e18e-3043-bec4-eef3dfd1eefd","artist-credit":[{"artist":{"id":"1932f5b6-0b7b-4050-b1df-833ca89e5f44","sort-name":"Marillion","name":"Marillion","disambiguation":"British progressive rock band","type":null,"type-id":null},"joinphrase":"","name":"Marillion"}],"secondary-types":[],"secondary-type-ids":[]},"source-credit":"","end":null,"attribute-values":{},"target-credit":"","type":"single from","attributes":[],"direction":"backward"}],"secondary-type-ids":[],"releases":[{"packaging-id":"ec27701a-4a22-37f4-bfac-6616e0f9750a","barcode":"","status":"Official","quality":"normal","country":"XE","disambiguation":"non‐deluxe double CD with o‐card","packaging":"Jewel Case","genres":[],"title":"Marbles","date":"2004-05-03","id":"0e290154-5375-4f4f-a658-4a92bf02faa5","status-id":"4e304316-386d-3409-af2e-78857eec5cfe","text-representation":{"script":"Latn","language":"eng"},"release-events":[{"area":{"iso-3166-1-codes":["XE"],"type-id":null,"name":"Europe","sort-name":"Europe","id":"89a675c2-3e37-3518-b83c-418bad59a85a","disambiguation":"","type":null},"date":"2004-05-03"}]},{"date":"2004-05-03","id":"3f1cc80f-4507-48a9-899c-c1bda83280c2","status-id":"4e304316-386d-3409-af2e-78857eec5cfe","text-representation":{"language":"eng","script":"Latn"},"release-events":[{"area":{"name":"United Kingdom","sort-name":"United Kingdom","id":"8a754a16-0027-3a29-b6d7-2b40ea0481ed","type":null,"disambiguation":"","iso-3166-1-codes":["GB"],"type-id":null},"date":"2004-05-03"}],"packaging-id":"815b7785-8284-3926-8f04-e48bc6c4d102","barcode":"","status":"Official","quality":"normal","country":"GB","disambiguation":"limited deluxe campaign edition","packaging":"Other","genres":[],"title":"Marbles"},{"text-representation":{"script":"Latn","language":"eng"},"release-events":[{"date":"2004-05-03","area":{"name":"United Kingdom","sort-name":"United Kingdom","id":"8a754a16-0027-3a29-b6d7-2b40ea0481ed","disambiguation":"","type":null,"iso-3166-1-codes":["GB"],"type-id":null}}],"date":"2004-05-03","id":"d3f9b9e2-73f5-4b47-a2a7-2c2199aad608","status-id":"4e304316-386d-3409-af2e-78857eec5cfe","genres":[],"title":"Marbles","country":"GB","disambiguation":"","barcode":"5037300650128","packaging-id":"ec27701a-4a22-37f4-bfac-6616e0f9750a","status":"Official","quality":"normal","packaging":"Jewel Case"},{"id":"2c4ecd84-7a84-4f42-a600-2f00ed8978c9","status-id":"1156806e-d06a-38bd-83f0-cf2284a808b9","date":"2004","release-events":[{"area":{"sort-name":"Russia","name":"Russia","id":"1f1fc3a4-9500-39b8-9f10-f0a465557eef","type":null,"disambiguation":"","iso-3166-1-codes":["RU"],"type-id":null},"date":"2004"}],"text-representation":{"script":"Latn","language":"eng"},"packaging":"Jewel Case","packaging-id":"ec27701a-4a22-37f4-bfac-6616e0f9750a","barcode":"","quality":"normal","status":"Bootleg","country":"RU","disambiguation":"","title":"Marbles","genres":[]},{"id":"ab151aa6-7538-4e93-be60-eded52b5b7b7","status-id":"4e304316-386d-3409-af2e-78857eec5cfe","date":"2004","release-events":[{"area":{"iso-3166-1-codes":["US"],"type-id":null,"name":"United States","sort-name":"United States","id":"489ce91b-6658-3307-9877-795b68554c98","disambiguation":"","type":null},"date":"2004"}],"text-representation":{"language":"eng","script":"Latn"},"packaging":null,"packaging-id":null,"barcode":"803341127920","quality":"normal","status":"Official","country":"US","disambiguation":"","title":"Marbles","genres":[]},{"date":"2011-04-25","id":"b94bbd1f-ae5d-4e7b-98ff-28bfe135f20c","status-id":"4e304316-386d-3409-af2e-78857eec5cfe","text-representation":{"script":"Latn","language":"eng"},"release-events":[{"area":{"iso-3166-1-codes":["GB"],"type-id":null,"name":"United Kingdom","sort-name":"United Kingdom","id":"8a754a16-0027-3a29-b6d7-2b40ea0481ed","disambiguation":"","type":null},"date":"2011-04-25"}],"barcode":"636551597210","packaging-id":"f7101ce3-0384-39ce-9fde-fbbd0044d35f","status":"Official","quality":"normal","disambiguation":"","country":"GB","packaging":"Cardboard/Paper Sleeve","genres":[],"title":"Marbles"},{"packaging":"Digibook","barcode":"636551597227","packaging-id":"9f2e13bc-f84f-428a-8342-fd86ece7fc4d","status":"Official","quality":"normal","country":"GB","disambiguation":"","title":"Marbles","genres":[],"id":"4b9fe13b-4837-4c02-9368-e97ba6f5a086","status-id":"4e304316-386d-3409-af2e-78857eec5cfe","date":"2011-04-25","release-events":[{"area":{"type-id":null,"iso-3166-1-codes":["GB"],"type":null,"disambiguation":"","name":"United Kingdom","sort-name":"United Kingdom","id":"8a754a16-0027-3a29-b6d7-2b40ea0481ed"},"date":"2011-04-25"}],"text-representation":{"script":"Latn","language":"eng"}},{"genres":[],"title":"Marbles","country":"XE","disambiguation":"","barcode":"636551808613","packaging-id":"815b7785-8284-3926-8f04-e48bc6c4d102","quality":"normal","status":"Official","packaging":"Other","text-representation":{"script":"Latn","language":"eng"},"release-events":[{"area":{"type-id":null,"iso-3166-1-codes":["XE"],"disambiguation":"","type":null,"id":"89a675c2-3e37-3518-b83c-418bad59a85a","sort-name":"Europe","name":"Europe"},"date":"2017"}],"date":"2017","id":"a4b02377-0b5e-448e-9cd6-5500c0378523","status-id":"4e304316-386d-3409-af2e-78857eec5cfe"},{"genres":[],"title":"Marbles","country":"XW","disambiguation":"","status":"Official","quality":"normal","packaging-id":"119eba76-b343-3e02-a292-f0f00644bb9b","barcode":"859724565117","packaging":"None","text-representation":{"language":"eng","script":"Latn"},"release-events":[{"date":"","area":{"disambiguation":"","type":null,"sort-name":"[Worldwide]","name":"[Worldwide]","id":"525d4e18-3d00-31b9-a58b-a146a916de8f","type-id":null,"iso-3166-1-codes":["XW"]}}],"date":"","status-id":"4e304316-386d-3409-af2e-78857eec5cfe","id":"f3937bc5-b99f-443a-9609-a404201f21ca"}],"genres":[{"disambiguation":"","id":"ceeaa283-5d7b-4202-8d1d-e25d116b2a18","count":1,"name":"alternative rock"},{"id":"b7ef058e-6d83-4ca4-8123-9724bff4648b","count":1,"name":"art rock","disambiguation":""},{"disambiguation":"","id":"150eb95a-7739-4fde-a5fe-b62ca576a928","count":1,"name":"baroque pop"},{"name":"pop rock","count":1,"id":"797e2e85-5ffd-495c-a757-8b4079052f0e","disambiguation":""},{"disambiguation":"","count":2,"name":"progressive rock","id":"ae9b8279-3959-48d8-8a88-741a7f6d4a48"},{"name":"psychedelic pop","count":1,"id":"2aeb5340-c474-4677-b9a6-35ddac9b6a58","disambiguation":""},{"id":"0e3fc579-2d24-4f20-9dae-736e1ec78798","name":"rock","count":2,"disambiguation":""}],"title":"Marbles"} \ No newline at end of file +{ + "artist-credit": [ + { + "artist": { + "disambiguation": "British progressive rock band", + "genres": [ + { + "count": 10, + "disambiguation": "", + "id": "ae9b8279-3959-48d8-8a88-741a7f6d4a48", + "name": "progressive rock" + } + ], + "id": "1932f5b6-0b7b-4050-b1df-833ca89e5f44", + "name": "Marillion", + "sort-name": "Marillion", + "type": "Group", + "type-id": "e431f5f6-b5d2-343d-8b36-72607fffb74b" + }, + "joinphrase": "", + "name": "Marillion" + } + ], + "disambiguation": "", + "first-release-date": "2004-05-03", + "genres": [ + { + "count": 1, + "disambiguation": "", + "id": "ceeaa283-5d7b-4202-8d1d-e25d116b2a18", + "name": "alternative rock" + }, + { + "count": 1, + "disambiguation": "", + "id": "b7ef058e-6d83-4ca4-8123-9724bff4648b", + "name": "art rock" + }, + { + "count": 1, + "disambiguation": "", + "id": "150eb95a-7739-4fde-a5fe-b62ca576a928", + "name": "baroque pop" + }, + { + "count": 1, + "disambiguation": "", + "id": "797e2e85-5ffd-495c-a757-8b4079052f0e", + "name": "pop rock" + }, + { + "count": 2, + "disambiguation": "", + "id": "ae9b8279-3959-48d8-8a88-741a7f6d4a48", + "name": "progressive rock" + }, + { + "count": 1, + "disambiguation": "", + "id": "2aeb5340-c474-4677-b9a6-35ddac9b6a58", + "name": "psychedelic pop" + }, + { + "count": 2, + "disambiguation": "", + "id": "0e3fc579-2d24-4f20-9dae-736e1ec78798", + "name": "rock" + } + ], + "id": "20790e26-98e4-3ad3-a67f-b674758b942d", + "primary-type": "Album", + "primary-type-id": "f529b476-6e62-324f-b0aa-1f3e33d313fc", + "relations": [ + { + "attribute-ids": {}, + "attribute-values": {}, + "attributes": [], + "begin": null, + "direction": "backward", + "end": null, + "ended": false, + "release_group": { + "artist-credit": [ + { + "artist": { + "disambiguation": "British progressive rock band", + "id": "1932f5b6-0b7b-4050-b1df-833ca89e5f44", + "name": "Marillion", + "sort-name": "Marillion", + "type": null, + "type-id": null + }, + "joinphrase": "", + "name": "Marillion" + } + ], + "disambiguation": "", + "first-release-date": "2005-10", + "id": "84ad8315-f7fe-3988-962f-440307682dd6", + "primary-type": null, + "primary-type-id": null, + "releases": [], + "secondary-type-ids": [], + "secondary-types": [], + "title": "Marbles by the Sea" + }, + "source-credit": "", + "target-credit": "", + "target-type": "release_group", + "type": "live performance", + "type-id": "62beff0a-679c-43f3-8fe6-f6c8ed8581e4" + }, + { + "attribute-ids": {}, + "attribute-values": {}, + "attributes": [], + "begin": null, + "direction": "backward", + "end": null, + "ended": false, + "release_group": { + "artist-credit": [ + { + "artist": { + "disambiguation": "British progressive rock band", + "id": "1932f5b6-0b7b-4050-b1df-833ca89e5f44", + "name": "Marillion", + "sort-name": "Marillion", + "type": null, + "type-id": null + }, + "joinphrase": "", + "name": "Marillion" + } + ], + "disambiguation": "", + "first-release-date": "2016-11-06", + "id": "5fb9fdb0-cd94-412c-b4d1-f0354128e4c2", + "primary-type": null, + "primary-type-id": null, + "releases": [], + "secondary-type-ids": [], + "secondary-types": [], + "title": "Marbles in the Park" + }, + "source-credit": "", + "target-credit": "", + "target-type": "release_group", + "type": "live performance", + "type-id": "62beff0a-679c-43f3-8fe6-f6c8ed8581e4" + }, + { + "attribute-ids": {}, + "attribute-values": {}, + "attributes": [], + "begin": null, + "direction": "backward", + "end": null, + "ended": false, + "release_group": { + "artist-credit": [ + { + "artist": { + "disambiguation": "British progressive rock band", + "id": "1932f5b6-0b7b-4050-b1df-833ca89e5f44", + "name": "Marillion", + "sort-name": "Marillion", + "type": null, + "type-id": null + }, + "joinphrase": "", + "name": "Marillion" + } + ], + "disambiguation": "", + "first-release-date": "2005-06", + "id": "ea42b213-0502-391b-bb51-e2ef6315b300", + "primary-type": null, + "primary-type-id": null, + "releases": [], + "secondary-type-ids": [], + "secondary-types": [], + "title": "A Handful of Marbles" + }, + "source-credit": "", + "target-credit": "", + "target-type": "release_group", + "type": "single from", + "type-id": "fcf680a9-6871-4519-8c4b-8c6549575b35" + }, + { + "attribute-ids": {}, + "attribute-values": {}, + "attributes": [], + "begin": null, + "direction": "backward", + "end": null, + "ended": false, + "release_group": { + "artist-credit": [ + { + "artist": { + "disambiguation": "British progressive rock band", + "id": "1932f5b6-0b7b-4050-b1df-833ca89e5f44", + "name": "Marillion", + "sort-name": "Marillion", + "type": null, + "type-id": null + }, + "joinphrase": "", + "name": "Marillion" + } + ], + "disambiguation": "", + "first-release-date": "2004-07-12", + "id": "46d750b1-e53b-32b6-8f32-5cf78b23667b", + "primary-type": null, + "primary-type-id": null, + "releases": [], + "secondary-type-ids": [], + "secondary-types": [], + "title": "Don’t Hurt Yourself" + }, + "source-credit": "", + "target-credit": "", + "target-type": "release_group", + "type": "single from", + "type-id": "fcf680a9-6871-4519-8c4b-8c6549575b35" + }, + { + "attribute-ids": {}, + "attribute-values": {}, + "attributes": [], + "begin": null, + "direction": "backward", + "end": null, + "ended": false, + "release_group": { + "artist-credit": [ + { + "artist": { + "disambiguation": "British progressive rock band", + "id": "1932f5b6-0b7b-4050-b1df-833ca89e5f44", + "name": "Marillion", + "sort-name": "Marillion", + "type": null, + "type-id": null + }, + "joinphrase": "", + "name": "Marillion" + } + ], + "disambiguation": "", + "first-release-date": "2004-04-19", + "id": "2aec590d-e18e-3043-bec4-eef3dfd1eefd", + "primary-type": null, + "primary-type-id": null, + "releases": [], + "secondary-type-ids": [], + "secondary-types": [], + "title": "You’re Gone" + }, + "source-credit": "", + "target-credit": "", + "target-type": "release_group", + "type": "single from", + "type-id": "fcf680a9-6871-4519-8c4b-8c6549575b35" + } + ], + "releases": [ + { + "barcode": "", + "country": "XE", + "date": "2004-05-03", + "disambiguation": "non‐deluxe double CD with o‐card", + "genres": [], + "id": "0e290154-5375-4f4f-a658-4a92bf02faa5", + "packaging": "Jewel Case", + "packaging-id": "ec27701a-4a22-37f4-bfac-6616e0f9750a", + "quality": "normal", + "release-events": [ + { + "area": { + "disambiguation": "", + "id": "89a675c2-3e37-3518-b83c-418bad59a85a", + "iso-3166-1-codes": [ + "XE" + ], + "name": "Europe", + "sort-name": "Europe", + "type": null, + "type-id": null + }, + "date": "2004-05-03" + } + ], + "status": "Official", + "status-id": "4e304316-386d-3409-af2e-78857eec5cfe", + "text-representation": { + "language": "eng", + "script": "Latn" + }, + "title": "Marbles" + }, + { + "barcode": "", + "country": "GB", + "date": "2004-05-03", + "disambiguation": "limited deluxe campaign edition", + "genres": [], + "id": "3f1cc80f-4507-48a9-899c-c1bda83280c2", + "packaging": "Other", + "packaging-id": "815b7785-8284-3926-8f04-e48bc6c4d102", + "quality": "normal", + "release-events": [ + { + "area": { + "disambiguation": "", + "id": "8a754a16-0027-3a29-b6d7-2b40ea0481ed", + "iso-3166-1-codes": [ + "GB" + ], + "name": "United Kingdom", + "sort-name": "United Kingdom", + "type": null, + "type-id": null + }, + "date": "2004-05-03" + } + ], + "status": "Official", + "status-id": "4e304316-386d-3409-af2e-78857eec5cfe", + "text-representation": { + "language": "eng", + "script": "Latn" + }, + "title": "Marbles" + }, + { + "barcode": "5037300650128", + "country": "GB", + "date": "2004-05-03", + "disambiguation": "", + "genres": [], + "id": "d3f9b9e2-73f5-4b47-a2a7-2c2199aad608", + "packaging": "Jewel Case", + "packaging-id": "ec27701a-4a22-37f4-bfac-6616e0f9750a", + "quality": "normal", + "release-events": [ + { + "area": { + "disambiguation": "", + "id": "8a754a16-0027-3a29-b6d7-2b40ea0481ed", + "iso-3166-1-codes": [ + "GB" + ], + "name": "United Kingdom", + "sort-name": "United Kingdom", + "type": null, + "type-id": null + }, + "date": "2004-05-03" + } + ], + "status": "Official", + "status-id": "4e304316-386d-3409-af2e-78857eec5cfe", + "text-representation": { + "language": "eng", + "script": "Latn" + }, + "title": "Marbles" + }, + { + "barcode": "", + "country": "RU", + "date": "2004", + "disambiguation": "", + "genres": [], + "id": "2c4ecd84-7a84-4f42-a600-2f00ed8978c9", + "packaging": "Jewel Case", + "packaging-id": "ec27701a-4a22-37f4-bfac-6616e0f9750a", + "quality": "normal", + "release-events": [ + { + "area": { + "disambiguation": "", + "id": "1f1fc3a4-9500-39b8-9f10-f0a465557eef", + "iso-3166-1-codes": [ + "RU" + ], + "name": "Russia", + "sort-name": "Russia", + "type": null, + "type-id": null + }, + "date": "2004" + } + ], + "status": "Bootleg", + "status-id": "1156806e-d06a-38bd-83f0-cf2284a808b9", + "text-representation": { + "language": "eng", + "script": "Latn" + }, + "title": "Marbles" + }, + { + "barcode": "803341127920", + "country": "US", + "date": "2004", + "disambiguation": "", + "genres": [], + "id": "ab151aa6-7538-4e93-be60-eded52b5b7b7", + "packaging": null, + "packaging-id": null, + "quality": "normal", + "release-events": [ + { + "area": { + "disambiguation": "", + "id": "489ce91b-6658-3307-9877-795b68554c98", + "iso-3166-1-codes": [ + "US" + ], + "name": "United States", + "sort-name": "United States", + "type": null, + "type-id": null + }, + "date": "2004" + } + ], + "status": "Official", + "status-id": "4e304316-386d-3409-af2e-78857eec5cfe", + "text-representation": { + "language": "eng", + "script": "Latn" + }, + "title": "Marbles" + }, + { + "barcode": "636551597210", + "country": "GB", + "date": "2011-04-25", + "disambiguation": "", + "genres": [], + "id": "b94bbd1f-ae5d-4e7b-98ff-28bfe135f20c", + "packaging": "Cardboard/Paper Sleeve", + "packaging-id": "f7101ce3-0384-39ce-9fde-fbbd0044d35f", + "quality": "normal", + "release-events": [ + { + "area": { + "disambiguation": "", + "id": "8a754a16-0027-3a29-b6d7-2b40ea0481ed", + "iso-3166-1-codes": [ + "GB" + ], + "name": "United Kingdom", + "sort-name": "United Kingdom", + "type": null, + "type-id": null + }, + "date": "2011-04-25" + } + ], + "status": "Official", + "status-id": "4e304316-386d-3409-af2e-78857eec5cfe", + "text-representation": { + "language": "eng", + "script": "Latn" + }, + "title": "Marbles" + }, + { + "barcode": "636551597227", + "country": "GB", + "date": "2011-04-25", + "disambiguation": "", + "genres": [], + "id": "4b9fe13b-4837-4c02-9368-e97ba6f5a086", + "packaging": "Digibook", + "packaging-id": "9f2e13bc-f84f-428a-8342-fd86ece7fc4d", + "quality": "normal", + "release-events": [ + { + "area": { + "disambiguation": "", + "id": "8a754a16-0027-3a29-b6d7-2b40ea0481ed", + "iso-3166-1-codes": [ + "GB" + ], + "name": "United Kingdom", + "sort-name": "United Kingdom", + "type": null, + "type-id": null + }, + "date": "2011-04-25" + } + ], + "status": "Official", + "status-id": "4e304316-386d-3409-af2e-78857eec5cfe", + "text-representation": { + "language": "eng", + "script": "Latn" + }, + "title": "Marbles" + }, + { + "barcode": "636551808613", + "country": "XE", + "date": "2017", + "disambiguation": "", + "genres": [], + "id": "a4b02377-0b5e-448e-9cd6-5500c0378523", + "packaging": "Other", + "packaging-id": "815b7785-8284-3926-8f04-e48bc6c4d102", + "quality": "normal", + "release-events": [ + { + "area": { + "disambiguation": "", + "id": "89a675c2-3e37-3518-b83c-418bad59a85a", + "iso-3166-1-codes": [ + "XE" + ], + "name": "Europe", + "sort-name": "Europe", + "type": null, + "type-id": null + }, + "date": "2017" + } + ], + "status": "Official", + "status-id": "4e304316-386d-3409-af2e-78857eec5cfe", + "text-representation": { + "language": "eng", + "script": "Latn" + }, + "title": "Marbles" + }, + { + "barcode": "859724565117", + "country": "XW", + "date": "", + "disambiguation": "", + "genres": [], + "id": "f3937bc5-b99f-443a-9609-a404201f21ca", + "packaging": "None", + "packaging-id": "119eba76-b343-3e02-a292-f0f00644bb9b", + "quality": "normal", + "release-events": [ + { + "area": { + "disambiguation": "", + "id": "525d4e18-3d00-31b9-a58b-a146a916de8f", + "iso-3166-1-codes": [ + "XW" + ], + "name": "[Worldwide]", + "sort-name": "[Worldwide]", + "type": null, + "type-id": null + }, + "date": "" + } + ], + "status": "Official", + "status-id": "4e304316-386d-3409-af2e-78857eec5cfe", + "text-representation": { + "language": "eng", + "script": "Latn" + }, + "title": "Marbles" + } + ], + "secondary-type-ids": [], + "secondary-types": [], + "title": "Marbles" +} \ No newline at end of file diff --git a/test/support/fixtures/release_group_with_includes.json b/test/support/fixtures/release_group_with_includes.json index fa0ce50b..867668cd 100644 --- a/test/support/fixtures/release_group_with_includes.json +++ b/test/support/fixtures/release_group_with_includes.json @@ -1 +1,238 @@ -{"primary-type-id":"f529b476-6e62-324f-b0aa-1f3e33d313fc","first-release-date":"2022-05-20","genres":[{"name":"electronic","count":1,"id":"89255676-1f14-4dd8-bbad-fca839d6aff4","disambiguation":""}],"primary-type":"Album","secondary-type-ids":["dd2a21e1-0c00-3729-a7a0-de60b84eb5d1"],"releases":[{"id":"77e746fc-566f-445b-a62b-cc014280fac9","quality":"normal","packaging-id":"d60b6157-79fe-3913-ab8b-23b32de8690d","text-representation":{"script":"Latn","language":"eng"},"status-id":"4e304316-386d-3409-af2e-78857eec5cfe","date":"2022-05-20","genres":[],"country":"GB","barcode":null,"release-events":[{"area":{"type":null,"id":"8a754a16-0027-3a29-b6d7-2b40ea0481ed","sort-name":"United Kingdom","iso-3166-1-codes":["GB"],"disambiguation":"","type-id":null,"name":"United Kingdom"},"date":"2022-05-20"}],"disambiguation":"","packaging":"Book","title":"Lockdown Trilogy","status":"Official"}],"id":"5db72bc0-6ce3-4beb-bd51-86b58ed8cf71","relations":[{"source-credit":"","attributes":[],"attribute-values":{},"end":null,"begin":null,"target-credit":"","attribute-ids":{},"type":"included in","ended":false,"release_group":{"secondary-types":[],"title":"Claustrophobic Universe","disambiguation":"","artist-credit":[{"joinphrase":"","name":"Mariusz Duda","artist":{"id":"641716a3-ae21-4c5f-bdef-dfca90df27f3","sort-name":"Duda, Mariusz","type":null,"name":"Mariusz Duda","disambiguation":"","type-id":null}}],"releases":[],"secondary-type-ids":[],"id":"749c07b5-4900-404b-bea9-bb6b16fa991e","primary-type-id":null,"first-release-date":"2021-04-23","primary-type":null},"direction":"backward","target-type":"release_group","type-id":"589447ea-be2c-46cc-b9e9-469e1d06e18a"},{"type":"included in","attribute-ids":{},"type-id":"589447ea-be2c-46cc-b9e9-469e1d06e18a","ended":false,"release_group":{"artist-credit":[{"name":"Mariusz Duda","joinphrase":"","artist":{"id":"641716a3-ae21-4c5f-bdef-dfca90df27f3","sort-name":"Duda, Mariusz","type":null,"name":"Mariusz Duda","type-id":null,"disambiguation":""}}],"disambiguation":"","title":"Interior Drawings","secondary-types":[],"id":"61077431-0057-4119-8f06-0df1098d21e5","releases":[],"secondary-type-ids":[],"primary-type":null,"first-release-date":"2021-12-10","primary-type-id":null},"direction":"backward","target-type":"release_group","attributes":[],"attribute-values":{},"source-credit":"","begin":null,"target-credit":"","end":null},{"begin":null,"target-credit":"","end":null,"attributes":[],"attribute-values":{},"source-credit":"","type-id":"589447ea-be2c-46cc-b9e9-469e1d06e18a","ended":false,"release_group":{"title":"Let’s Meet Outside","secondary-types":[],"artist-credit":[{"joinphrase":"","name":"Mariusz Duda","artist":{"name":"Mariusz Duda","disambiguation":"","type-id":null,"sort-name":"Duda, Mariusz","id":"641716a3-ae21-4c5f-bdef-dfca90df27f3","type":null}}],"disambiguation":"","first-release-date":"2022-05-20","primary-type-id":null,"primary-type":null,"releases":[],"secondary-type-ids":[],"id":"c36123e3-8899-48a5-8196-9dbb72421d69"},"direction":"backward","target-type":"release_group","type":"included in","attribute-ids":{}},{"attribute-ids":{},"type":"included in","release_group":{"secondary-type-ids":[],"releases":[],"id":"d463f2b1-d254-4baf-a957-fb78c6e5b956","first-release-date":"2020-06-26","primary-type-id":null,"primary-type":null,"secondary-types":[],"title":"Lockdown Spaces","artist-credit":[{"artist":{"type":null,"id":"641716a3-ae21-4c5f-bdef-dfca90df27f3","sort-name":"Duda, Mariusz","type-id":null,"disambiguation":"","name":"Mariusz Duda"},"joinphrase":"","name":"Mariusz Duda"}],"disambiguation":""},"target-type":"release_group","direction":"backward","ended":false,"type-id":"589447ea-be2c-46cc-b9e9-469e1d06e18a","source-credit":"","attribute-values":{},"attributes":[],"end":null,"target-credit":"","begin":null}],"title":"Lockdown Trilogy","secondary-types":["Compilation"],"disambiguation":"","artist-credit":[{"joinphrase":"","name":"Mariusz Duda","artist":{"id":"641716a3-ae21-4c5f-bdef-dfca90df27f3","sort-name":"Duda, Mariusz","type":"Person","genres":[{"count":1,"name":"rock","disambiguation":"","id":"0e3fc579-2d24-4f20-9dae-736e1ec78798"}],"disambiguation":"","type-id":"b6e035f4-3ce9-331c-97df-83397230b0df","name":"Mariusz Duda"}}]} \ No newline at end of file +{ + "artist-credit": [ + { + "artist": { + "disambiguation": "", + "genres": [ + { + "count": 1, + "disambiguation": "", + "id": "0e3fc579-2d24-4f20-9dae-736e1ec78798", + "name": "rock" + } + ], + "id": "641716a3-ae21-4c5f-bdef-dfca90df27f3", + "name": "Mariusz Duda", + "sort-name": "Duda, Mariusz", + "type": "Person", + "type-id": "b6e035f4-3ce9-331c-97df-83397230b0df" + }, + "joinphrase": "", + "name": "Mariusz Duda" + } + ], + "disambiguation": "", + "first-release-date": "2022-05-20", + "genres": [ + { + "count": 1, + "disambiguation": "", + "id": "89255676-1f14-4dd8-bbad-fca839d6aff4", + "name": "electronic" + } + ], + "id": "5db72bc0-6ce3-4beb-bd51-86b58ed8cf71", + "primary-type": "Album", + "primary-type-id": "f529b476-6e62-324f-b0aa-1f3e33d313fc", + "relations": [ + { + "attribute-ids": {}, + "attribute-values": {}, + "attributes": [], + "begin": null, + "direction": "backward", + "end": null, + "ended": false, + "release_group": { + "artist-credit": [ + { + "artist": { + "disambiguation": "", + "id": "641716a3-ae21-4c5f-bdef-dfca90df27f3", + "name": "Mariusz Duda", + "sort-name": "Duda, Mariusz", + "type": null, + "type-id": null + }, + "joinphrase": "", + "name": "Mariusz Duda" + } + ], + "disambiguation": "", + "first-release-date": "2021-04-23", + "id": "749c07b5-4900-404b-bea9-bb6b16fa991e", + "primary-type": null, + "primary-type-id": null, + "releases": [], + "secondary-type-ids": [], + "secondary-types": [], + "title": "Claustrophobic Universe" + }, + "source-credit": "", + "target-credit": "", + "target-type": "release_group", + "type": "included in", + "type-id": "589447ea-be2c-46cc-b9e9-469e1d06e18a" + }, + { + "attribute-ids": {}, + "attribute-values": {}, + "attributes": [], + "begin": null, + "direction": "backward", + "end": null, + "ended": false, + "release_group": { + "artist-credit": [ + { + "artist": { + "disambiguation": "", + "id": "641716a3-ae21-4c5f-bdef-dfca90df27f3", + "name": "Mariusz Duda", + "sort-name": "Duda, Mariusz", + "type": null, + "type-id": null + }, + "joinphrase": "", + "name": "Mariusz Duda" + } + ], + "disambiguation": "", + "first-release-date": "2021-12-10", + "id": "61077431-0057-4119-8f06-0df1098d21e5", + "primary-type": null, + "primary-type-id": null, + "releases": [], + "secondary-type-ids": [], + "secondary-types": [], + "title": "Interior Drawings" + }, + "source-credit": "", + "target-credit": "", + "target-type": "release_group", + "type": "included in", + "type-id": "589447ea-be2c-46cc-b9e9-469e1d06e18a" + }, + { + "attribute-ids": {}, + "attribute-values": {}, + "attributes": [], + "begin": null, + "direction": "backward", + "end": null, + "ended": false, + "release_group": { + "artist-credit": [ + { + "artist": { + "disambiguation": "", + "id": "641716a3-ae21-4c5f-bdef-dfca90df27f3", + "name": "Mariusz Duda", + "sort-name": "Duda, Mariusz", + "type": null, + "type-id": null + }, + "joinphrase": "", + "name": "Mariusz Duda" + } + ], + "disambiguation": "", + "first-release-date": "2022-05-20", + "id": "c36123e3-8899-48a5-8196-9dbb72421d69", + "primary-type": null, + "primary-type-id": null, + "releases": [], + "secondary-type-ids": [], + "secondary-types": [], + "title": "Let’s Meet Outside" + }, + "source-credit": "", + "target-credit": "", + "target-type": "release_group", + "type": "included in", + "type-id": "589447ea-be2c-46cc-b9e9-469e1d06e18a" + }, + { + "attribute-ids": {}, + "attribute-values": {}, + "attributes": [], + "begin": null, + "direction": "backward", + "end": null, + "ended": false, + "release_group": { + "artist-credit": [ + { + "artist": { + "disambiguation": "", + "id": "641716a3-ae21-4c5f-bdef-dfca90df27f3", + "name": "Mariusz Duda", + "sort-name": "Duda, Mariusz", + "type": null, + "type-id": null + }, + "joinphrase": "", + "name": "Mariusz Duda" + } + ], + "disambiguation": "", + "first-release-date": "2020-06-26", + "id": "d463f2b1-d254-4baf-a957-fb78c6e5b956", + "primary-type": null, + "primary-type-id": null, + "releases": [], + "secondary-type-ids": [], + "secondary-types": [], + "title": "Lockdown Spaces" + }, + "source-credit": "", + "target-credit": "", + "target-type": "release_group", + "type": "included in", + "type-id": "589447ea-be2c-46cc-b9e9-469e1d06e18a" + } + ], + "releases": [ + { + "barcode": null, + "country": "GB", + "date": "2022-05-20", + "disambiguation": "", + "genres": [], + "id": "77e746fc-566f-445b-a62b-cc014280fac9", + "packaging": "Book", + "packaging-id": "d60b6157-79fe-3913-ab8b-23b32de8690d", + "quality": "normal", + "release-events": [ + { + "area": { + "disambiguation": "", + "id": "8a754a16-0027-3a29-b6d7-2b40ea0481ed", + "iso-3166-1-codes": [ + "GB" + ], + "name": "United Kingdom", + "sort-name": "United Kingdom", + "type": null, + "type-id": null + }, + "date": "2022-05-20" + } + ], + "status": "Official", + "status-id": "4e304316-386d-3409-af2e-78857eec5cfe", + "text-representation": { + "language": "eng", + "script": "Latn" + }, + "title": "Lockdown Trilogy" + } + ], + "secondary-type-ids": [ + "dd2a21e1-0c00-3729-a7a0-de60b84eb5d1" + ], + "secondary-types": [ + "Compilation" + ], + "title": "Lockdown Trilogy" +} \ No newline at end of file