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

Improve IATI export #2102

Closed
2 tasks done
KasperBrandt opened this issue Apr 8, 2016 · 4 comments
Closed
2 tasks done

Improve IATI export #2102

KasperBrandt opened this issue Apr 8, 2016 · 4 comments

Comments

@KasperBrandt
Copy link
Contributor

KasperBrandt commented Apr 8, 2016

Test plan

Before starting with testing, make sure to perform two one-time actions:

  • The iati_export cron job is running (done on Test and UAT)
    • See running cron jobs by running: manage.py crontab show;
  • The perform_iati_checks management command has been run (done on Test and UAT).

GIVEN the 'My IATI' section in MyRSR
WHEN connected to multiple organisations (or as superuser)
THEN an organisation selection screen should be shown

WHEN connected to one organisation
THEN this organisation should be automatically selected

GIVEN the 'My IATI' section in MyRSR
WHEN an organisation has been selected
THEN the overview of all IATI exports should be shown
AND for each export the status, number of projects, created by, created at and IATI version should be shown
AND the latest IATI export should be shown in a green row
AND a pending or in progress IATI export should be shown in a yellow row
AND a cancelled or export without an IATI file should be shown in a red row

GIVEN the 'My IATI' section in MyRSR
WHEN an organisation has been selected
THEN it should be possible to select whether the latest IATI file is shown on the organisation page

GIVEN that is has been set that the latest IATI file is shown on the organisation page
THEN it should be shown on the organisation page as well
ELSE the IATI file should not be shown

GIVEN that the 'Add new IATI export' button is clicked
THEN the user should be redirected to the project selection overview

GIVEN the project selection overview
WHEN looking at the projects overview
THEN all projects where the selected organisation is reporting organisation should be shown

GIVEN the project selection overview
WHEN applying a filter
THEN the project selection should change
AND the indication of the number of projects selected should indicate the number of selected projects

GIVEN the project selection overview
WHEN projects are selected AND the 'create new IATI export' button is clicked
THEN the user should be redirected to the IATI exports overview
AND the top IATI export should be the new IATI export (with 'Pending' status)

GIVEN the IATI export overview
WHEN an export is pending or in progress
THEN the overview should be refreshed every 10 seconds
AND when an export is in progress, the number of processed projects should be shown

Issue description

Currently, an IATI export with more than 70 projects will give a DB timeout. However, we need to be able to export an IATI file with any amount of projects. Similar to the IATI import, we can use a cron job for this.

  • Move IATI export to a cron job implementation
  • Update the 'My IATI' tab in MyRSR
@KasperBrandt KasperBrandt self-assigned this Apr 8, 2016
@KasperBrandt KasperBrandt added this to the 3.13 Quito milestone Apr 8, 2016
KasperBrandt added a commit that referenced this issue Apr 14, 2016
KasperBrandt added a commit that referenced this issue Apr 18, 2016
KasperBrandt added a commit that referenced this issue Apr 18, 2016
KasperBrandt added a commit that referenced this issue Apr 19, 2016
KasperBrandt added a commit that referenced this issue Apr 20, 2016
KasperBrandt added a commit that referenced this issue Apr 20, 2016
@KasperBrandt
Copy link
Contributor Author

Clicking the 'Add new IATI export' button now gives a 403.

@KasperBrandt
Copy link
Contributor Author

KasperBrandt commented May 10, 2016

Based on @JosjeS's feedback, we should remove some of the filters:

  • All status filters
  • The 'all' and 'public' filters

In addition, filters should work independently from each other.

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

No branches or pull requests

2 participants