Skip to content

currency missing in datastore when default-currency attribute of iati-activities/iati-activity is set #376

Description

@jarofgreen

Brief Description
See https://iatiregistry.org/dataset/worldbank-289
Data has a default currency set but transactions have no currency value set.

Now see data from id 44000-P093826 in the datastore

Transactions have no currency set.

This is because I can't see anywhere in the code where default-currency is used to populate other values

Severity
medium

Issue Location
see above

Steps to Reproduce
see above

Expected Results/Behaviour and Actual Results/Behaviour

This gets into a discussion about how useful the data store should be; should it just report data as raw as possible or should it try and make it useful?

In this case, the data store is technically correct - the transactions do have no currency set.

However, as a user who queries transactions I probably don't care whether the currency is a default one or set in that transaction, I just care what currency is in use and I just want the data right there so I can process it with no further work.

Note D-Portal does do this, and actually massages the XML that comes out so transaction value elements have a currency set. https://d-portal.org/q.xml?aid=44000-P093826

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions