Skip to content
This repository has been archived by the owner on Feb 20, 2020. It is now read-only.

WIP: Move funds from archived members to group account #190

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

chime-mu
Copy link
Contributor

@jlopker This builds on the changes from PR #188, so it's not relevant until we have that one reviewed and deployed.

This will fix the problem with funds hidden with archived members.

The idea is to run a daily job that check all archived members in all groups. All archived members with non-zero funds will have their funds transferred to the group account. A mail will be sent to all admins of the group stating this transfer has happened and in the mail will ba a list of all funds transferred.

The transfers should also be visible in the activity tab. Until the activity tab gets data from the transactions table, it will look like two allocations, one negative. When we use the transactions table it will be a direct transfer from the archived user to the group account.

So maybe we consider getting data to the activity tab from the transactions table for this change?

The point with running a daily job was to ensure that if there's a consistent bug in the system, this job will make sure funds go back were they need to go. Also, it easier for us as we don't have to make specific mails per group, but can let the system send mails to the groups involved.

I've further more introduced a devops_user in the config for environments, where we can specify a mail address. I imagine we use [email protected] in production. We will then receive the same mail as is sent to the admins. In this way we can track if this problem occurs again.

@chime-mu chime-mu changed the title Move funds from archived members to group account WIP: Move funds from archived members to group account Nov 29, 2017
@chime-mu chime-mu removed the request for review from jlopker November 29, 2017 23:13
@chime-mu
Copy link
Contributor Author

This branch is no longer ready for review or merge @jlopker. I need #192 out first.

@chime-mu
Copy link
Contributor Author

It's missing the creation of a system user who is the owner of transactions generated by the system - in this case moving funds from archived members.

@chime-mu
Copy link
Contributor Author

Just a reminder when I need to test this:

  • It's possible to find the list of archived members with funds
  • It's possible to generate mails from the list
  • If the funds are moved to group account, then a new list should be empty.
  • Check the funds are actually visible in the group account.

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

Successfully merging this pull request may close these issues.

1 participant