Name: FundraisingStore
Owner: Wikimedia Deutschland e.V.
Description: Persistence services around the fundraising database
Created: 2015-07-03 13:33:44.0
Updated: 2017-06-19 05:47:05.0
Pushed: 2018-02-27 12:53:57.0
Size: 204
Language: PHP
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Fundraising Store contains persistence services for the WMDE fundraising codebase.
You can use Composer to download and install this package as well as its dependencies.
To add this package as a local, per-project dependency to your project, run:
composer require wmde/fundraising-store
This package provides vendor/bin/cli-config.php
file required by the Doctrine Console.
A default database configuration, compatible with the container used for integration tests (see docker-compose.yml
),
can be found in local-db-config.php
.
Applications wanting to use this package in conjunction with the Doctrine Console should provide their own cli-config.php
.
In order to create a level playing field for development this project uses docker & docker-compose, as well as composer for dependency management.
docker-compose build
docker run -it --rm --user $(id -u):$(id -g) -v "$PWD":/code -v ~/.composer:/composer -w /code composer composer install
docker-compose run --rm app vendor/bin/phpunit
All committed code is checked by our CI against the unit tests and the coding styleguide.
The configuration for these tools can be found in the root directory.
After installation through composer you can either call the tools directly from their location in vendor/bin
or use the provided composer
tasks:
composer ci # Run all checks
composer cs # Run style checks
composer test # Run unit tests
Be aware that the concepts of composer as a script runner and containerization might not work together out-of-the-box.
MembershipApplication::setDonationReceipt()
et al.Donation::STATUS_EXPORTED
for historical reasons.DonationPayments\SofortPayment
entityd_
.donation_id
of MembershipApplication
as deprecated. It's no longer written by the fundraising frontend, but
still referenced in some places by the backend, so for now we just mark it as deprecated instead of removing it.MembershipApplication::isDeleted()
/tmp
.source
field to subscription
table. This field indicates what led to the subscription,
for instance the “remind me later” feature.Subscription::getSource
and Subscription::setSource
Subscription::markAsConfirmed
Subscription::markForModeration
Subscription::needsModeration
Subscription::isUnconfirmed
now correctly returns true when a subscription has been marked for moderationpayment_type
field column to the request
tableMembershipApplication::setPaymentType
and MembershipApplication::getPaymentType
cli-config.php
when including FundraisingStore
in an application is removed.By the rules of semantic versioning, this version should have been 2.1 but was tagged wrongly.
MembershipApplicationData::setPreservedStatus
and MembershipApplicationData::getPreservedStatus
.
This is used to store the previous status when the status changes from a positive to a negative value.Spenden
=> Donation
.Users
=> User
BackendImpressions
=> BackendImpression
Request
was split into MembershipApplication
and Subscription
(the type field was removed)Donation
and MembershipApplication
were changed to English.dt_new
is now mandatory (not nullable).guid
field of MembershipApplication
was removed.Address
entityDonationData
class to provide nicer access to the data fieldDonation
setId
getDecodedData
encodeAndSetData
getDataObject
setDataObject
modifyDataObject
MembershipApplicationData
class to provide nicer access to the data fieldMembershipApplication
setId
getDecodedData
encodeAndSetData
getDataObject
setDataObject
modifyDataObject
Initial release with Store\Factory
, Store\Installer
and these entities:
Donation::data
to specific subclasses of the DonationPayment
abstract class.