Anki/rslib/src
RumovZ d55f080733
V3 parent limits (#1638)
* avoid repinning Rust deps by default

* add id_tree dependency

* Respect intermediate child limits in v3

* Test new behaviour of v3 counts

* Rework v3 queue building to respect parent limits

* Add missing did field to SQL query

* Fix `LimitTreeMap::is_exhausted()`

* Rework tree building logic

https://github.com/ankitects/anki/pull/1638#discussion_r798328734

* Add timer for build_queues()

* `is_exhausted()` -> `limit_reached()`

* Move context and limits into `QueueBuilder`

This allows for moving more logic into QueueBuilder, so less passing
around of arguments. Unfortunately, some tests will require additional
work to set up.

* Fix stop condition in new_cards_by_position

* Fix order gather order of new cards by deck

* Add scheduler/queue/builder/burying.rs

* Fix bad tree due to unsorted child decks

* Fix comment

* Fix `cap_new_to_review_rec()`

* Add test for new card gathering

* Always sort `child_decks()`

* Fix deck removal in `cap_new_to_review_rec()`

* Fix sibling ordering in new card gathering

* Remove limits for deck total count with children

* Add random gather order

* Remove bad sibling order handling

All routines ensure ascending order now.
Also do some other minor refactoring.

* Remove queue truncating

All routines stop now as soon as the root limit is reached.

* Move deck fetching into `QueueBuilder::new()`

* Rework new card gather and sort options

https://github.com/ankitects/anki/pull/1638#issuecomment-1032173013

* Disable new sort order choices ...

depending on set gather order.

* Use enum instead of numbers

* Ensure valid sort order setting

* Update new gather and sort order tooltips

* Warn about random insertion order with v3

* Revert "Add timer for build_queues()"

This reverts commit c9f5fc6ebe.

* Update rslib/src/storage/card/mod.rs (dae)

* minor wording tweaks to the tooltips (dae)

+ move legacy strings to bottom
+ consistent capitalization (our leech action still needs fixing,
but that will require introducing a new 'suspend card' string as the
existing one is used elsewhere as well)
2022-02-10 09:55:43 +10:00
..
backend Backend Custom Study (#1600) 2022-01-20 14:25:22 +10:00
card support updating multiple cards in one transaction/undo op 2021-08-02 16:59:02 +10:00
card_rendering New TTS/AV tag handling (#1559) 2021-12-17 19:04:42 +10:00
collection add a builder for Collection 2021-11-06 14:43:41 +10:00
config add a builder for Collection 2021-11-06 14:43:41 +10:00
deckconfig V3 parent limits (#1638) 2022-02-10 09:55:43 +10:00
decks V3 parent limits (#1638) 2022-02-10 09:55:43 +10:00
error Backend Custom Study (#1600) 2022-01-20 14:25:22 +10:00
media Garbage collect unused Fluent strings (#1482) 2021-11-12 18:19:01 +10:00
notes update to edition 2021 2021-11-18 20:51:10 +10:00
notetype Backend Custom Study (#1600) 2022-01-20 14:25:22 +10:00
revlog Cap steps (#1548) 2021-12-15 18:46:26 +10:00
scheduler V3 parent limits (#1638) 2022-02-10 09:55:43 +10:00
search Optimise searching in (all) fields (#1622) 2022-01-24 20:30:08 +10:00
stats Fix new preview card's position being interpreted as a date (#1577) 2022-01-06 19:52:54 +10:00
storage V3 parent limits (#1638) 2022-02-10 09:55:43 +10:00
sync add a builder for Collection 2021-11-06 14:43:41 +10:00
tags fix Clippy lints in Rust 1.57 2021-12-03 19:53:37 +10:00
undo update undo skipping; exclude deck/tag expand/collapse 2021-06-25 09:16:15 +10:00
adding.rs expose undoable config changes to frontend; refresh sidebar 2021-05-21 17:50:41 +10:00
backend_proto.rs Add links.proto and backend module 2021-07-22 10:05:38 +02:00
browser_table.rs New TTS/AV tag handling (#1559) 2021-12-17 19:04:42 +10:00
cloze.rs Add check for out-of-place/missing clozes 2021-06-12 10:02:21 +02:00
dbcheck.rs Skip new notetype checks when importing apkg 2021-07-28 21:46:51 +02:00
findreplace.rs Remove redundant error mapping (#1593) 2022-01-16 13:46:27 +10:00
i18n.rs drop the legacy enum from rslib, and pass separate module/message idx 2021-03-27 11:56:31 +10:00
latex.rs tidy up Rust imports 2021-04-18 18:38:54 +10:00
lib.rs New TTS/AV tag handling (#1559) 2021-12-17 19:04:42 +10:00
links.rs fix a link anchor 2021-11-14 11:44:54 +10:00
log.rs tidy up Rust imports 2021-04-18 18:38:54 +10:00
markdown.rs render deck description with markdown; strip images 2021-02-06 15:02:40 +10:00
ops.rs Backend Custom Study (#1600) 2022-01-20 14:25:22 +10:00
preferences.rs allow customization of default search text 2021-06-24 11:24:30 +10:00
prelude.rs Backend Custom Study (#1600) 2022-01-20 14:25:22 +10:00
serde.rs tidy up Rust imports 2021-04-18 18:38:54 +10:00
template.rs New TTS/AV tag handling (#1559) 2021-12-17 19:04:42 +10:00
template_filters.rs New TTS/AV tag handling (#1559) 2021-12-17 19:04:42 +10:00
text.rs Optimise searching in (all) fields (#1622) 2022-01-24 20:30:08 +10:00
timestamp.rs fix test scheduler undo + implement look-ahead 2021-05-14 22:16:53 +10:00
types.rs update scheduling ops 2021-04-06 16:38:42 +10:00
version.rs tidy up Rust imports 2021-04-18 18:38:54 +10:00