anki/rslib
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
..
benches Update Rust and Python deps (#2567) 2023-07-01 18:26:43 +10:00
i18n Stop including Qt translations when EXTRA_FTL_ROOT provided 2023-07-04 18:26:27 +10:00
io Add updated script for transforming ftl text 2023-07-06 22:27:09 +10:00
linkchecker Drop workspace-hack in favor of workspace deps 2023-06-23 17:41:31 +10:00
process Drop workspace-hack in favor of workspace deps 2023-06-23 17:41:31 +10:00
proto Move .py i18n method generation to Rust 2023-07-03 15:58:46 +10:00
proto_gen Improve presentation of importing results (#2568) 2023-08-02 20:29:44 +10:00
src Take another approach to dealing with conflicting flattened keys 2023-08-15 11:25:53 +10:00
sync Support creating a standalone sync server 2023-07-02 18:22:44 +10:00
tests/support move linkchecker into separate crate 2021-12-20 17:27:43 +10:00
.gitignore initial Bazel conversion 2020-11-01 14:26:58 +10:00
bench.sh Update Rust and Python deps (#2567) 2023-07-01 18:26:43 +10:00
build.rs Fix building outside workspace 2023-07-02 18:22:44 +10:00
Cargo.toml Take another approach to dealing with conflicting flattened keys 2023-08-15 11:25:53 +10:00
README.md Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
rust_interface.rs Improve presentation of importing results (#2568) 2023-08-02 20:29:44 +10:00

Anki's Rust code.