Dustin J. Mitchell
5bae2b6464
remove debug print
2021-10-24 21:41:41 -04:00
Dustin J. Mitchell
ef1d8f37a8
write config defaults once
2021-10-10 01:43:30 +00:00
Dustin J. Mitchell
329c0d0aef
move ServerConfig to crate::server
2021-10-10 01:35:12 +00:00
Dustin J. Mitchell
4d19ca7bdb
add server-side config --snapshot-{days,versions}
2021-10-10 01:28:05 +00:00
Dustin J. Mitchell
74aee49107
Merge pull request #297 from djmitche/versionid-nil
...
Replace NO_VERSION_ID with NIL_VERSION_ID
2021-10-09 21:14:43 -04:00
Dustin J. Mitchell
aaac1c3356
Use App::configure to set up actix
...
This avoids the need for the messy cache-control-header macro.
Otherwise, it has no effect.
2021-10-09 18:07:25 -04:00
Dustin J. Mitchell
536b88c8f4
Replace NO_VERSION_ID with NIL_VERSION_ID
...
The docs refer to this as the "nil version ID" so let's do the same.
This started out more ambitiously, to change this to `VersionId::NIL`,
but that required making VersionId a newtype and all of the implicit
conversions from VersionId to Uuid would have to be explicit. That
didn't seem wortht the trouble.
2021-10-09 17:59:09 -04:00
Dustin J. Mitchell
7bb6ea6865
Request snapshots in AddVersion
2021-10-08 23:15:48 -04:00
Dustin J. Mitchell
d1da8eee52
Add add_snapshot API method
2021-10-08 23:15:48 -04:00
Dustin J. Mitchell
e2f79edad6
add get_snapshot API method
2021-10-08 23:15:48 -04:00
Dustin J. Mitchell
53d1f8dbc2
update get_child_version to distinguish gone and not-found
2021-10-08 23:15:48 -04:00
Dustin J. Mitchell
2570956710
[breaking] Add snapshot support to server storage
...
This refactors the storage API pretty substantially, and represents a
breaking change to the schema used by the sqlite storage
2021-10-08 23:15:48 -04:00
Dustin J. Mitchell
8d2be3b495
add get_version to server storage api
2021-10-08 23:15:48 -04:00
Dustin J. Mitchell
bcef6bf392
remove redundant {..}
2021-10-01 22:18:24 -04:00
Dustin J. Mitchell
a143660124
Switch to pretty_assertions
2021-10-02 01:08:26 +00:00
Dustin J. Mitchell
c62eeb4fcb
v0.4.1
2021-09-26 09:26:38 -04:00
Dustin J. Mitchell
fe7d421c21
v0.4.0
2021-09-25 23:42:16 +00:00
Dustin J. Mitchell
217f3bf28a
Add cache-control headers to API responses
2021-09-15 22:32:35 +00:00
Dustin J. Mitchell
fb39c90592
Add an integration test combining replica and server
...
This confirms that task changes are replicated via the server.
2021-09-12 21:30:05 +00:00
Dustin J. Mitchell
ebcf9527dc
refactor sync-server into a lib crate with a binary
2021-09-12 21:30:04 +00:00
dbr
a4b67d9f4e
Remove unused error variant
2021-09-04 13:29:03 +10:00
dbr/Ben
477bf9e328
Tweaks from code review
...
Co-authored-by: Dustin J. Mitchell <dustin@v.igoro.us>
2021-09-04 12:05:30 +09:30
dbr
86deed3197
Remove unused Transaction from Txn
...
Also note about why StorageTxn isn't implemented
2021-06-16 11:22:17 +10:00
dbr
75f0447c7b
Fix empty-dir problem with server also, and add tests
2021-06-15 22:09:54 +10:00
dbr
c3bc93f631
Clipplease
2021-06-15 22:02:32 +10:00
dbr
7c665c9a77
Clippy things
2021-05-28 20:41:03 +10:00
dbr
0f6323e2de
Unused
2021-05-28 20:35:57 +10:00
dbr
aa2340965e
Merge branch 'main' into sqlstore
2021-05-28 12:17:09 +10:00
dbr
baa6b59e39
Remove KvStorage
2021-05-28 12:10:18 +10:00
dbr
98f2ab51cb
Functional sqlite backend
...
..but not too efficient, creating a new connection pretty much per-query
2021-05-28 12:09:36 +10:00
dbr
991b29da6c
WIP
2021-05-21 15:52:07 +10:00
Dustin J. Mitchell
373cef9d33
[breaking] Include /v1/ in the sync-server paths
...
This is an incompatible change to the sync-server protocol.
2021-05-14 12:51:24 -04:00
dbr
027225d2a3
More WIP.
...
Workaround for !Send SQLite causing problems as each get_txn creates a new transaction
2021-05-08 22:09:48 +10:00
dbr
7ff54ed0de
WIP. Open new connection for each transaction as workaround
2021-05-07 22:24:55 +10:00
dbr
60ff0a8d11
Very WIP (i.e broken) start of SQLite storage in server
2021-04-29 16:00:22 +10:00
Dustin J. Mitchell
c8d6619d71
Replace tempfile with tempdir
2021-04-16 19:29:27 -04:00
dependabot[bot]
5b28993be0
Bump actix-web from 3.3.0 to 3.3.2
...
Bumps [actix-web](https://github.com/actix/actix-web ) from 3.3.0 to 3.3.2.
- [Release notes](https://github.com/actix/actix-web/releases )
- [Changelog](https://github.com/actix/actix-web/blob/master/CHANGES.md )
- [Commits](https://github.com/actix/actix-web/compare/web-v3.3.0...web-v3.3.2 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-31 07:30:16 +00:00
dependabot[bot]
695785116d
Bump actix-rt from 1.1.1 to 2.2.0
...
Bumps [actix-rt](https://github.com/actix/actix-net ) from 1.1.1 to 2.2.0.
- [Release notes](https://github.com/actix/actix-net/releases )
- [Commits](https://github.com/actix/actix-net/compare/rt-1.1.1...rt-v2.2.0 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-30 07:43:11 +00:00
dependabot[bot]
357bbcad01
Bump uuid from 0.8.1 to 0.8.2
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 0.8.1 to 0.8.2.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/0.8.1...0.8.2 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-29 23:34:12 +00:00
Dustin J. Mitchell
fdeadfd981
Fix upper_case_acronyms
lint
2021-03-29 13:26:02 +00:00
dependabot[bot]
718f16154c
Bump env_logger from 0.8.2 to 0.8.3
...
Bumps [env_logger](https://github.com/env-logger-rs/env_logger ) from 0.8.2 to 0.8.3.
- [Release notes](https://github.com/env-logger-rs/env_logger/releases )
- [Changelog](https://github.com/env-logger-rs/env_logger/blob/master/CHANGELOG.md )
- [Commits](https://github.com/env-logger-rs/env_logger/compare/v0.8.2...v0.8.3 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-27 23:05:56 +00:00
dependabot[bot]
e0dbeb2763
Bump log from 0.4.11 to 0.4.14
...
Bumps [log](https://github.com/rust-lang/log ) from 0.4.11 to 0.4.14.
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/compare/0.4.11...0.4.14 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-27 22:50:56 +00:00
Dustin J. Mitchell
ded325c1be
Merge pull request #168 from djmitche/dependabot/cargo/serde-1.0.125
...
Bump serde from 1.0.117 to 1.0.125
2021-03-27 18:48:54 -04:00
dependabot[bot]
ae46f82d94
Bump serde from 1.0.117 to 1.0.125
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.117 to 1.0.125.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.125 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-27 22:04:30 +00:00
dbr
c04ece0e90
Fix one actual clippy lint: remove an unnecessary clone
2021-03-25 18:21:18 +11:00
dbr
4d9755c43b
Replace 'failure' crate with anyhow+thiserror
...
Closes #148
2021-03-25 16:33:35 +11:00
Dustin J. Mitchell
3cccdc7e32
v0.3.0
2021-01-10 22:45:12 -05:00
Dustin J. Mitchell
31378cb8d4
Include client key in a header, not the URL
...
Since this value is used both for identification and authentication, it
shouldn't be in the URL where it might be logged or otherwise
discovered.
2020-12-28 23:08:42 +00:00
Dustin J. Mitchell
92d629522b
rename client id -> client key
2020-12-28 21:32:59 +00:00
Dustin J. Mitchell
e555af8895
add request logging
2020-12-28 00:25:26 +00:00