Damien Elmes
1fe18718f7
add daily count updating to backend
2020-06-05 19:49:53 +10:00
Damien Elmes
4a69b55a90
add note/card removal to backend
2020-06-04 18:21:04 +10:00
Damien Elmes
90e19daec2
handle aborting normal sync
...
- Use a separate abort handle, as the media sync is running
in the background and we need to be able to target them separately.
The current progress handling is going to need a rethink if we introduce
any other background tasks in the future.
- Roll back the transaction when interrupting.
2020-06-01 13:57:10 +10:00
Damien Elmes
ee6d7f82e7
rework progress handling
...
- client now polls status instead of backend pushing it
- supports multiple threads
- update throttling happens in one place
2020-06-01 13:57:10 +10:00
Damien Elmes
b254b1f722
another snapshot of sync work
...
progress handler is going to need to be reworked to function across
threads
2020-06-01 13:57:10 +10:00
Damien Elmes
f10d0ee0cb
more syncing work
...
no checks yet
2020-06-01 13:57:10 +10:00
Damien Elmes
c8d13209cd
move dupe check to backend
2020-05-24 19:48:56 +10:00
Damien Elmes
89dde3aeb0
migrate the remaining methods
2020-05-24 08:36:50 +10:00
Damien Elmes
4bf8175bcb
migrate more scheduling/media/etc
...
almost there
2020-05-23 21:34:19 +10:00
Damien Elmes
a105037ec9
migrate notetypes, update GIL list
2020-05-23 20:43:55 +10:00
Damien Elmes
9c20d9a02b
start reworking protobuf handling
...
Will allow us to cut down on boilerplate by automatically generating
code from RPC service definitions
2020-05-22 20:56:15 +10:00
Damien Elmes
8bd5d756e2
bump version
2020-05-18 12:50:20 +10:00
Damien Elmes
09db596009
rebuild rspy on sql change
2020-05-12 21:13:33 +10:00
Damien Elmes
74c97ad6d3
bump version
2020-05-11 19:28:17 +10:00
evandrocoan
e4698b9997
We should not call clippy on Mac OS when running make check
2020-05-02 19:44:51 -03:00
evandrocoan
2008f2b7bc
Fixed rspy check not being called
...
# Conflicts:
# Makefile
2020-05-01 22:51:17 -03:00
Damien Elmes
b337dda8df
bump version
2020-05-02 10:22:00 +10:00
Damien Elmes
0080db4c94
Merge pull request #600 from evandroforks/add_missing_wheels_anki_dependency
...
Add missing aqt and anki modules dependency requirements
2020-05-02 09:02:21 +10:00
Damien Elmes
d7cdb10aa8
fix some clippy lints
2020-05-02 08:55:27 +10:00
evandrocoan
b6e7ab6a99
Removes duplicated maturin build flags on rspy/Makefile
2020-05-01 01:46:30 -03:00
Damien Elmes
00cf4fc585
bump version
2020-04-28 08:57:56 +10:00
Damien Elmes
abb80231a5
Merge pull request #582 from evandroforks/fix_make_clean
...
Fixed make clean rule not working on Windows
2020-04-27 19:10:21 +10:00
evandrocoan
26480fb13c
Fixed make clean rule not working on Windows
2020-04-26 03:02:02 -03:00
Damien Elmes
359b9f5cd5
use same cargo rspy target dir for wheel build
2020-04-25 10:08:24 +10:00
Damien Elmes
16ab351bf8
avoid unnecessary work in 'make build'
2020-04-07 10:59:14 +10:00
Damien Elmes
2cff078b50
require new maturin release for 32 bit support+pypi fix
...
closes #538
2020-04-04 07:39:33 +10:00
Damien Elmes
ee71e5dd59
use support URL and point to source repo
2020-04-03 08:44:59 +10:00
evandrocoan
069cc11a86
Created the GitHub Actions step Upload to PyPi to run only on
...
tagged releases of anki:
https://anki.tenderapp.com/discussions/ankidesktop/40025-anki-in-python-package-index
2020-04-02 02:57:34 -03:00
evandrocoan
20c9837770
Created the .github/workflows/windows.yml
...
# Conflicts:
# .github/scripts/trailing-newlines.sh
# Makefile
# qt/tools/typecheck-setup.sh
# react/Makefile
# rspy/Makefile
# svelte/Makefile
# tslib/Makefile
2020-03-23 19:51:03 -03:00
Damien Elmes
ba17567617
drop the separate i18n backend
2020-03-20 21:15:23 +10:00
Damien Elmes
daaf8bdc70
release the GIL during a DB request
2020-03-20 21:15:23 +10:00
Damien Elmes
ae06b9e446
add Collection struct, and get media check working again
...
- media check no longer needs collection to be closed
- use savepoints for operations initiated by Rust, so they are
atomic without forcing a commit
2020-03-20 21:15:23 +10:00
Damien Elmes
2cd7885ec0
add begin/commit/rollback, and support creating collections
...
all but one unit test is now passing
2020-03-20 21:15:23 +10:00
Damien Elmes
b51e575a9d
drop the protobuf prototype
2020-03-20 21:15:23 +10:00
Damien Elmes
b876d97770
use (or)json for DB bridge
...
Some initial testing with orjson indicates performance varies from
slightly better than pysqlite to about 2x slower depending on the type
of query.
Performance could be improved by building the Python list in rspy
instead of sending back json that needs to be decoded, but it may make
more sense to rewrite the hotspots in Rust instead. More testing is
required in any case.
2020-03-20 21:15:23 +10:00
Damien Elmes
f617760d04
bump version
2020-03-19 10:46:01 +10:00
Damien Elmes
f904f30bb2
add DEVFLAGS for performance testing
2020-03-10 13:36:01 +10:00
Damien Elmes
071722c057
rspy version
2020-03-06 19:15:02 +10:00
evandrocoan
ff3ea28de0
Fixed "Makefile:4: warning: undefined variable 'OS'" due the usage
...
of MAKEFLAGS += --warn-undefined-variables
2020-03-03 20:51:56 -03:00
evandrocoan
f13d9dfb8a
Merge remote-tracking branch 'danielelmes/master' into allow_to_define_python_bin
...
# Conflicts:
# rspy/Makefile
2020-03-02 11:44:45 -03:00
Damien Elmes
a98ecb642c
Merge pull request #487 from evandroforks/fix_rspy_makefile_rebuild
...
Fixed rspy/Makefile not rebuilding when rspy/src files are changed
2020-03-02 16:30:01 +10:00
evandrocoan
9460082a91
Allow to define a externally PYTHON_BIN and ACTIVATE_SCRIPT
2020-03-01 22:41:06 -03:00
evandrocoan
7957b51cb8
Fixed rspy/Makefile trying to use python3 on Windows
2020-03-01 22:41:06 -03:00
evandrocoan
9451d1f705
Fixed rspy/Makefile not rebuilding when rspy/src files are changed
2020-03-01 22:38:39 -03:00
evandrocoan
8bbb3bb2ee
Fixed rspy/Makefile trying to use python3 on Windows
2020-03-01 13:24:53 -03:00
Damien Elmes
ba4fe71eba
make logging explicit, and support logging to a file
2020-02-29 20:44:01 +10:00
Damien Elmes
7482904735
bump rust toolchain for 1.41.1 fixes
2020-02-29 19:42:30 +10:00
Damien Elmes
c966d88e4c
add support for embedding the qt translations
2020-02-27 20:38:34 +10:00
evandrocoan
26cdff29ec
Renamed FIND_EXEC to FIND, replaced IS_WINDOWS by specific commands
...
as PYTHON_BIN, ACTIVE_SCRIPT and INSTALL_PYAUDIO.
Fixed echo statements not using @ to suppress double message output.
Deprecated the usage of ECHOCMD := /bin/echo -e because it has no
effect: https://stackoverflow.com/questions/60387684/how-to-make-the-makefile-echos-to-use-bin-echo-e
# Conflicts:
# Makefile
2020-02-25 03:15:11 -03:00
evandrocoan
bca96de75c
Fixed misspelling on README.development and added missing FIND_EXEC
...
to rspy/Makefile
2020-02-24 17:03:00 -03:00