-
Notifications
You must be signed in to change notification settings - Fork 37
fix: expose contributor id to prevent identity split #1512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fix: expose contributor id to prevent identity split #1512
Conversation
Signed-off-by: Ankitkr-ak007 <[email protected]>
f376533 to
0a700b5
Compare
|
Hey @Ankitkr-ak007 thanks for your interest in contributing. |
|
Hey, |
I have add my gpg key now can you please merge it |
|
@Ankitkr-ak007 please fix the conflicts first, we'll merge after. Thanks. |
Can You help me with this as I'm not able to understand and fix the conflict. Please help me out. |
…nkitkr-ak007/insights into fix/contributor-identity-split
af16b82 to
e0b2dc9
Compare
Signed-off-by: Ankitkr-ak007 <[email protected]>
e0b2dc9 to
2fc2c82
Compare
|
Please Check these changes as i think it should be done. |
|
Hey, before merging can you just fix lint errors. |
Signed-off-by: Ankit Kumar <[email protected]>
7239243 to
2a31123
Compare
|
Lint, format and typescript check still failing |
|
Let me do it again |
Signed-off-by: Efren Lim <[email protected]> Signed-off-by: Ankit Kumar <[email protected]>
Signed-off-by: Gašper Grom <[email protected]> Signed-off-by: Ankit Kumar <[email protected]>
Signed-off-by: Ankit Kumar <[email protected]>
063a967 to
ec62ba9
Compare
|
@gaspergrom I have again made some changes. Thank for your continuous Support Sir. |
Signed-off-by: Ankit Kumar <[email protected]>
|
Commits must have verified signatures. |
gaspergrom
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewing this PR - posting individual comments
| expect(result).toEqual(expectedResult); | ||
| }); | ||
|
|
||
| test('should aggregate contributors with the same display name', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this test
| data: dataResponse.data.map( | ||
| (item): Contributor => ({ | ||
| // Aggregate data by displayName | ||
| const aggregatedData = new Map<string, Contributor>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert code in this file
Description
Exposed the unique
idfield in the contributors data source and mapped it to the frontend interface.Motivation (Fixes)
This resolves the issue where a single contributor was being split into multiple entries on the leaderboard. By using the unique
idfrom the backend, we ensure stable identity tracking regardless of name or email variations.