guaq/sikteeri — comment on commit 09473c8538af97401f1b18724816fa09d0220f49
File:  line 0
By guaq:

On Sun, Nov 13, 2011 at 02:45:49AM -0800, Joonas Kuorilehto wrote:
--snip--
> We need to find a list of duplicates for that application. Thinking
> about the user experience, should we list the reason why we suspect
> this is a duplicate? What format we need for the listing? It certainly
> affects the implementation strongly. The reviewing should be quick so
> the information needs to be short and relevant.

When a user is being added to the cart, the system should check to see if
there are duplicates. If there are duplicates, the duplicates should be
listed with reasons as to why they might be duplicates.

One way is to return a list of tuples with duplicate objects and the reasons,
for example:

####

duplicates = []

# here be procedural code that finds duplicates and then does:
duplicates.append((duplicate, _("Same last and first name")))

####

And we return duplicates from find_duplicates().

>
> I guess there's no way to avoid going back to the actual users'
> wishes. Ideally I think we should get a listing of what to show and
> where.
>
> 1. Initial requirements

- System should inform if a user might be a duplicate
- Initially this could be without reasons for determining why it's a dupe
- Eventually it would be nice to tell the reason

> 2. Mockup

I'll see if I can create something for this one, take a screenshot and from
that.

> 3. Implementation

TBD