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

Allow reports without financial year to be accessed #1094

Merged
merged 2 commits into from
Apr 27, 2021

Conversation

CristinaRO
Copy link
Contributor

Changes in this PR

Historical “ingested” reports don’t have any financial year and quarter.

Many of the features built around a report rely on the report having a financial quarter and year, and break if the report doesn’t.

In order to allow the historical reports to be accessed and downloaded, we need to add a lot of guards against the lack of financial year and quarter.

(Any reports being created now enforce the presence of a FY/FQ by assigning default values at creation, and the fields are readonly at database level.)

Next steps

  • Is an ADR required? An ADR should be added if this PR introduces a change to the architecture.
  • Is a changelog entry required? An entry should always be made in CHANGELOG.md, unless this PR is a small tweak which has no impact outside the development team.
  • Do any environment variables need amending or adding?
  • Have any changes to the XML been checked with the IATI validator? See XML Validation

@CristinaRO
Copy link
Contributor Author

Historical “ingested” reports don’t have any financial year and quarter.

Many of the features built around a report rely on the report having a financial quarter and year, and break if the report doesn’t.

In order to allow the historical reports to be accessed and downloaded, we need to add a lot of guards against the lack of financial year and quarter.

(Any reports being created now enforce the presence of a FY/FQ by assigning default values at creation, and the fields are readonly at database level.)
@CristinaRO CristinaRO force-pushed the 1695-allow-old-ingest-reports-to-be-accessed branch from bd30bfd to 079abb5 Compare April 26, 2021 14:44
Copy link
Contributor

@pezholio pezholio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks for doing this! 👍

@pezholio pezholio merged commit cabd329 into develop Apr 27, 2021
@pezholio pezholio deleted the 1695-allow-old-ingest-reports-to-be-accessed branch April 27, 2021 09:58
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

Successfully merging this pull request may close these issues.

2 participants