platform icon indicating copy to clipboard operation
platform copied to clipboard

Merge contacts - Unhandled Promise Rejection: Error: Not implemented

Open fondraco opened this issue 1 year ago • 5 comments

Hi,

when you want to merge contacts, and click merge contacts button, the button starts spinning and keeps on spinning forever.

Image

In the console there is this error

Image

The contact that I'm trying to merge is with GitHub, the other(destination) is not.

fondraco avatar Jul 08 '25 14:07 fondraco

Connected to Huly®: UBERF-12294

huly-github-staging avatar Jul 08 '25 14:07 huly-github-staging

I was reviewing the code from the browser and I see that when merging, the updateAllRefs method is called inside the MergePersons.svelte file: Image

For some reason, the function only throws: throw new Error("Not implemented") Image

I've checked the develop and main branches of the repository, and I see that it's actually implemented: async function updateAllRefs (client: TxOperations, sourceAccount: Person, targetAccount: Person): Promise<Tx[]> {

bernatvadell avatar Oct 14 '25 14:10 bernatvadell

I've now identified the source of the problem. The version listed in the self-hosted repository deployment is v0.7.252. I looked at the repository tag and it does contain the throw new Error(..). This is now fixed in v0.7.266.

bernatvadell avatar Oct 14 '25 14:10 bernatvadell

Merging contacts no longer fails with 'Not implemented'. The reference update used during the merge was implemented again for global accounts in #9911, and a later comment in this thread confirms it works in v0.7.266. This looks resolved, so the issue could be closed.

MichaelUray avatar Oct 17 '26 21:10 MichaelUray

@fondraco — based on the check described above, this looks resolved in the current code. Could you please close this issue if you agree? If you think it is not fixed yet, please describe what still goes wrong (steps, expected vs. actual behaviour), so it can be looked at again.

MichaelUray avatar Oct 20 '26 20:10 MichaelUray