generated from dxw/rails-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pipe-delimited values were allows to have duplicate values on import, meaning for example that countries would appear twice in an activity's details, e.g. "Brazil, Egypt and Egypt". This was the only visible duplication on the surface; however, it applied to any pipe-delimited field on import and they were stored with dupes (even though some views elided that duplication). Update the converter in all the places required. There *could* have been a method for this, but for convert_country_partner_organisations that requires a `strip`. Kept the duplication. Ironically.
- Loading branch information
Showing
4 changed files
with
97 additions
and
7 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
2 changes: 2 additions & 0 deletions
2
spec/fixtures/csv/valid_ispf_oda_activities_upload_with_duplicate_pipe_items.csv
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,2 @@ | ||
RODA ID,Parent RODA ID,Linked activity RODA ID,Transparency identifier,Title,Description,Benefitting Countries,Partner organisation identifier,GDI,SDG 1,SDG 2,SDG 3,Covid-19 related research,ODA Eligibility,ODA Eligibility Lead,Activity Status,Call open date,Call close date,Total applications,Total awards,Planned start date,Planned end date,Actual start date,Actual end date,Sector,Channel of delivery code,Collaboration type (Bi/Multi Marker),DFID policy marker - Gender,DFID policy marker - Climate Change - Adaptation,DFID policy marker - Climate Change - Mitigation,DFID policy marker - Biodiversity,DFID policy marker - Desertification,DFID policy marker - Disability,DFID policy marker - Disaster Risk Reduction,DFID policy marker - Nutrition,Aid type,Free Standing Technical Cooperation,Aims/Objectives,UK PO Named Contact,ISPF themes,ISPF ODA partner countries,ISPF non-ODA partner countries,Comments,Implementing organisation names,Tags,Original commitment figure | ||
,ISPF-ODA-PROGRAMME-ID,,1234,A title,A description,AO|AO,example-id-1arn,4,,,,,1,ODA lead 1,7,11/01/2019,11/05/2019,14,5,10/10/2020,10/10/2021,,,12182,11000,1,,,,,,,,,D02,0,Freetext objectives,Someone Somebody,1|2|1,BR|EG|EG,CA|CA,A comment,,1|2|2|1|1,1000 |
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