-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from Financial-Times/bugfix/ReturnCanonicalUUI…
…DPrefLabelFromOrg Handle memberships to orgs with equivalent relationships and return canonical data
- Loading branch information
Showing
5 changed files
with
113 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
.../fixtures/newModel/Membership-ToNonCanonicalOrg-cd80a11e-5aa8-11e8-b45a-da24cd01f044.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"prefUUID": "cd80a11e-5aa8-11e8-b45a-da24cd01f044", | ||
"prefLabel": "Head of Repair", | ||
"type": "Membership", | ||
"membershipRoles" : ["7d0738b1-0ea2-47cb-bb82-e86744b389f0"], | ||
"organisationUUID": "b96f6e56-dc49-4332-80b8-58662ea21e89", | ||
"personUUID": "7ceeafe5-9f9a-4315-b3da-a5b4b69c013a", | ||
"sourceRepresentations": [ | ||
{ | ||
"uuid": "cd80a11e-5aa8-11e8-b45a-da24cd01f044", | ||
"prefLabel": "Head of Repair", | ||
"authority": "Smartlogic", | ||
"authorityValue": "cd80a11e-5aa8-11e8-b45a-da24cd01f044", | ||
"type": "Membership", | ||
"membershipRoles" : ["7d0738b1-0ea2-47cb-bb82-e86744b389f0"], | ||
"organisationUUID": "b96f6e56-dc49-4332-80b8-58662ea21e89", | ||
"personUUID": "7ceeafe5-9f9a-4315-b3da-a5b4b69c013a" | ||
} | ||
] | ||
} |
20 changes: 20 additions & 0 deletions
20
...xtures/newModel/Organisation-ShirleysSparkplugs-016037d4-5aa8-11e8-b45a-da24cd01f044.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"prefUUID": "016037d4-5aa8-11e8-b45a-da24cd01f044", | ||
"prefLabel": "Shirleys Sparkplugs", | ||
"type": "Organisation", | ||
"sourceRepresentations": [ | ||
{ | ||
"uuid": "b96f6e56-dc49-4332-80b8-58662ea21e89", | ||
"prefLabel": "ABC Automotive", | ||
"authority": "TME", | ||
"authorityValue": "90210", | ||
"type": "Organisation" | ||
}, { | ||
"uuid": "016037d4-5aa8-11e8-b45a-da24cd01f044", | ||
"prefLabel": "Shirleys Sparkplugs", | ||
"type": "Organisation", | ||
"authority": "Smartlogic", | ||
"authorityValue": "016037d4-5aa8-11e8-b45a-da24cd01f044" | ||
} | ||
] | ||
} |
51 changes: 51 additions & 0 deletions
51
people/fixtures/outputJSON/TestNewModelWithNewModelMembershipToNonCanonicalOrg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"id": "http://api.ft.com/things/7ceeafe5-9f9a-4315-b3da-a5b4b69c013a", | ||
"apiUrl": "http://api.ft.com/people/7ceeafe5-9f9a-4315-b3da-a5b4b69c013a", | ||
"prefLabel": "Shirley Rooney", | ||
"types": [ | ||
"http://www.ft.com/ontology/core/Thing", | ||
"http://www.ft.com/ontology/concept/Concept", | ||
"http://www.ft.com/ontology/person/Person" | ||
], | ||
"directType": "http://www.ft.com/ontology/person/Person", | ||
"memberships": [ | ||
{ | ||
"title": "Head of Repair", | ||
"types": [ | ||
"http://www.ft.com/ontology/core/Thing", | ||
"http://www.ft.com/ontology/concept/Concept", | ||
"http://www.ft.com/ontology/organisation/Membership" | ||
], | ||
"directType": "http://www.ft.com/ontology/organisation/Membership", | ||
"organisation": { | ||
"id": "http://api.ft.com/things/016037d4-5aa8-11e8-b45a-da24cd01f044", | ||
"apiUrl": "http://api.ft.com/organisations/016037d4-5aa8-11e8-b45a-da24cd01f044", | ||
"prefLabel": "Shirleys Sparkplugs", | ||
"types": [ | ||
"http://www.ft.com/ontology/core/Thing", | ||
"http://www.ft.com/ontology/concept/Concept", | ||
"http://www.ft.com/ontology/organisation/Organisation" | ||
], | ||
"directType": "http://www.ft.com/ontology/organisation/Organisation" | ||
}, | ||
"roles": [ | ||
{ | ||
"id": "http://api.ft.com/things/7d0738b1-0ea2-47cb-bb82-e86744b389f0", | ||
"apiUrl": "http://api.ft.com/things/7d0738b1-0ea2-47cb-bb82-e86744b389f0", | ||
"prefLabel": "Smarty Pants", | ||
"types": [ | ||
"http://www.ft.com/ontology/core/Thing", | ||
"http://www.ft.com/ontology/concept/Concept", | ||
"http://www.ft.com/ontology/MembershipRole" | ||
], | ||
"directType": "http://www.ft.com/ontology/MembershipRole" | ||
} | ||
] | ||
} | ||
], | ||
"emailAddress": "test@example.com", | ||
"twitterHandle": "@something", | ||
"descriptionXML": "Some text containing <strong>markup</strong>", | ||
"_imageUrl": "http://someimage.jpg", | ||
"imageUrl": "http://someimage.jpg" | ||
} |