Skip to content

Commit

Permalink
chore(valor): update mapping (#150)
Browse files Browse the repository at this point in the history
# PR description

Please drop a few lines about the PR: what it does, how to test it, etc.

## QA Checklist

When you add a new ETL/producer, please check for the following:

* [ ] Producer's secrets are stored safely
* [ ] Ensure the ETL is added to the corresponding `scripts/` for automated deployment and deletion 
* [ ] There is at least 1 unit test with a jest snapshot for the transform function of the ETL
* [ ] Update the file PRODUCERS_DATA_AVAILABILITY_GRID.md indicating which fields are available in source data of ETL
* [ ] Ensure there is (flow/jsdocs) documentation in the `tranform.js` file which is to be used for automated documentation
* [ ] Generate the necessary documentation pages for the new ETL by `yarn docs:md`
  • Loading branch information
degliwe authored and emeryro committed Jul 31, 2018
1 parent c679ac5 commit 7971c27
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 45 deletions.
42 changes: 42 additions & 0 deletions services/ingestion/etl/iati/csv/mapping.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Producer: IATI

## DG: xx

## Format: csv

| Source | Target | Operation |
| ------------------------ | -------------------------------- | --------------------------- |
| | action | '' |
| | budget.total_cost | sanitizeBudgetItem() |
| 'total-Disbursement' | budget.eu_contrib.value | sanitizeValue() |
| 'total-Expenditure' | budget.eu_contrib.value | value + sanitizeValue() |
| | budget.eu_contrib.currency | sanitizeBudgetItem() |
| | budget.eu_contrib.raw | '$currency $value' |
| | budget.private_fund | sanitizeBudgetItem() |
| | budget.public_fund | sanitizeBudgetItem() |
| | budget.other_contrib | sanitizeBudgetItem() |
| | budget.funding_area | [] |
| | budget.mmf_heading | '' |
| | call_year | '' |
| 'description' | description | |
| | ec_priorities | [] |
| | media | [] |
| | programme_name | '' |
| 'title' | project_id | getProjectId() |
| 'recipient-country-code' | project_locations[].country_code | getCountryCode(country) |
| | project_website | '' |
| | related_links | [] |
| 'reporting-org-ref' | reporting_organisation | getReportingOrganizations() |
| | results.available | '' |
| | results.result | '' |
| | status | '' |
| | sub_programme_name | '' |
| | success_story | '' |
| | themes | [] |
| | third_parties | [] |
| 'start-actual' | timeframe.from | formatDate() |
| | timeframe.from_precision | 'day' |
| 'end-actual' | timeframe.to | formatDate() |
| | timeframe.to_precision | 'day' |
| 'title' | title | |
| | types | [] |
Loading

0 comments on commit 7971c27

Please sign in to comment.