Skip to content

Fix duplicate check not working across note types#830

Merged
jamesmaa merged 3 commits intoyomidevs:masterfrom
Kuuuube:fix-dupe-check
Apr 16, 2024
Merged

Fix duplicate check not working across note types#830
jamesmaa merged 3 commits intoyomidevs:masterfrom
Kuuuube:fix-dupe-check

Conversation

@Kuuuube
Copy link
Copy Markdown
Member

@Kuuuube Kuuuube commented Apr 16, 2024

Fixes #788

It isn't possible to get the noteId for a duplicate note of a different note type without specifically searching exact sort field of every note type. A filler noteId that cannot exist in anki (-1) can be used to allow the dupe's identity to not be lost.

@Kuuuube Kuuuube requested a review from a team as a code owner April 16, 2024 16:05
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 16, 2024

✔️ No visual differences introduced by this PR.

View Playwright Report (note: open the "playwright-report" artifact)

jamesmaa
jamesmaa previously approved these changes Apr 16, 2024
@jamesmaa jamesmaa enabled auto-merge April 16, 2024 16:25
@jamesmaa jamesmaa added this pull request to the merge queue Apr 16, 2024
Merged via the queue into yomidevs:master with commit 669d277 Apr 16, 2024
@Kuuuube Kuuuube added kind/bug The issue or PR is regarding a bug area/anki The issue or PR is related to Anki integration labels Apr 16, 2024
github-merge-queue bot pushed a commit that referenced this pull request Apr 16, 2024
* added Old Irish (SGA)

* Merge Yomitan Updates (#1)

* fix (#811)

* Add scanOnTouchTap and improve touch scanning defaults (#791)

* Add scanOnTouchTap

* Update version to 30

* Cleanup if statement

* log anki error when hiding button (#821)

* Fix noteInfos not getting assigned (#819)

* improve term sorting (#806)

* improve term sorting

* edge case

* fix: add missing handlebar entry (#823)

* fix: add missing handlebar entry

* fix: add new handlebar to tests

* Revert to using canAddNotes (#827)

Fix #818

* Remove unused canAdd (#824)

Co-authored-by: James Maa <jamesmaa@Jamess-MacBook-Pro.local>

* Fix duplicate check not working across note types (#830)

* Fix duplicate check not working across note types

* Add invalidNoteId

---------

Co-authored-by: James Maa <jmaa@berkeley.edu>

---------

Co-authored-by: StefanVukovic99 <stefanvukovic44@gmail.com>
Co-authored-by: Kuuuube <61125188+Kuuuube@users.noreply.github.com>
Co-authored-by: m-edlund <me@fwegmann.com>
Co-authored-by: Eloy Robillard <eloy.robillard@gmail.com>
Co-authored-by: James Maa <jmaa@berkeley.edu>
Co-authored-by: James Maa <jamesmaa@Jamess-MacBook-Pro.local>

* Revert "Merge Yomitan Updates (#1)"

This reverts commit 748dc22.

* Fix Static Analysis Error

* Fix eslint erro

---------

Co-authored-by: martholomew <martholomew@users.noreply.github.com>
Co-authored-by: StefanVukovic99 <stefanvukovic44@gmail.com>
Co-authored-by: Kuuuube <61125188+Kuuuube@users.noreply.github.com>
Co-authored-by: m-edlund <me@fwegmann.com>
Co-authored-by: Eloy Robillard <eloy.robillard@gmail.com>
Co-authored-by: James Maa <jmaa@berkeley.edu>
Co-authored-by: James Maa <jamesmaa@Jamess-MacBook-Pro.local>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/anki The issue or PR is related to Anki integration kind/bug The issue or PR is regarding a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplicate Card Checking NOT working in 2c5af21 compared to 24.01.14.0 (latest release chrome-dev version)

2 participants