Skip to content
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

fix(people): use unique id person property for key #1443

Conversation

YLeight
Copy link
Contributor

@YLeight YLeight commented Jan 23, 2024

Describe your changes

There are duplicated items in people data with the same owner_pubkey. These items leads to duplicating cards in the search result. Use id field as it is strongly unique.

Issue ticket number and link

Fix: #1436

Type of change

Bug fix (non-breaking change which fixes an issue)

https://jam.dev/c/051c20e9-b431-4fff-84cb-6fc20fece577

There are duplicated items in people data with the same `owner_pubkey`. These items leads to duplicating cards in the search result. Use `id` field as it is strongly unique.

Fix: stakwork#1436
@YLeight
Copy link
Contributor Author

YLeight commented Jan 23, 2024

@ecurrencyhodler this one is ready for test and review

P.S. The strange behaviour was tricky and prosaic simultaniously

@ecurrencyhodler
Copy link
Contributor

video LGTM. Let's get a code review

@elraphty elraphty merged commit 4031e97 into stakwork:master Jan 23, 2024
5 checks passed
@ecurrencyhodler
Copy link
Contributor

Tested and it works. GJ. Paid!

elraphty added a commit that referenced this pull request Jan 26, 2024
…s-from-people-search-result

fix(people): use unique `id` person property for `key`
elraphty added a commit that referenced this pull request Jan 26, 2024
…s-from-people-search-result

fix(people): use unique `id` person property for `key`
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.

People search produce side effect of duplicating cards
3 participants