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

NF: replace mid by noteTypeId #17771

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Arthur-Milchior
Copy link
Member

No description provided.

Comment on lines +83 to +84
noteTypeId = note.notetypeId
notetype = col.notetypes.get(noteTypeId)!! // not in libAnki
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does upstream do here? [in this class]

* @param key the first field of a note
* @return a list of duplicate notes
*/
public fun findDuplicateNotes(
mid: Long,
noteTypeId: Long,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Renaming a parameter in Kotlin is a breaking API change

@@ -202,15 +202,15 @@ public class AddContentApi(

/**
* Find all existing notes in the collection which have mid and a duplicate key
* @param mid model id
* @param noteTypeId model id
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explanation was not updated

@@ -202,15 +202,15 @@ public class AddContentApi(

/**
* Find all existing notes in the collection which have mid and a duplicate key
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line was not updated

@@ -495,10 +495,10 @@ public class AddContentApi(

/**
* Get the name of the model which has given ID
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of 'model' in this file. Not sure if intentional

@lukstbit lukstbit added the Needs Author Reply Waiting for a reply from the original author label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Author Reply Waiting for a reply from the original author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants