Bugs: Browse | Submit New | Admin

[#25241] Ability for Campaign Admin to limit which projects the campaign is raising funds for

Date:
2009-04-07 22:32
Priority:
5
Submitted By:
Leif Baradoy (baradoy)
Assigned To:
Leif Baradoy (baradoy)
Category:
None
State:
Open
Severity:
Status:
Page/Area:
 
Summary:
Ability for Campaign Admin to limit which projects the campaign is raising funds for

Detailed description
For this initial build, the Campaign Admin should have the ability to limit which projects the campaign is specifically
raising money for.  All funds raised, by any campaign participant, will only go to the projects selected by the Campaign
Admin.

First version of this functionality should simply include a list of all the projects on the site and the Admin
can individually select which projects will be featured for the campaign  (in the future we will allow people broader
search terms--raised as a separate bug).

Note: This is half built out, but requires a lot of work to actually finish specifically in tracking the dollars donated
to projects.

This should take 0.5-1 hour.

Add A Comment: Notepad

Please login


Followup

Message
Date: 2009-05-29 21:48
Sender: Jeff Rickard

I was going back through this because I went over the logic with
some guys here to see if I had any holes in it and we found one
that I patched regarding partial splits when allocating
the monies.

I have implemented a fix that should work, I included some output
in the logs and I thought I would include it here so you could
follow along and make sure it is doing what you think it should:

We are going to allocate 11000.0
Attempting to allocate 3666.66666666666666666666666666666667
to each project
Project CORE International , Microcredit, 3 Year  Program fulfilled,
removing from array
allocated 2967.81 to project_id: 1
allocated 3666.66666666666666666666666666666667 to project_id: 2
allocated 3666.66666666666666666666666666666667 to project_id: 6
Attempting to allocate 349.42833333333333333333333333333333 to
each project
allocated 349.42833333333333333333333333333333 to project_id: 2
allocated 349.42833333333333333333333333333333 to project_id: 6
No more programs to contribute to
allocating 0.01 to Let ChristmasFuture Choose a Project for Me
(project_id: 11)
allocating 4016.095 to Towards a Culture of Children's Rights
(project_id: 6)
allocating 2967.81 to CORE International , Microcredit, 3 Year
Program (project_id: 1)
allocating 4016.095 to Children's Human Rights Project (project_id:
2)
Date: 2009-05-29 18:03
Sender: Leif Baradoy

I closed a campaign that was to allocate to Project #10 and #21.
I found the close campaign option on the campaign homepage and
the msgs and confirmation were great. Well done!

When I viewed the projects, I noted that one of the projects
selected has been deleted.  The other project yet register that
the funds were received.

When I went back to the campaign page
(http://slice2.christmasfuture.org:3000/dt/creationsciencesss)
the campaign was closed (couldn't join or add more money).  Good
stuff.

Question:
_ should the money be allocated right away?  
_ Is the reason I exerienced a problem due in part to the fact
that one project was closed/complete?

Just to confirm, until we build out automated allocations the
"Allocate Funds By:" field does not serve any function
on the site.

Future Change 5 is tested and complete 
Future Change 2 is tested and complete
Future Change 1 is tested and complete
 
Date: 2009-05-29 15:17
Sender: Jeff Rickard

For Scenario 1 you can test this by editting the campaign profile
and changing the "Raise Funds Until" date into the
past while the allocate funds by process is in the future.  Then
you can click on the "close campaign" link that shows
up with the other available actions.

You can then look at the investments on the projects and you
should see them get allocated as per your specifications.

Response to Question: Funds will be allocated when the campaign
owner closes the campaign.  There is currently no automated process
that will force this to happen.

Future Change 5 is complete
Future Change 2 is complete
Future Change 1 is complete

Those last 3 were in the stuff I just pushed up to test this
morning.

Date: 2009-05-29 06:32
Sender: Leif Baradoy

__Scenario 1: Tried to Create a new campaign and delimit it to
2 projects__

WORKED WELL, but I have no way of testing/verifying that the
funds will be allocated to those projects.  The click boxes worked,
but until a campaign ends I don't actually know that funds are
being raised for a specific project.

__Scenario 2: Edit an existing campaign and delimit it to
2 projects__

Worked well, but same comment as above.


Question:
- Will funds be automatically allocated to selected projects
once the campaign ends? (as per bug #25243)

Future changes (rated 1-5 for priority):
- 5. Add info to Campaign Facts on campaign homepage. "This
campaign supports: (list project name w/ link to project)"

- 2. When a campaign is update, the user should be taken back
to the campaign homepage (the confirmation message should still
appear)

- 1. When campaign is being created, can you add a note that
if note that says "If you do not select any project then
this campaign will raise funds for ALL projects on
the site."
Date: 2009-05-28 23:41
Sender: Jeff Rickard

I have implemented the requested changes in revision 3117
Date: 2009-05-26 22:21
Sender: Leif Baradoy

Scenario 1:
Tried to Create a new campaign and delimit it to 2 projects
- Logged in as an Admin
- Clicked Create a campaign from
http://slice2.christmasfuture.org:3000/dt/campaigns page
- filled in details
- Error 500
- Campaign was not created

Scenario 2:
Edit an existing campaign and delimit it to 2 projects
- Used Campaign #8 on slice2
- Click on "Manage Campaign" from campaign homepage
(NOT campaign list)
- Wrong button
- Click on Edit campaign profile
- Taken to Edit Screen
- Clicked boxes beside the top 2 projects (no other data was
changed)
- Campaign was successfully updated msg (still in edit campaign
screen)
- No message on campaign homepage shows

Changes:
- Add info to Campaign Facts on campaign homepage. "This
campaign supports: (list project name w/ link to project)"
- When campaign is being created, can you add a note that if
note that says "If you do not select any project then this
campaign will raise funds for ALL projects on the site."
- When a campaign is update, the user should be taken back to
the campaign homepage (the confirmation message should still
appear)
- I still see the grey screen for creating account (very minor
and separate bug as it is not front-facing)
Date: 2009-05-26 21:55
Sender: Jeff Rickard

Leif, this is all yours, let me know what you find.
Date: 2009-05-26 21:42
Sender: Jeff Rickard

Committed in revision 3109
Date: 2009-05-08 02:28
Sender: Leif Baradoy

Hi Jeff,
I'm assigning this feature over to you as well, although it sits
lower on the priority list than #25531 (Allow campaign creators
to set a registration fee for campaigns.)

Date: 2009-04-07 23:05
Sender: Leif Baradoy

Sorry.  This will take 20 hours.  I misread the
estimate--severely.
Date: 2009-04-07 22:52
Sender: Leif Baradoy

Note: a campaign admin can add or remove project to the campaign
up until the campaign is complete.

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
assigned_tojrickard2009-05-29 21:48jrickard
assigned_tobaradoy2009-05-29 18:03baradoy
assigned_tojrickard2009-05-29 15:17jrickard
assigned_tobaradoy2009-05-29 06:32baradoy
assigned_tojrickard2009-05-28 23:41jrickard
assigned_tobaradoy2009-05-26 22:21baradoy
assigned_tojrickard2009-05-26 21:55jrickard
assigned_tojoegaudet2009-05-08 02:28baradoy