Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
Merge pull request #199 from Financial-Times/lk/display-tag-fragment
Browse files Browse the repository at this point in the history
Add displayConcept.isDisplayTag to GraphQL queries and test fixtures
  • Loading branch information
kavanagh authored Oct 9, 2018
2 parents 8503677 + a9eb181 commit aff7a9a
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions demos/fixtures/fixures-live-blog-closed.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"displayConcept": {
"prefLabel": "EU Economy",
"relativeUrl": "/eu-economy",
"isDisplayTag": true,
"latestContent": [
{
"type": "Article",
Expand Down
1 change: 1 addition & 0 deletions demos/fixtures/fixures-live-blog.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"displayConcept": {
"prefLabel": "EU Economy",
"relativeUrl": "/eu-economy",
"isDisplayTag": true,
"latestContent": [
{
"type": "Article",
Expand Down
1 change: 1 addition & 0 deletions src/data-model/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ module.exports = [
'displayConcept.prefLabel',
'displayConcept.relativeUrl',
'displayConcept.directType',
'displayConcept.isDisplayTag',

'brandConcept.id',
'brandConcept.prefLabel',
Expand Down
1 change: 1 addition & 0 deletions src/data-model/fragments.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ module.exports = {
displayConcept {
prefLabel
relativeUrl
isDisplayTag
}
...on Video {
duration
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/article-brand-fixture.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"displayConcept": {
"prefLabel": "FT View",
"relativeUrl": "/comment/ft-view",
"isDisplayTag": true,
"latestContent": [
{
"type": "Article",
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/article-opinion-author-fixture.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"displayConcept": {
"prefLabel": "Global politics",
"relativeUrl": "/topics/themes/Global_politics",
"isDisplayTag": true,
"latestContent": [
{
"type": "Article",
Expand Down
3 changes: 2 additions & 1 deletion tests/fixtures/article-package-fixture.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"id": "3a34141d-e886-3c6f-8985-551ed91e994a",
"prefLabel": "Equality in workplace",
"directType": "http://www.ft.com/ontology/Topic",
"url": "https://www.ft.com/stream/3a34141d-e886-3c6f-8985-551ed91e994a"
"url": "https://www.ft.com/stream/3a34141d-e886-3c6f-8985-551ed91e994a",
"isDisplayTag": true
},
"brand": {
"idV1": "fb491676-5024-3111-a959-1fbce2fbecc1",
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/article-standard-fixture.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"displayConcept": {
"prefLabel": "UK Politics & Policy",
"relativeUrl": "/world/uk/politics",
"isDisplayTag": true,
"latestContent": [
{
"type": "Article",
Expand Down
3 changes: 2 additions & 1 deletion tests/fixtures/video-es-fixture.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
},
"displayConcept": {
"prefLabel": "Week Ahead",
"relativeUrl": "/stream/c24d6335-076a-366a-98e2-500bb26401d6"
"relativeUrl": "/stream/c24d6335-076a-366a-98e2-500bb26401d6",
"isDisplayTag": true
},
"attachments": [
{
Expand Down
3 changes: 2 additions & 1 deletion tests/fixtures/video-fixture.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
},
"displayConcept": {
"prefLabel": "Week Ahead",
"relativeUrl": "/stream/c24d6335-076a-366a-98e2-500bb26401d6"
"relativeUrl": "/stream/c24d6335-076a-366a-98e2-500bb26401d6",
"isDisplayTag": true
},
"duration": 270655,
"formattedDuration": "4:30"
Expand Down

0 comments on commit aff7a9a

Please sign in to comment.