PPL

Allow owners to merge contacts

Bug #688357 reported by Brad Phillips
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PPL
Fix Released
Critical
Bassel Safadi

Bug Description

As an owner, I want a to be able to identify and merge contacts.

Bassel Safadi (bassel)
Changed in ppl:
importance: Undecided → High
assignee: nobody → Bassel Safadi (bassel)
status: New → In Progress
Revision history for this message
Bassel Safadi (bassel) wrote :

partly implemented on http://pple.aikilab.com/users/merge

so current merge, merges emails based on full names, because I just found out that the services are moved outside aiki_users to separate table which broke the merge. I'll try to: 1- understand how the new system work, 2- update the merge function to handle information in ppl_service_users

are there any other tables that store user data beside aiki_users and ppl_service_users?

Revision history for this message
rejon (rejon) wrote : Re: [Bug 688357] Re: Allow owners to merge contacts

Ok, just to make sure, merge should not delete old data, and, it should also
allow for history on this and also if there is a conflict, require the owner
to review.

These should all emit notifications to the owner as well.

Jon

On Tue, Dec 14, 2010 at 12:37 PM, Bassel Safadi <email address hidden> wrote:

> partly implemented on http://pple.aikilab.com/users/merge
>
> so current merge, merges emails based on full names, because I just
> found out that the services are moved outside aiki_users to separate
> table which broke the merge. I'll try to: 1- understand how the new
> system work, 2- update the merge function to handle information in
> ppl_service_users
>
> are there any other tables that store user data beside aiki_users and
> ppl_service_users?
>
> --
> You received this bug notification because you are a member of PPL
> Developers, which is subscribed to PPL.
> https://bugs.launchpad.net/bugs/688357
>
> Title:
> Allow owners to merge contacts
>

--
Jon Phillips
http://rejon.org/
http://fabricatorz.com/
chat/skype: kidproto | irc: rejon
+1.415.830.3884 (sf/global)
+86.187.1003.9974 (china)

+65.8330.5807 (singapore)

Revision history for this message
Christopher Adams (christopheradams) wrote :

Yes just those two tables contain the main user data. Each record in
ppl_services_users is owned by a user in aiki_users who is in turn owned by
an Owner. In the table ppl_portraits the field subject_id is also a pointer
to a user id in aiki_portraits.

On Dec 15, 2010 4:45 AM, "Bassel Safadi" <email address hidden> wrote:

partly implemented on http://pple.aikilab.com/users/merge

so current merge, merges emails based on full names, because I just
found out that the services are moved outside aiki_users to separate
table which broke the merge. I'll try to: 1- understand how the new
system work, 2- update the merge function to handle information in
ppl_service_users

are there any other tables that store user data beside aiki_users and
ppl_service_users?

--
You received this bug notification because you are a member of PPL
Developers, which is subscri...
 In Progress

Bug description:
As an owner, I want a to be able to identify and merge contacts.

Revision history for this message
rejon (rejon) wrote :

bassel, did you fix this yet?

rejon (rejon)
Changed in ppl:
importance: High → Critical
Revision history for this message
Christopher Adams (christopheradams) wrote :

Yes, still waiting on this. Let me know Bassel if you have any questions
about the database design and how the user info is stored (for users,
services and photos). But it's really all there if you look at the tables.

On Tue, Dec 14, 2010 at 11:55 PM, Christopher Adams <email address hidden>wrote:

> Yes just those two tables contain the main user data. Each record in
> ppl_services_users is owned by a user in aiki_users who is in turn owned by
> an Owner. In the table ppl_portraits the field subject_id is also a pointer
> to a user id in aiki_portraits.
>
> On Dec 15, 2010 4:45 AM, "Bassel Safadi" <email address hidden> wrote:
>
> partly implemented on http://pple.aikilab.com/users/merge
>
> so current merge, merges emails based on full names, because I just
> found out that the services are moved outside aiki_users to separate
> table which broke the merge. I'll try to: 1- understand how the new
> system work, 2- update the merge function to handle information in
> ppl_service_users
>
> are there any other tables that store user data beside aiki_users and
> ppl_service_users?
>
>
> --
> You received this bug notification because you are a member of PPL
> Developers, which is subscri...
>
> In Progress
>
>
> Bug description:
> As an owner, I want a to be able to identify and merge contacts.
>
>

Revision history for this message
Christopher Adams (christopheradams) wrote :

I tested this. I merged about a dozen contacts. It doesn't work for me.

For example, after I import all my contacts, I have two Bassel Safadis.

One Bassel has a link to a Twitter account, the other has a link to a Flickr account.

After I merge, I should see one Bassel Safadi with both a Flickr account and Twitter account.

In fact, after I click Merge and see a success message, I can only find one Bassel Safadi with a Flickr account.

I can't find the other Bassel with a Twitter account. I do not see the Merge working.

Revision history for this message
Brad Phillips (brad-bradphillips) wrote :

I also experienced some issue with the merge. In my case, a contact had a Gmail & Twitter account. After merge (which did succeed in eliminated the same contact displaying twice in my people list), I only see an icon that links to their twitter page. The e-mail icon for the gmail contact is gone.

Revision history for this message
rejon (rejon) wrote :

same. same. same. I tested on <email address hidden> account, on the rejon account if you want to test....ugh....please next time this is fixed, test the fix.

rejon (rejon)
Changed in ppl:
assignee: Bassel Safadi (bassel) → Christopher Adams (christopheradams)
Revision history for this message
Christopher Adams (christopheradams) wrote :

Starting to sketch out what this should look like: http://pple.aikilab.com/users/merge_next

Revision history for this message
Christopher Adams (christopheradams) wrote :

There are some additional cases that have to be considered in the Merge:

If the Owner has completed the Find Portraits task before the Merge, then each of the to-be-merged contacts will have the same pictures in ppl_portraits.

So, when a contact is Merged, it will be necessary to delete the duplicate entries in ppl_portaits.

If a record in aiki_users is deleted because it was merged, then all records in ppl_portraits should be deleted where subject_id = the deleted aiki_user.userid.

Likewise, any existing stories with that belong to the merged contacts must have their userid changed to the one Merged contact.

Revision history for this message
Bassel Safadi (bassel) wrote :

working on it right now

Changed in ppl:
assignee: Christopher Adams (christopheradams) → Bassel Safadi (bassel)
Revision history for this message
Bassel Safadi (bassel) wrote :

ok made some progress on implementing your design, where is a good place to have the check box for each contact?

http://pple.aikilab.com/users/merge_next doesn't have check boxs

Revision history for this message
Christopher Adams (christopheradams) wrote :

I think each service item should have a check box on the right side. If the
merged user has three services, the owner should be able to select none,
one, two, or three.

On Feb 8, 2011 2:01 AM, "Bassel Safadi" <email address hidden> wrote:

ok made some progress on implementing your design, where is a good place
to have the check box for each contact?

http://pple.aikilab.com/users/merge_next doesn't have check boxs

--
You received this bug notification because you are a member of PPL
Developers, which is subscri...
 In Progress

Bug description:
As an owner, I want a to be able to identify and merge contacts.

Revision history for this message
Bassel Safadi (bassel) wrote :

ok I finished styling the merge page as in Christopher design..
now working on the functionality of merging stories, photos and services

Revision history for this message
Bassel Safadi (bassel) wrote :

update: still working on this. it's more complicated than it looks.
update: added an index to full_name

Revision history for this message
Bassel Safadi (bassel) wrote :

ok update is working now when there are two services. it's still deleting the third service.. working to fix

Revision history for this message
rejon (rejon) wrote :

cool

On Thu, Feb 10, 2011 at 6:34 PM, Bassel Safadi <email address hidden> wrote:
> ok update is working now when there are two services. it's still
> deleting the third service.. working to fix
>
> --
> You received this bug notification because you are a member of PPL
> Developers, which is subscribed to PPL.
> https://bugs.launchpad.net/bugs/688357
>
> Title:
>  Allow owners to merge contacts
>

--
Jon Phillips
http://rejon.org/ | http://fabricatorz.com/
chat/skype: kidproto | irc: rejon
+1.415.830.3884 (global) | +1-510-499-0894 (sf)

Revision history for this message
Bassel Safadi (bassel) wrote :

ok this works now, still have to add stories and photos merge

Revision history for this message
Bassel Safadi (bassel) wrote :

Merge works now!

Changed in ppl:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.