Skip to content
New issue

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

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

Already on GitHub? # to your account

[Admin Tool Feature]: Script to enhance test data for recipient app #762

Open
2 tasks done
ssandino opened this issue Feb 29, 2024 · 0 comments
Open
2 tasks done
Labels
admin tool Issues concerning Admin Tool

Comments

@ssandino
Copy link
Member

Is there an existing request for this feature?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe.

Testing the recipient app is challenging due to the lack of comprehensive test data. Currently, we have the ability to mark recipients as "test recipients":
Screenshot 2024-03-01 at 00 23 03

This flag is already leveraged to exclude them from the transparency page calculations (e.g., when tallying the actual number of recipients, test recipients are omitted).

Describe the solution/feature

However, to enhance our testing capabilities, the following test data scenarios need to be improved:

  • Payments with various statuses (e.g., completed, pending, failed) spanning past, present, and future dates.
  • Surveys with diverse statuses (e.g., open, closed, in progress) across past, present, and future timelines.

Since testing is closely connected to the timeline, it makes sense to have the ability to rewrite the above data, rather than it being fixed in the data seed.

If the script is launched it should:

For every recipient that is flagged as a test user (and ONLY for them)
a) erase existing surveys and add the following:

  • onboarding survey in the past
  • checking-1 in the past
  • checking-2 is due today
  • checking-3 due in the future
    ...
  • offboarding due in the future

b) erase existing payments and add the following:

  • 700 SLE, Payment date: last month on 15th, Status: confirmed
  • 700 SLE, Payment date: current month on 15th, Status: paid
  • 700 SLE, Payment date: next month on 15th, Status: created

Describe alternatives you've considered

No response

Criteria for Completion

  1. write a script that creates the survey and payment entries
  2. add the to the collection of admin scripts in the admin tool (when pressed it should launch the script)
Screenshot 2024-03-01 at 00 18 58

Anything else?

No response

Code of Conduct

  • I've read the Code of Conduct and understand my responsibilities as a member of the Social Income community
@ssandino ssandino added feature admin tool Issues concerning Admin Tool labels Feb 29, 2024
@ssandino ssandino removed the feature label Dec 6, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
admin tool Issues concerning Admin Tool
Projects
No open projects
Development

No branches or pull requests

1 participant