You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

Fundraising/Roadmap

From Wikitech-static
< Fundraising
Revision as of 21:45, 12 April 2022 by imported>Ejegg
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

We want to make our software easier to maintain and develop, and more accessible both to new developers on our team and to other organizations.

We want to move as much business logic as possible from DonationInterface to SmashPig. The obvious opportunities for this migration are when we rewrite a payment processor integration. The Amazon, Adyen, and Ingenico integrations all have moved a fair amount of business logic out of DonationInterface. DLocal (nee AstroPay) and PayPal integrations still manage all the business logic in DonationInterface code. We are planning to rewrite the PayPal integration in the first half of 2022.

SmashPig has some homegrown features that are mostly handled by external libraries in modern applications. We should tear out the homegrown implementations and use a more modern approach to

  • logging (replace with monolog)
  • monitoring/failmail
  • dependency injection (maybe Symfony containers)

We want to make configuration consistent and understandable across our codebases. DonationInterface and SmashPig each have a way to define defaults for configuration values that can be overridden on a per-processor basis. These two approaches should be harmonized. We should also make it easy to test the trickier parts of our configuration such as donation routing to ensure that we get the results we expect.

We need to move any CiviCRM custom code that interfaces with drupal 7 to instead interface with CiviCRM APIs. This will be an opportunity to clean up and modernize code while we are at it.