KamWithK / AnkiconnectAndroid

Unofficial Ankiconnect for Android (i.e. for Yomichan)
GNU General Public License v3.0
115 stars 14 forks source link

Duplicate checking does not match ankiconnect #61

Closed Kuuuube closed 2 months ago

Kuuuube commented 5 months ago

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

drakargx commented 5 months ago

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 commented 5 months ago

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.

KamWithK commented 5 months ago

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

drakargx commented 5 months ago

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

KamWithK commented 5 months ago

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

akacoda1 commented 4 months ago

Bump!

KamWithK commented 2 months ago

60 is now merged which should fix this issue

If it does not then please reopen and comment saying so