Skip to content

Commit

Permalink
feat(api): use media item IDs instead of URLs (#509)
Browse files Browse the repository at this point in the history
* use media item IDs instead of URLs on photographs

* use media IDs on songs

* add comment about spatial feature properties image URL

* fix build

* remove time range context for songs

* update test setup for seed-test-data CLI command

* WIP[media-item-ids]: fix additional tests

* seed related audio item in translate song lyrics test
  • Loading branch information
aaron-plahn committed Dec 6, 2023
1 parent 2766727 commit a22c1f4
Show file tree
Hide file tree
Showing 38 changed files with 733 additions and 560 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2111,11 +2111,7 @@ exports[`When querying for edge connections GET /connections/notes should return
"type": "song",
},
"context": {
"timeRange": {
"inPointMilliseconds": 300,
"outPointMilliseconds": 500,
},
"type": "timeRange",
"type": "general",
},
"role": "self",
},
Expand Down Expand Up @@ -2510,42 +2506,6 @@ exports[`When querying for edge connections GET /connections/notes should return
},
"tags": [],
},
{
"actions": [],
"connectedResources": [
{
"compositeIdentifier": {
"id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b110001",
"type": "song",
},
"context": {
"type": "general",
},
"role": "self",
},
],
"connectionType": "self",
"id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b110023",
"name": {
"items": [
{
"languageCode": "en",
"role": "original",
"text": "A note about song/9b1deb4d-3b7d-4bad-9bdd-2b0d7b110001",
},
],
},
"note": {
"items": [
{
"languageCode": "en",
"role": "original",
"text": "this is a song",
},
],
},
"tags": [],
},
{
"actions": [],
"connectedResources": [
Expand All @@ -2561,7 +2521,7 @@ exports[`When querying for edge connections GET /connections/notes should return
},
],
"connectionType": "self",
"id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b110024",
"id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b110023",
"name": {
"items": [
{
Expand Down Expand Up @@ -2597,7 +2557,7 @@ exports[`When querying for edge connections GET /connections/notes should return
},
],
"connectionType": "self",
"id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b110025",
"id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b110024",
"name": {
"items": [
{
Expand Down Expand Up @@ -3151,11 +3111,7 @@ exports[`When querying for edge connections GET /connections/notes should return
"type": "song",
},
"context": {
"timeRange": {
"inPointMilliseconds": 300,
"outPointMilliseconds": 500,
},
"type": "timeRange",
"type": "general",
},
"role": "from",
},
Expand Down Expand Up @@ -3191,11 +3147,7 @@ exports[`When querying for edge connections GET /connections/notes should return
"type": "song",
},
"context": {
"timeRange": {
"inPointMilliseconds": 300,
"outPointMilliseconds": 500,
},
"type": "timeRange",
"type": "general",
},
"role": "to",
},
Expand Down Expand Up @@ -3791,11 +3743,7 @@ exports[`When querying for edge connections GET /connections/notes should return
"type": "song",
},
"context": {
"timeRange": {
"inPointMilliseconds": 500,
"outPointMilliseconds": 778.4,
},
"type": "timeRange",
"type": "general",
},
"role": "from",
},
Expand Down Expand Up @@ -3841,11 +3789,7 @@ exports[`When querying for edge connections GET /connections/notes should return
"type": "song",
},
"context": {
"timeRange": {
"inPointMilliseconds": 500,
"outPointMilliseconds": 778.4,
},
"type": "timeRange",
"type": "general",
},
"role": "from",
},
Expand Down
Loading

0 comments on commit a22c1f4

Please sign in to comment.