-
Notifications
You must be signed in to change notification settings - Fork 6
[TAAS-18] Add countries support #14
Conversation
To change:
Opinions:
|
@emmajane I looked at the GSS, and I can't see any Pcode mention. Just ISO2 so I am not sure where the pcode came into the equation? Or where am I missing it. Regardless, since we are talking about countries, I am happy to default to global standards (i.e. iso2) and label it that way. Null values are okay if the country does not exist in ISO2. Not sure if Helen would have any info on why p-code would have been included in an Admin 0 / Country taxonomy. |
@andrejverity thanks for double checking. I think we're good on this front and I am simply mistaken about what the headings were previously. |
Thanks everyone! I've updated the top-post with the results of review, and have a few changes to make before this is to be merged. |
For our `countries.json` output: - Added `hrinfo_id` - Added `admin_level` - Added `geolocation` (lat/lon) - Tweaked `label.hrinfo` → `label.humanitarianresponse` These were based upon the feedback in PR #14
For our `countries.json` output: - Added `hrinfo_id` - Added `admin_level` - Added `geolocation` (lat/lon) - Tweaked `label.hrinfo` → `label.humanitarianresponse` These were based upon the feedback in PR #14
Have updated with 47708ad which incorporates al the feedback from this review. Records now look like this:
And here's one with lots of nulls:
Things to note:
I'm happy for this to be merged, although it would be lovely to have PR #13 (the code it's based on) reviewed first. |
Question: what is the difference between reliefweb-name and reliefweb-web?
Question 2: why do we have HR.info ID, but not for the others? (i.e.
Could/should we remove HR or add the others like RW IDs?)
|
That's a fantastic question! I believe Helen knows the answer, but I do not. The spreadsheet has separate "Name" and "Website" terms for ReliefWeb (columns M and N), and I'm not sure of the difference between them either.
We have the HR.info ID because @emmajane requested it. I can't export the ID for other services as the spreadsheet doesn't contain them. |
This establishes a countries endpoint that provides alternate terms and ISO 2 and 3 letter codes.
For our `countries.json` output: - Added `hrinfo_id` - Added `admin_level` - Added `geolocation` (lat/lon) - Tweaked `label.hrinfo` → `label.humanitarianresponse` These were based upon the feedback in PR #14
With #13 merged this is now a config-only change. |
This has further discussions on JIRA I need to review before we can merge. |
Added clarifying questions on JIRA for Helen |
After the discussions on JIRA I'm closing this PR in favour of a more minimal version. We'll add additional functionality in as it gets passed discussion and we have consensus on what should be exported and how it's presented. |
This supports a
countries
endpoint. Sample output:This includes code from PR #13.
Things to note:
pcode
. It's nowiso2
.label
field is now a map.label.default
is the preferred term, but one can now select which labelling scheme to use.Feedback from review:
Required:
label.hrinfo
tolabel.humanitarianresponse
.Suggested:
ToDo