Go to file
Damien Elmes b73cb15888 Take another approach to dealing with conflicting flattened keys
The approach in #2542 unfortunately introduced a regression, as whilst
it ensured that duplicate keys are removed when downgrading, it no longer
prevented the duplicates from being removed when converting to a legacy
Schema11 object. This resulted in things like backend.get_notetype_legacy()
returning duplicate keys, and could break syncing:

https://forums.ankiweb.net/t/windows-desktop-sync-error/33128

As syncing and schema11 object usage is quite common compared to downgrading,
the extra Value deserialization seemed a bit expensive, so I've switched
back to explicitly removing the problem keys. To ensure we don't forget to
add new keys in the future, I've added some new tests that should alert us
whenever a newly-added key is missing from the reserved list.
2023-08-15 11:25:53 +10:00
.buildkite Update n2 for Windows console fix; recommend it on Windows as well 2023-07-02 19:03:37 +10:00
.cargo Fix i18n build script not responding to env var changes 2023-07-04 17:17:41 +10:00
.config Drop workspace-hack in favor of workspace deps 2023-06-23 17:41:31 +10:00
.github/ISSUE_TEMPLATE Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
.vscode.dist Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
build Improve presentation of importing results (#2568) 2023-08-02 20:29:44 +10:00
cargo Extract inline images as part of media check 2023-07-31 12:23:16 +10:00
docs [Development] Specify extra directory as a designated ignored folder (#2593) 2023-07-27 22:27:07 +10:00
ftl Improve presentation of importing results (#2568) 2023-08-02 20:29:44 +10:00
proto Improve presentation of importing results (#2568) 2023-08-02 20:29:44 +10:00
pylib Improve presentation of importing results (#2568) 2023-08-02 20:29:44 +10:00
python Update certifi for minor bug fix 2023-07-26 20:41:19 +10:00
qt Fix crash caused by uninitialized self._reps in class Reviewer (#2603) 2023-08-07 15:10:47 +10:00
rslib Take another approach to dealing with conflicting flattened keys 2023-08-15 11:25:53 +10:00
sass Add scss formatter 2023-07-03 09:44:38 +10:00
tools [Development] Specify extra directory as a designated ignored folder (#2593) 2023-07-27 22:27:07 +10:00
ts Improve presentation of importing results (#2568) 2023-08-02 20:29:44 +10:00
.deny.toml Update Rust deps (#2332) 2023-01-18 22:24:29 +10:00
.dprint.json [Development] Specify extra directory as a designated ignored folder (#2593) 2023-07-27 22:27:07 +10:00
.eslintrc.js [Development] Specify extra directory as a designated ignored folder (#2593) 2023-07-27 22:27:07 +10:00
.gitattributes try again to improve GitHub's language stats 2021-01-20 13:20:45 +10:00
.gitignore [Development] Specify extra directory as a designated ignored folder (#2593) 2023-07-27 22:27:07 +10:00
.gitmodules Exclude PyOxidizer from recursive checkout 2023-07-02 18:22:44 +10:00
.isort.cfg Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
.mypy.ini Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
.pylintrc Add ability to restore a notetype to its original configuration (#2472) 2023-04-18 14:07:51 +10:00
.rustfmt-empty.toml Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
.rustfmt.toml Move ascii_percent_encoding into a separate repo 2023-04-12 08:45:23 +10:00
.version Bump version 2023-06-05 09:20:00 +10:00
Cargo.lock Take another approach to dealing with conflicting flattened keys 2023-08-15 11:25:53 +10:00
Cargo.toml Extract inline images as part of media check 2023-07-31 12:23:16 +10:00
check Add a shortcut to auto-format before running checks 2023-07-02 09:59:05 +10:00
CONTRIBUTORS Fix crash caused by uninitialized self._reps in class Reviewer (#2603) 2023-08-07 15:10:47 +10:00
LICENSE move aqt_data into source folder; implement wheel building 2020-11-04 12:14:03 +10:00
ninja Switch runner to release build 2023-07-02 10:31:07 +10:00
package.json Update to Svelte 4, and update most other JS deps (#2565) 2023-07-01 16:21:53 +10:00
pkgkey.asc add public key for release signing 2018-09-18 10:40:45 +10:00
README.md Add link to website in README 2023-05-31 13:49:19 +10:00
run Use 127.0.0.1 instead of localhost 2023-06-27 16:45:31 +10:00
run.bat Fix some Windows path issues 2023-07-02 18:22:44 +10:00
rust-toolchain.toml Update to Rust 1.70 2023-06-07 14:52:31 +10:00
SECURITY.md add SECURITY.md 2021-09-22 22:55:19 +10:00
yarn.lock Bump semver from 6.3.0 to 6.3.1 (#2572) 2023-07-12 21:16:10 +10:00

Anki

Build status

This repo contains the source code for the computer version of Anki.

If you'd like to try development builds of Anki but don't feel comfortable building the code, please see https://betas.ankiweb.net/

For more information on building, please see Development.