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

fix: remove Anonymous Donor field from donor details #3781

Closed
4 of 6 tasks
kevinwhoffman opened this issue Oct 17, 2018 · 2 comments
Closed
4 of 6 tasks

fix: remove Anonymous Donor field from donor details #3781

kevinwhoffman opened this issue Oct 17, 2018 · 2 comments
Assignees

Comments

@kevinwhoffman
Copy link
Contributor

kevinwhoffman commented Oct 17, 2018

Bug Report

User Story

As a Give admin, I want to remove the Anonymous Donor field from the Donor details screen so that it does not cause confusion between the idea of an anonymous donor and an anonymous donation.

Current Behavior

This functionality is being used:

In Give v2.3.0 an anonymous donation is denoted by the presence of a donation meta key where _give_anonymous_donation === 1. This key determines whether the donation is displayed in the donor wall and works as intended.

This functionality is not being used:

In addition, donor meta keys are also added that don't seem to be serving any purpose and do not accurately reflect whether the donor has made an anonymous donation:

  • _give_anonymous_donor_form_8 where 8 is the form ID.
  • _give_anonymous_donor

I think this is a leftover effect from when donations were being combined on the donor wall, but we have since decided to display all donations individually based on anonymity per donation.

Expected Behavior

I expect to only store an anonymous key in donation meta, but not donor meta. The donor meta keys should not be added when a donation occurs and the Anonymous Donor field should be removed from the Donor details screen.

Bug Type

  • This bug describes functionality that once worked as expected in version X.X.X.
  • This bug describes functionality that never worked as expected.
  • I am not sure whether this functionality ever worked as expected.

Steps to Reproduce

  1. In Give v2.3.0, create a form with comments and anonymous checkbox enabled.
  2. Enter a comment and check anonymous before submitting donation.
  3. Visit donor details screen to reveal that Anonymous Donor: No is visible even though the individual donation was anonymous.

Visuals

image

Related

Acceptance Criteria

  • The Anonymous Donor field is removed from the Donor details screen in WP admin.
  • When a donation form with anonymous checkbox is submitted, the value of the checkbox is stored as donation meta with a key of _give_anonymous_donation and value of 1 or 0.
  • No keys are added to the donor meta regarding anonymous donations since we already have that covered in donation meta.
@kevinwhoffman
Copy link
Contributor Author

kevinwhoffman commented Oct 17, 2018

@ravinderk Please confirm that the donor meta fields are no longer necessary in order to handle anonymous donations. If they are not necessary, please remove the Anonymous Donor field in Donor details screen and prevent those keys from being stored in the future.

@ravinderk
Copy link
Collaborator

ravinderk commented Oct 18, 2018

@kevinwhoffman Yes, they are not useful and I will create PR to remove them

DevinWalker pushed a commit that referenced this issue Oct 19, 2018
fix: remove `Anonymous Donor` field from donor details #3781
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants