chaoss/grimoirelab

SortingHat option "matching" is being ignored

canasdiaz opened this issue · 2 comments

I'm running grimoirelab:0.7.1 from the docker image, and the matching algorithms I set up for sortinghat are not used. No matter what I type in the options, the task task_identities uses "email" and "username".

I've tried the following options:

matching = [email,name,username]

and

matching = [name]

With both, I got the same result:

grimoire@115b8eb9db82:~/logs$ tail -f all.log |grep identities
2023-02-01 21:39:48,126 - sirmordred.task_identities - INFO - [sortinghat] End of loading identities from file /tmp/tmpitkdnwxb
2023-02-01 21:40:55,689 - sirmordred.task_identities - INFO - [sortinghat] Unifying identities using algorithm email
2023-02-01 21:40:56,461 - sirmordred.task_identities - INFO - [sortinghat] Unifying identities using algorithm username
2023-02-01 21:40:57,126 - sirmordred.task_identities - INFO - [sortinghat] Executing affiliate

@canasdiaz the grimoirelab/grimoirelab:0.7.1 is still using the sortinghat 0.7.x and this version the matching criteria are email-name, email, github, and username. If you want to use the name algorithm try adding email-name.

The new release of grimoirleab 0.8.x will use the new sortinghat 0.8.x and in this version the name criteria is included (email, name, and username)

Could you try again with matching = [emai-name,username]?

Here are my results:

  • matching = [email-name, username]
2023-02-02 09:47:56,822 - sirmordred.task_identities - INFO - [sortinghat] Unifying identities using algorithm email-name
2023-02-02 09:48:42,633 - sirmordred.task_identities - INFO - [sortinghat] Unifying identities using algorithm username
  • matching = [email, username]
2023-02-02 09:54:00,847 - sirmordred.task_identities - INFO - [sortinghat] Unifying identities using algorithm email
2023-02-02 09:54:16,141 - sirmordred.task_identities - INFO - [sortinghat] Unifying identities using algorithm username

Thanks @zhquan. I'll try it out again and let you know.