Damien Elmes
36314f3b6f
Merge pull request #528 from evandroforks/create_actions_for_windows_macos
...
Create actions for Windows and Mac OS
2020-03-27 15:26:22 +10:00
Damien Elmes
9e6a2ba1e6
Merge pull request #527 from Arthur-Milchior/explode_on_bridge_cmd
...
Explode on bridge cmd
2020-03-27 15:22:14 +10:00
evandrocoan
9224290336
Re-enabled the rust cargo index and registry caches because
...
cargo was downloading them just for nothing.
https://github.com/ankitects/anki/pull 528
2020-03-27 02:21:48 -03:00
Damien Elmes
fc846ac4e4
use add_card()
2020-03-27 15:11:07 +10:00
Damien Elmes
1112fc8e8b
add (unused) add_card, and move sql to separate files
2020-03-27 14:48:25 +10:00
evandrocoan
399eb536a1
Disabled the caches of cargo registry, index and python wheels
2020-03-27 00:21:09 -03:00
Damien Elmes
0247d65ccd
add benchmark for vec cache
...
test storage::sqlite::bench::bench_hash_cache ... bench: 399 ns/iter (+/- 27)
test storage::sqlite::bench::bench_no_cache ... bench: 4,854 ns/iter (+/- 499)
test storage::sqlite::bench::bench_vec_cache ... bench: 0 ns/iter (+/- 0)
2020-03-27 09:59:48 +10:00
Damien Elmes
d1c44ec06d
store cached statements in a vec instead of separate optionals
2020-03-27 09:51:19 +10:00
evandrocoan
b9c89fbdff
Created a fast build matrix for quickly running the Unit Tests
2020-03-26 19:43:16 -03:00
evandrocoan
f1fe0209f6
Merge remote-tracking branch 'danielelmes/master' into create_actions_for_windows_macos
2020-03-26 19:31:01 -03:00
Damien Elmes
62be1b2688
update card in transaction
2020-03-27 07:58:25 +10:00
Arthur Milchior
504b89f7af
Ensure that focus, key and blur are treated as other commands
...
The reason to do that is that I can then call blur/key from other
method in add-on.
More precisely, I expect to create a method which captures the blur
command, ask anki to execute the standard version of the command, and
then execute more code once the note contains the new field value.
I should note that the code executed during blur/key/focus itself
didn't change. It's only it's location which changed.
2020-03-26 15:42:27 +01:00
Damien Elmes
0f0b90d427
fix progress dialog preventing schema mod
...
https://anki.tenderapp.com/discussions/beta-testing/1868-anki-2124-beta#comment_48183062
This is an ugly hack - in the future the calling code should be updated
to perform the check prior to starting the operation instead.
2020-03-26 21:07:53 +10:00
Damien Elmes
e28fdde984
handle mtime/usn bump in backend, and tweak integer sizes
2020-03-26 20:55:04 +10:00
Damien Elmes
aa33bf85ef
report invalid type/queue
2020-03-26 19:32:35 +10:00
Damien Elmes
369457a1c7
fix two cases where a float was being written into due
2020-03-26 19:05:18 +10:00
Damien Elmes
0510ab7c9c
update_card()
2020-03-26 18:54:20 +10:00
Damien Elmes
245a31a432
tweak code for mypy
2020-03-26 17:47:53 +10:00
Damien Elmes
b2fba4e1ff
use backend to get card
2020-03-26 17:47:43 +10:00
evandrocoan
e97801498f
Moved RSPY_TARGET_DIR and CARGO_TARGET_DIR to the top
2020-03-26 03:04:47 -03:00
evandrocoan
52f45a52f6
Fixed misspelling Mac OS with a space on the build matrix
2020-03-26 02:46:18 -03:00
evandrocoan
b6af705817
Merged all workflows together using build matrixes
2020-03-26 02:11:34 -03:00
Damien Elmes
1af3de6f70
DeckID, CardID
2020-03-26 15:10:40 +10:00
Damien Elmes
4150480709
NoteTypeID
2020-03-26 15:00:24 +10:00
Damien Elmes
3395a565a6
newtype NoteID
2020-03-26 14:42:43 +10:00
evandrocoan
6f8797fd69
Fixed checks.yml Mac OS gmake PATH being set on Ubuntu
2020-03-26 01:20:00 -03:00
Damien Elmes
bb0b817d9c
use a macro for newtype defs
2020-03-26 13:50:20 +10:00
Damien Elmes
d95cb93d7a
usn newtype
2020-03-26 13:06:02 +10:00
Damien Elmes
bfc0287e51
use newtypes for distinguishing between second and millisecond stamps
2020-03-26 12:59:51 +10:00
evandrocoan
49a8743527
Fix Mac OS checks.yml caches being rebuilt by stop using
...
the CARGO_TARGET_DIR and CARGO_INDEX_DIR variables:
https://github.com/ankitects/anki/pull 528
2020-03-25 22:42:37 -03:00
Damien Elmes
3ca9f61733
reduce the chances of add-ons preventing collections from loading
...
https://anki.tenderapp.com/discussions/ankidesktop/39953-sync-fail-with-images#comment_48182205
2020-03-26 09:53:15 +10:00
Damien Elmes
4d428f9fa8
high due numbers shouldn't force a full sync
2020-03-26 09:09:11 +10:00
evandrocoan
2862752ed2
Update make to use the new .SHELLFLAGS feature
...
https://github.com/ankitects/anki/pull 528
2020-03-25 19:05:31 -03:00
evandrocoan
eed315ddae
Set to use ankitects/setup-protoc@master instead of the original
...
repository with a `repo-token` until know whether it is safe to
pass the GitHub token around:
https://github.com/actions/virtual-environments/issues 602
2020-03-25 19:05:31 -03:00
evandrocoan
a394199184
Fixed lower case of runs-on: macos-latest
...
Accordingly to the documentation the name is lower case:
https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners
2020-03-25 19:05:31 -03:00
evandrocoan
94be5c71a3
Fix for indentation not using tabs on the make file
2020-03-25 19:05:31 -03:00
evandrocoan
deae7b8fed
Re-enabled the Makefile set -eo commands because by default
...
Mac OS uses an old version of make which does not support
the .SHELLFLAGS feature.
2020-03-25 19:05:31 -03:00
Arthur Milchior
2f245791c7
Explode onBridgeCmd
...
This way, an add-on can catch a blur command, do its change and then
call self.blur
2020-03-25 08:17:48 +01:00
evandrocoan
069150fd82
Set curl to run silently, added missing double quotes and removed
...
trailing backslash on checks.yml
2020-03-25 00:05:49 -03:00
evandrocoan
964cc1a11a
Merge remote-tracking branch 'danielelmes/master' into create_actions_for_windows_macos
...
# Conflicts:
# .github/scripts/trailing-newlines.sh
# .github/workflows/checks.yml
# Makefile
# pylib/Makefile
# qt/Makefile
# qt/tools/typecheck-setup.sh
# rspy/Makefile
2020-03-24 22:49:49 -03:00
evandrocoan
9319aaeb39
Set to run first develop build and check rules
2020-03-24 22:28:46 -03:00
evandrocoan
abe8b6cd61
Merged mac_checks.yml and windows_checks.yml into checks.yml
2020-03-24 22:28:46 -03:00
evandrocoan
0c71e6a242
Renamed linux_checks.yml to checks.yml
2020-03-24 22:28:46 -03:00
evandrocoan
4e0b599003
Fixed bash call by bash using other bashes on the system PATH
2020-03-24 22:28:46 -03:00
evandrocoan
78295d1d14
Re-enabled the mac_checks.yml after fixing the rate limit issue
2020-03-24 22:28:46 -03:00
evandrocoan
330d695814
Fixed not all rust libraries being cached
2020-03-24 22:28:46 -03:00
Damien Elmes
711447aa35
possible CI fix
2020-03-25 09:45:50 +10:00
Damien Elmes
350d97b390
Merge pull request #523 from Arthur-Milchior/hook_note_will_load
...
Hook editor_note_will_load
2020-03-25 09:43:16 +10:00
Damien Elmes
4680c2fe9b
Merge pull request #526 from Arthur-Milchior/field_with_space_are_empty
...
strip to test whether field is empty
2020-03-25 09:36:08 +10:00
Damien Elmes
2bd99127e9
add newline to mear clearly separate different ftl files
2020-03-25 08:53:42 +10:00