Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Searching for budgets by currency may not give complete results because #305

Open
simon-20 opened this issue Dec 1, 2023 · 1 comment
Open

Comments

@simon-20
Copy link
Collaborator

simon-20 commented Dec 1, 2023

Brief Description
The budget value @Currency attribute is required, unless you specify a default currency. The default can be specified at the iati-organisation level, or the iati-activity level.

At present the budget_value_currency Solr field used for searching is populated only via the @Currency attributes set on the budget/value element. If there is a default currency specified, this will not be populated into this field.

This means that if you wanted to search for budgets by currency, you wouldn't be guaranteed to get complete results, because it wouldn't pick up the results for budget/value elements which relied on the default currency value.

Severity
Low

@odscjames
Copy link
Contributor

Fixing this at the organisation level is going to be hard.

But fixing this at the activity level should be easier - the Flattener class is handed the whole activity and gives back the whole result so we can have some special code in there, like we already do for dates. https://github.com/IATI/refresher/blob/develop/src/library/flatten.py#L23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants