Skip to content

NF: Document notes.proto#4667

Open
Arthur-Milchior wants to merge 1 commit intoankitects:mainfrom
Arthur-Milchior:doc
Open

NF: Document notes.proto#4667
Arthur-Milchior wants to merge 1 commit intoankitects:mainfrom
Arthur-Milchior:doc

Conversation

@Arthur-Milchior
Copy link
Copy Markdown
Contributor

I find that it's not clear what all fields in notes mean. And more importantly, what part of note may be edited while it's sent from front-end to back-end to be saved. While looking at this file I decided to go over the whole file, and, looking at the source code, documents exactly what may be relevant when using the method of the NoteService.

If anki accepts documentation, I'd be glad to do similar works for other proto types and files.

I find that it's not clear what all fields in notes mean. And more
importantly, what part of `note` may be edited while it's sent from
front-end to back-end to be saved. While looking at this file I
decided to go over the whole file, and, looking at the source code,
documents exactly what may be relevant when using the method of the NoteService.

If anki accepts documentation, I'd be glad to do similar works for
other proto types and files.
@abdnh
Copy link
Copy Markdown
Collaborator

abdnh commented Apr 10, 2026

I prefer to document the Rust services instead, especially since we're planning to publish the crates soon: #4636

@andrewsanchez @fernandolins might have thoughts on this.

@fernandolins
Copy link
Copy Markdown
Contributor

Thanks for documenting, but we would rather to document the rust code piece instead.

I agree with @abdnh: we’re moving docs elsewhere, but in case of document proto code I’d keep comments short.

One question: the NoteFieldsCheckResponse.State diff looks like it reassigns enum values. I didn't get why you changed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants