Given that party_relationship defines the relationship between some parties it would be interesting to use this information to selectively sort the parties according to their proximity.
The idea is to use the context to trigger this functionnality by specifying to which party the relationship proximity should be computed.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Do you think it is possible to make it more generic?
For example, it could be interesting to use a concept of distance between two parties. And we could apply different factor to each relation type.
On 2016-09-07 11:46, Nicolas Évrard wrote:
> * Sergi Almacellas Abellana [2016-09-07 10:04 +0200]:
> >I agree that we should be able to apply a factor on each relation
> >type, as different relations may have different proximity meanings.
>
> We discussed it with Cédric today and we're thinking about adding
> relationship groups and use those to get the factor to apply.
>
> I think it should be a M2M field. The developer will be able to
> specify in the context the weight to give to each group.
I do not think we need to be able to use many group for one search.
So I think the group will only be there to filter valid relation type
for the computation of the distance.
* Cédric Krier [2016-09-07 12:35 +0200]:
>
>Cédric Krier <cedric.krier@b2ck.com> added the comment:
>
>On 2016-09-07 11:46, Nicolas Évrard wrote:
>> * Sergi Almacellas Abellana [2016-09-07 10:04 +0200]:
>> >I agree that we should be able to apply a factor on each relation
>> >type, as different relations may have different proximity meanings.
>>
>> We discussed it with Cédric today and we're thinking about adding
>> relationship groups and use those to get the factor to apply.
>>
>> I think it should be a M2M field. The developer will be able to
>> specify in the context the weight to give to each group.
>
>I do not think we need to be able to use many group for one search.
>So I think the group will only be there to filter valid relation type
>for the computation of the distance.
I have updated the review. I also changed the group by a "usages" MultiSelection field as now we have such field. I think it is better because the usage keys will be defined by other modules so it will be simpler to use a key string than fetching the XML id.
Cédric Krieradded 1 deleted label and removed 1 deleted label