Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Commit

Permalink
PLAT-159 Fix images in /fundraise (#161)
Browse files Browse the repository at this point in the history
* PLAT-159 Fix images in /fundraise

- [ ] Fixed rich text paragraph type image export
- [ ] Fixed missing image for content wall teaser

* PLAT-159 Fix links to wrong site in exported json

* PLAT-159 Fix ids

* PLAT-159 Fix ids

* PLAT-159 More id fixing
  • Loading branch information
pvhee authored and bimsonz committed Apr 14, 2016
1 parent cd12910 commit bd7b7dd
Show file tree
Hide file tree
Showing 13 changed files with 217 additions and 63 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"_links": {
"self": {
"href": "http:\/\/default\/block\/4?_format=hal_json"
"href": "http:\/\/default\/block\/1111?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/block_content\/teaser"
},
"http:\/\/drupal.org\/rest\/relation\/block_content\/teaser\/field_teaser_image": [
{
"href": "http:\/\/default\/file\/14?_format=hal_json"
"href": "http:\/\/default\/file\/29?_format=hal_json"
}
]
},
Expand Down Expand Up @@ -36,7 +36,7 @@
],
"changed": [
{
"value": "1457523263",
"value": "1460630315",
"lang": "en"
}
],
Expand Down Expand Up @@ -65,21 +65,21 @@
{
"_links": {
"self": {
"href": "http:\/\/default\/file\/14?_format=hal_json"
"href": "http:\/\/default\/file\/29?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/file\/image"
}
},
"uuid": [
{
"value": "631fae9a-6c14-4ecb-a608-8c701a4d154a"
"value": "c1a8c3ed-2914-4b33-9500-f9b505cce1a2"
}
],
"alt": "The great sport relief bake off",
"alt": "Bake-off",
"title": "",
"width": "4287",
"height": "2854"
"width": "610",
"height": "343"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"_links": {
"self": {
"href": "http:\/\/default\/block\/7?_format=hal_json"
"href": "http:\/\/default\/block\/7717?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/block_content\/cw_row_block"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"_links": {
"self": {
"href": "http:\/\/default\/block\/8?_format=hal_json"
"href": "http:\/\/default\/block\/777123?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/block_content\/teaser"
},
"http:\/\/drupal.org\/rest\/relation\/block_content\/teaser\/field_teaser_image": [
{
"href": "http:\/\/default\/file\/24?_format=hal_json"
"href": "http:\/\/default\/file\/5?_format=hal_json"
}
]
},
Expand Down Expand Up @@ -65,7 +65,7 @@
{
"_links": {
"self": {
"href": "http:\/\/default\/file\/24?_format=hal_json"
"href": "http:\/\/default\/file\/5?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/file\/image"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"_links": {
"self": {
"href": "http:\/\/sr16-spl-local.sportrelief.com\/file\/18?_format=hal_json"
"href": "http:\/\/default\/file\/18?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/file\/image"
},
"http:\/\/drupal.org\/rest\/relation\/file\/image\/uid": [
{
"href": "http:\/\/sr16-spl-local.sportrelief.com\/user\/1?_format=hal_json"
"href": "http:\/\/default\/user\/1?_format=hal_json"
}
]
},
Expand All @@ -27,7 +27,7 @@
{
"_links": {
"self": {
"href": "http:\/\/sr16-spl-local.sportrelief.com\/user\/1?_format=hal_json"
"href": "http:\/\/default\/user\/1?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/user\/user"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"_links": {
"self": {
"href": "http:\/\/default\/file\/5?_format=hal_json"
"href": "http:\/\/default\/file\/5578?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/file\/image"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"_links": {
"self": {
"href": "http:\/\/sr16-spl-local.sportrelief.com\/file\/19?_format=hal_json"
"href": "http:\/\/default\/file\/19?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/file\/image"
},
"http:\/\/drupal.org\/rest\/relation\/file\/image\/uid": [
{
"href": "http:\/\/sr16-spl-local.sportrelief.com\/user\/1?_format=hal_json"
"href": "http:\/\/default\/user\/1?_format=hal_json"
}
]
},
Expand All @@ -27,7 +27,7 @@
{
"_links": {
"self": {
"href": "http:\/\/sr16-spl-local.sportrelief.com\/user\/1?_format=hal_json"
"href": "http:\/\/default\/user\/1?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/user\/user"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
{
"_links": {
"self": {
"href": "http:\/\/default\/file\/17?_format=hal_json"
"href": "http:\/\/default\/file\/1598?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/file\/image"
},
"http:\/\/drupal.org\/rest\/relation\/file\/image\/uid": [
{
"href": "http:\/\/default\/user\/1?_format=hal_json"
}
]
}
},
"uuid": [
{
Expand All @@ -22,33 +17,14 @@
"value": "en"
}
],
"_embedded": {
"http:\/\/drupal.org\/rest\/relation\/file\/image\/uid": [
{
"_links": {
"self": {
"href": "http:\/\/default\/user\/1?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/user\/user"
}
},
"uuid": [
{
"value": "28a70bfa-ecc6-41b3-af00-efaa5a2d8553"
}
]
}
]
},
"filename": [
{
"value": "sr16_contentwall_fundraise_v2.jpg"
}
],
"uri": [
{
"value": "public:\/\/2016-02\/sr16_contentwall_fundraise_v2.jpg"
"value": "public:\/\/2016-02\/sr16_contentwall_fundraise_v2_15.jpg"
}
],
"filemime": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"_links": {
"self": {
"href": "http:\/\/sr16-spl-local.sportrelief.com\/file\/16?_format=hal_json"
"href": "http:\/\/default\/file\/16?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/file\/image"
},
"http:\/\/drupal.org\/rest\/relation\/file\/image\/uid": [
{
"href": "http:\/\/sr16-spl-local.sportrelief.com\/user\/1?_format=hal_json"
"href": "http:\/\/default\/user\/1?_format=hal_json"
}
]
},
Expand All @@ -27,7 +27,7 @@
{
"_links": {
"self": {
"href": "http:\/\/sr16-spl-local.sportrelief.com\/user\/1?_format=hal_json"
"href": "http:\/\/default\/user\/1?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/user\/user"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"_links": {
"self": {
"href": "http:\/\/sr16-spl-local.sportrelief.com\/node\/18?_format=hal_json"
"href": "http:\/\/default\/node\/18?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/node\/page"
},
"http:\/\/drupal.org\/rest\/relation\/node\/page\/uid": [
{
"href": "http:\/\/sr16-spl-local.sportrelief.com\/user\/1?_format=hal_json",
"href": "http:\/\/default\/user\/1?_format=hal_json",
"lang": "en"
}
],
"http:\/\/drupal.org\/rest\/relation\/node\/page\/revision_uid": [
{
"href": "http:\/\/sr16-spl-local.sportrelief.com\/user\/1?_format=hal_json"
"href": "http:\/\/default\/user\/1?_format=hal_json"
}
]
},
Expand Down Expand Up @@ -45,7 +45,7 @@
{
"_links": {
"self": {
"href": "http:\/\/sr16-spl-local.sportrelief.com\/user\/1?_format=hal_json"
"href": "http:\/\/default\/user\/1?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/user\/user"
Expand All @@ -63,7 +63,7 @@
{
"_links": {
"self": {
"href": "http:\/\/sr16-spl-local.sportrelief.com\/user\/1?_format=hal_json"
"href": "http:\/\/default\/user\/1?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/user\/user"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"_links": {
"self": {
"href": "http:\/\/default\/paragraph\/1?_format=hal_json"
"href": "http:\/\/default\/paragraph\/148?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/paragraph\/cw_row"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"_links": {
"self": {
"href": "http:\/\/default\/paragraph\/3?_format=hal_json"
"href": "http:\/\/default\/paragraph\/9782?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/paragraph\/cr_rich_text_paragraph"
Expand All @@ -19,7 +19,7 @@
],
"http:\/\/drupal.org\/rest\/relation\/paragraph\/cr_rich_text_paragraph\/field_background": [
{
"href": "http:\/\/default\/file\/27?_format=hal_json"
"href": "http:\/\/default\/file\/28?_format=hal_json"
}
]
},
Expand Down Expand Up @@ -52,7 +52,7 @@
},
"uuid": [
{
"value": "3d1f0c36-ac03-44fd-bd02-2e47a3b95a83"
"value": "f4f9c145-e5f4-4465-8300-a0623cf8fd2a"
}
],
"lang": "en"
Expand All @@ -70,7 +70,7 @@
},
"uuid": [
{
"value": "3d1f0c36-ac03-44fd-bd02-2e47a3b95a83"
"value": "f4f9c145-e5f4-4465-8300-a0623cf8fd2a"
}
]
}
Expand All @@ -79,18 +79,18 @@
{
"_links": {
"self": {
"href": "http:\/\/default\/file\/27?_format=hal_json"
"href": "http:\/\/default\/file\/28?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/file\/image"
}
},
"uuid": [
{
"value": "74a6be5a-e8b0-4658-a727-39a33cad8ab4"
"value": "20425f3f-c0ca-4987-8000-beeaebaaa65a"
}
],
"alt": "Child",
"alt": "Africa",
"title": "",
"width": "3400",
"height": "900"
Expand All @@ -111,7 +111,7 @@
],
"changed": [
{
"value": "1460485796",
"value": "1460630071",
"lang": "en"
}
],
Expand Down

0 comments on commit bd7b7dd

Please sign in to comment.