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

prepopulate profiles with actual tips #489

Closed
chadwhitacre opened this issue Jan 17, 2013 · 12 comments
Closed

prepopulate profiles with actual tips #489

chadwhitacre opened this issue Jan 17, 2013 · 12 comments

Comments

@chadwhitacre
Copy link
Contributor

Right now we make suggestions for who to tip. On the phone with @MikeFair we had the idea of prepopulating new profiles with actual tips. We should draw these from the new user's social network and then prompt for a credit card.

@chadwhitacre
Copy link
Contributor Author

+1 from @wesgarrison:

Signed up => took me to my profile instead of "fund your account now" page

https://twitter.com/wesgarrison/status/301721004345016320

@wesgarrison
Copy link

Aye.

chadwhitacre added a commit that referenced this issue May 29, 2013
Let's see if this tightens up our funnel at all.
@chadwhitacre
Copy link
Contributor Author

Wow! Early returns show that this is, I think, a failure. The first five people to get this experience have immediately set all tips to zero!

@DamosDaze
Copy link

What does this mean exactly?


Damien Michael Nichols
[email protected]
301.485.9232

Sent from my HAL 9000, Dave.
On May 29, 2013 6:44 PM, "Chad Whitacre" [email protected] wrote:

Wow! Early returns show that this is, I think, a failure. The first five
people to get this experience have immediately set all tips to zero!


Reply to this email directly or view it on GitHubhttps://github.com//issues/489#issuecomment-18651162
.

@dmitshur
Copy link
Contributor

Maybe suggestions would work better? E.g., Twitter has suggestions for "Who to follow" but doesn't make you follow anyone on sign-up (as far as I know; I haven't checked recently).

Personally, I wouldn't want anything to be pre-populated for me at start, especially when money's involved. But one's personality plays a large role here, and I'm not very representative of general public.

Edit: I see now that suggestions is where you were coming from.

@chadwhitacre
Copy link
Contributor Author

@shurcooL This sets up actual tips, but of course no money moves until you add a credit card or receive gifts from others.

@DamosDaze
Copy link

You mean with this feature the platform chooses people at random for new
members to give to and automatically sets up gifts?


Damien Michael Nichols
[email protected]
301.485.9232

Sent from my HAL 9000, Dave.
On May 30, 2013 9:55 AM, "Chad Whitacre" [email protected] wrote:

@shurcooL https://github.com/shurcooL This sets up actual tips, but of
course no money moves until you add a credit card or receive gifts from
others.


Reply to this email directly or view it on GitHubhttps://github.com//issues/489#issuecomment-18681502
.

@chadwhitacre
Copy link
Contributor Author

@DamosDaze
Copy link

Yikes. I can see why everyone set theirs to zero. A discovery engine or
some way of suggesting tippees by interest would be totally appropriate and
helpful but prepopulation is probs not the way to go.


Damien Michael Nichols
[email protected]
301.485.9232

Sent from my HAL 9000, Dave.
On May 30, 2013 10:07 AM, "Chad Whitacre" [email protected] wrote:

@DamosDaze https://github.com/DamosDaze Yup. Full algorithm is
described here:

https://github.com/gittip/www.gittip.com/blob/4ed7902cb76d17353541381d790a1ba8b7997a10/gittip/participant.py#L154


Reply to this email directly or view it on GitHubhttps://github.com//issues/489#issuecomment-18682244
.

@joealcorn
Copy link
Contributor

FYI, this causes issues when the Gittip/open org user doesn't exist, which will be 99% of people in dev envs

Traceback (most recent call last):
  File "/home/joe/git/www.gittip.com/env/local/lib/python2.7/site-packages/aspen/website.py", line 66, in handle_safely
    response = self.handle(request)
  File "/home/joe/git/www.gittip.com/env/local/lib/python2.7/site-packages/aspen/website.py", line 99, in handle
    response = request.resource.respond(request)
  File "/home/joe/git/www.gittip.com/env/local/lib/python2.7/site-packages/aspen/resources/dynamic_resource.py", line 47, in respond
    exec self.pages[1] in context
  File "/home/joe/git/www.gittip.com/www/on/twitter/associate", line 119, in 
    user.set_up_initial_tips(then)
  File "/home/joe/git/www.gittip.com/gittip/models/participant.py", line 409, in set_up_initial_tips
    return OldParticipant(self.username).set_up_initial_tips(then)
  File "/home/joe/git/www.gittip.com/gittip/participant.py", line 90, in wrapped
    return func(self, *a, **kw)
  File "/home/joe/git/www.gittip.com/gittip/participant.py", line 236, in set_up_initial_tips
    amount, first_time_tipper = self.set_tip_to(tippee, amount)
  File "/home/joe/git/www.gittip.com/gittip/participant.py", line 90, in wrapped
    return func(self, *a, **kw)
  File "/home/joe/git/www.gittip.com/gittip/participant.py", line 356, in set_tip_to
    gittip.db.fetchone(NEW_TIP, args)['first_time_tipper']
  File "/home/joe/git/www.gittip.com/gittip/postgres.py", line 102, in fetchone
    with self.get_cursor(*a, **kw) as cursor:
  File "/home/joe/git/www.gittip.com/gittip/postgres.py", line 229, in __enter__
    cursor.execute(*self.a, **self.kw)
  File "/home/joe/git/www.gittip.com/env/local/lib/python2.7/site-packages/psycopg2/extras.py", line 222, in execute
    return _cursor.execute(self, query, vars)
IntegrityError: insert or update on table "tips" violates foreign key constraint "tips_tippee_fkey"
DETAIL:  Key (tippee)=(Gittip) is not present in table "participants".

chadwhitacre added a commit that referenced this issue Jun 1, 2013
This is causing difficulties for new developers and isn't getting us
more credit cards. It's too desparate and forceful. That's not the
Gittip way.
@chadwhitacre
Copy link
Contributor Author

@buttscicles I backed this out. Can you confirm that dev install isn't horked anymore on account of this?

@joealcorn
Copy link
Contributor

Yep, it works.

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

No branches or pull requests

5 participants