RumovZ
ca62f3ef80
Fix ordinal case in write_template
...
Internal card ordinals start at 0, so add 1 again when writing a
template search string from a parsed ordinal.
2021-01-09 17:30:12 +01:00
RumovZ
b763fc5b2a
Use explicit wrapper functions to get filters
2021-01-09 16:48:47 +01:00
abdo
0b5bb711a1
Remove unused backend methods & formatting
2021-01-09 17:48:34 +03:00
abdo
5919d9273f
Fix tag collapse state not getting updated
2021-01-09 17:46:52 +03:00
abdo
97b4c2124c
sql formatting
2021-01-09 17:38:16 +03:00
abdo
f7f509c70d
Move tag collapse method to the backend
2021-01-09 17:10:16 +03:00
abdo
1be789f25f
Move sql code for upgrading to schema 17 to a separate file
2021-01-09 17:10:16 +03:00
abdo
c6e3d55400
fill_missing_tags's input should be sorted
...
I assumed that fill_missing_tags will work correctly with un unsorted
tag list previously so I replaced the all_tags_sorted call, but take the following the list for example:
["foo::bar", "foo"]
This will cause "foo" to be counted like a missing tag, since it's
encountered the first time when looking at "foo::bar"", and its config
and other associated data will be lost.
2021-01-09 17:10:16 +03:00
abdo
b33267f754
Do not check for missing tag parents at registration time
2021-01-09 17:10:16 +03:00
abdo
b276ce3dd5
Hierarchical tags
2021-01-09 17:10:13 +03:00
RumovZ
b99d9cda74
Prettify frontend filter code
2021-01-09 12:34:46 +01:00
RumovZ
fda2bfdb4e
Use backend filters instead of literal searches
2021-01-09 10:51:15 +01:00
RumovZ
9ef691c06f
Provide filter searches through backend
2021-01-09 10:50:08 +01:00
Damien Elmes
8c6d0e6229
move exports_files call into ts/BUILD.bazel
...
Suspect it has caused a regression when building from an external
repo.
2021-01-09 18:03:26 +10:00
Damien Elmes
c6e23dbdc5
document extra formatter
2021-01-09 17:42:26 +10:00
Damien Elmes
fc948d3e83
add clang-format for backend.proto formatting
2021-01-09 17:08:50 +10:00
Damien Elmes
e0c3949ef9
format backend.proto with standard Google style
2021-01-09 15:50:24 +10:00
Damien Elmes
c3b1266f47
fix some comments in wrong position after format
2021-01-09 14:26:51 +10:00
Damien Elmes
3dad3c90d0
add .sql file formatter
...
Uses the logic from the sqltools VSCode add-on, with a workaround
for the use of 'type' in some table columns.
By detecting the presence of 'BUILD_WORKSPACE_DIRECTORY' we can tell
if the rule is running in test mode or was run directly, avoiding the
need for separate check and fix rules. It might be nice to extend this
to other formatting rules in the future as well.
2021-01-09 14:22:49 +10:00
Damien Elmes
56e4e2d518
reformat .sql files
2021-01-09 14:08:55 +10:00
Damien Elmes
f452d56e02
Merge pull request #910 from abdnh/exclude-gen
...
Exclude aqt/hooks_gen.py from formatting
2021-01-09 10:27:10 +10:00
abdo
7b58120eb2
Exclude aqt/hooks_gen.py from formatting
2021-01-09 03:01:48 +03:00
Damien Elmes
1731f71998
Merge pull request #907 from hgiesel/easegraph
...
Include many more cards in the ease graph
2021-01-09 09:22:42 +10:00
Damien Elmes
b3c690aa06
Merge pull request #908 from hgiesel/easereset
...
Reset ease to 0 for after rescheduling cards as new
2021-01-09 09:21:22 +10:00
Damien Elmes
02209c5c16
Merge pull request #909 from wallgrenen/remove-unused-variables
...
remove unused variables and commented-out code
2021-01-09 08:56:25 +10:00
wallgrenen
e001cd4d3a
remove unused variables and commented-out code
2021-01-08 20:53:27 +01:00
Henrik Giesel
82a4e0abe8
Don't import now unused INITIAL_EASE_FACTOR_THOUSANDS
2021-01-08 19:32:36 +01:00
Henrik Giesel
caa536a753
Reset ease to 0 for after rescheduling cards as new
2021-01-08 18:15:24 +01:00
Henrik Giesel
1abcbdd79c
Include review and relearn cards for ease graph
2021-01-08 17:57:47 +01:00
Damien Elmes
c8373f1ced
Merge pull request #906 from hgiesel/nozerointervals
...
Omit zero interval, and don't nice the values in Review intervals graph
2021-01-08 22:04:01 +10:00
Henrik Giesel
fac4abb0d5
Add return values to increment and adjustTicks
2021-01-08 12:29:22 +01:00
Henrik Giesel
38a5f64150
Add es2019.array to TypeScript libs, so we can use .flatten and .flatMap
2021-01-08 12:23:21 +01:00
Henrik Giesel
b76639c2e3
Fix cutting off of Review Interval bins
2021-01-08 12:11:53 +01:00
Damien Elmes
fe4da25e15
fix reposition not honoring provided order, and add unit test
2021-01-08 20:38:49 +10:00
Henrik Giesel
e89996bc27
Omit zero interval, and don't nice the values
...
* to keep promise of radio buttons:
* 1 month should mean 30/31 days
2021-01-08 10:07:42 +01:00
Damien Elmes
97e3bfe1c0
Merge pull request #904 from hgiesel/propdue
...
Streamlining `is:due`, `prop:due`, and the FutureDue graph
2021-01-08 16:34:53 +10:00
Damien Elmes
552f9087e5
Merge pull request #905 from hgiesel/intervalsgraph
...
Include many more cards in the Review Intervals graph
2021-01-08 16:15:20 +10:00
Damien Elmes
10630ab723
handle SortOrderProto conversion separately, and use enum getter
...
In most cases we can just fall back on the default enum value instead
of caring if it's missing/invalid.
2021-01-08 15:56:20 +10:00
Damien Elmes
cbeb714062
convert sort_kind_from_pb into from impl
2021-01-08 09:42:54 +10:00
Damien Elmes
1a5b5f09cc
convert from protobuf enum, rather than the underlying i32
2021-01-08 09:24:03 +10:00
Damien Elmes
152eaa1798
Merge pull request #903 from RumovZ/writer-cleanup
...
Writer cleanup
2021-01-08 09:10:01 +10:00
Henrik Giesel
aaa35e2cda
Include many more cards in the Review Intervals graph
2021-01-07 22:35:34 +01:00
RumovZ
d30062a8a5
Compare and save filters normalised
...
When checking whether the current search is a saved filter, compare the
searches normalised to allow the detection of equivalent expressions.
Invalid searches are accepted unaltered to allow the deletion of invalid
saved filters.
As for saving new filters, do so normalised, respectively, reject
invalid searches.
2021-01-07 22:11:21 +01:00
Henrik Giesel
4c570785bb
Add comment about integer division
2021-01-07 20:10:25 +01:00
Henrik Giesel
04a56209c6
Restate rslib unit test
2021-01-07 19:56:36 +01:00
Henrik Giesel
5f52367403
Fix formatting graphs ts
2021-01-07 19:36:08 +01:00
Henrik Giesel
155a59b80b
Search for Learn and PreviewRepeat cards when using prop:due
2021-01-07 19:01:10 +01:00
RumovZ
478a3bd0bc
Format
2021-01-07 18:20:14 +01:00
RumovZ
efd554ea29
Provide ConcatSeparator through rsbackend.py
2021-01-07 17:48:30 +01:00
Henrik Giesel
795dcab370
Include PreviewRepeat cards in is:due
2021-01-07 17:24:10 +01:00