AnkiconnectAndroid icon indicating copy to clipboard operation
AnkiconnectAndroid copied to clipboard

Duplicate checking does not match ankiconnect

Open Kuuuube opened this issue 1 year ago • 6 comments

Currently, yomitan's duplicate checking is running into some issues due to inconsistencies between ankiconnect and ankiconnect android.

This is not related to previous yomitan issues due to ankiconnect android missing parts of ankiconnect's api but instead how it returns data.

Related yomitan issue https://github.com/themoeway/yomitan/issues/835

Kuuuube avatar Apr 17 '24 17:04 Kuuuube

Believe this is due to ankiconnect android's implementation of canAddNotes, it doesn't check for if "allowDuplicates" is true or false and just always assumes it's set to false. When https://github.com/themoeway/yomitan/issues/818 was approved, the duplicate add button was implemented by comparing the list of notes that can be added with and without allowing duplicates, so Ankiconnect android will just produce equal lists (if a note is in both lists, it is marked as "allowed, but not a duplicate").

Will need to respect the allowDuplicate flag, perhaps it is also worth supporting the full list of options too.

drakargx avatar Apr 18 '24 01:04 drakargx

For now I believe I've resolved this issue in this branch https://github.com/drakargx/AnkiconnectAndroid/releases/tag/prelims

Needs further testing and definitely needs code changes but I won't be able to take care of anything else until 4/21 at earliest.

drakargx avatar Apr 19 '24 06:04 drakargx

For now I believe I've resolved this issue in this branch https://github.com/drakargx/AnkiconnectAndroid/releases/tag/prelims

Needs further testing and definitely needs code changes but I won't be able to take care of anything else until 4/21 at earliest.

If that's the case #60 when it is ready should resolve this so we'll wait on you, no hurry

KamWithK avatar Apr 20 '24 02:04 KamWithK

For now I believe I've resolved this issue in this branch https://github.com/drakargx/AnkiconnectAndroid/releases/tag/prelims Needs further testing and definitely needs code changes but I won't be able to take care of anything else until 4/21 at earliest.

If that's the case #60 when it is ready should resolve this so we'll wait on you, no hurry

https://github.com/KamWithK/AnkiconnectAndroid/pull/60 now has the changes implemented

drakargx avatar Apr 23 '24 04:04 drakargx

For now I believe I've resolved this issue in this branch https://github.com/drakargx/AnkiconnectAndroid/releases/tag/prelims Needs further testing and definitely needs code changes but I won't be able to take care of anything else until 4/21 at earliest.

If that's the case #60 when it is ready should resolve this so we'll wait on you, no hurry

#60 now has the changes implemented

I'll take a look today or tomorrow

KamWithK avatar Apr 27 '24 05:04 KamWithK

Bump!

akacoda1 avatar May 08 '24 03:05 akacoda1

#60 is now merged which should fix this issue

If it does not then please reopen and comment saying so

KamWithK avatar Jul 27 '24 13:07 KamWithK