Skip to content

Conversation

@evamillan
Copy link
Contributor

This PR changes the merge recommendations modal to show more than one at a time. The recommendations are ordered by individual so they can be grouped on the UI to manage them in batches. Users can select which recommendations to apply or dismiss using checkboxes. The list of recommendations is also paginated to improve the navigation.

recs-grouped

Copy link
Member

@sduenas sduenas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a good approach but I have some comments:

  • I think we should leave just one set of recommendations per individual. I understand improves the pagination but it makes it messy.
  • I found useful the old behavior to say when an individual wasn't the same of another one. How can we keep that?

query = MergeRecommendation.objects.filter(applied=None)

query = query.order_by('created_at')
query = query.order_by('individual1__mk')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should short them by the number suggestions. I think those are the ones that could be more problematic (snowballs), so we should give them more importance.

@evamillan
Copy link
Contributor Author

I updated the PR, keeping one set of recommendations per page like before, but ordering by number of recommendations and showing all of the individual's recommendations at once.

recs-modal-ordered

Copy link
Member

@sduenas sduenas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's more clear now hot to merge identities, however, I still think it's not clear what it means to click the checkbox. I understood the user needs to do two actions to say the identities are the same or not. It can't be done on the same action. That's probably a waste of time. Why don't we try to do everything on the same action?

For example, each card can have an ok or a x icons. The user can click on these to either say the individual is the same or not. After the review, the user just need to click on another button called "Confirm" that will merge the individuals set to ok. The others will be stored on the table that keeps which identities aren't the same, so they won't be suggested again. The button "ask me later" can be still available.

What do you think?

@evamillan evamillan force-pushed the order-recs branch 3 times, most recently from 7ef2253 to c34cd30 Compare September 19, 2025 15:36
@evamillan
Copy link
Contributor Author

I replaced the checkboxes with buttons to make the actions being applied clearer.

buttons

@fioddor
Copy link
Contributor

fioddor commented Sep 23, 2025

For example, each card can have an ok or a x icons. The user can click on these to either say the individual is the same or not. After the review, the user just need to click on another button called "Confirm" that will merge the individuals set to ok. The others will be stored on the table that keeps which identities aren't the same, so they won't be suggested again. The button "ask me later" can be still available.

What do you think?

The "ask me later" must apply individually. It's 3 options per recommendation.

@sduenas
Copy link
Member

sduenas commented Sep 23, 2025

For example, each card can have an ok or a x icons. The user can click on these to either say the individual is the same or not. After the review, the user just need to click on another button called "Confirm" that will merge the individuals set to ok. The others will be stored on the table that keeps which identities aren't the same, so they won't be suggested again. The button "ask me later" can be still available.
What do you think?

The "ask me later" must apply individually. It's 3 options per recommendation.

"Ask me later" is for doing nothing with any of the recommendations. If you don't want to do anything with one of them, just don't click on any of the options.

Copy link
Member

@sduenas sduenas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Orders the list of merge recommendations by the individual's
number of suggestions.

Signed-off-by: Eva Millán <[email protected]>
Recommendations belonging to the same individual
are grouped and can be managed in batches.

Signed-off-by: Eva Millán <[email protected]>
@sduenas sduenas merged commit a8fa6d8 into chaoss:main Sep 24, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants