Dustin J. Mitchell
1a92613ddc
take configuration in env vars temporarily
2020-11-28 10:02:17 -05:00
Dustin J. Mitchell
97a8a87c24
Merge pull request #64 from djmitche/issue57
...
Add RemoteServer to the taskchampion crate
2020-11-27 20:23:39 -05:00
Dustin J. Mitchell
a02f864b87
Merge pull request #65 from djmitche/issue63
...
do not require taskchampion from sync-server
2020-11-27 20:15:25 -05:00
Dustin J. Mitchell
2a37f090a5
Add RemoteServer to the taskchampion crate
2020-11-27 20:15:17 -05:00
Dustin J. Mitchell
3092a6bb7f
do not require taskchampion from sync-server
2020-11-27 20:08:54 -05:00
Dustin J. Mitchell
d46f20e75a
adjust visibility, comment
2020-11-27 18:16:42 -05:00
Dustin J. Mitchell
f59355f827
set default theme to ayu
2020-11-26 23:38:14 -05:00
Dustin J. Mitchell
f5859bc45c
fix docs to include all files
2020-11-26 23:38:14 -05:00
Dustin J. Mitchell
efb1bc6a39
Create CONTRIBUTING.md
2020-11-26 23:36:54 -05:00
Dustin J. Mitchell
367c2fa2bd
Create LICENSE
2020-11-26 23:20:45 -05:00
Dustin J. Mitchell
b10dc01213
Create CODE_OF_CONDUCT.md
2020-11-26 23:18:32 -05:00
Dustin J. Mitchell
c96e40e494
Create SECURITY.md
2020-11-26 23:16:39 -05:00
Dustin J. Mitchell
d53d83d06e
Merge pull request #62 from djmitche/issue37
...
replica.new_task now invents its own uuid
2020-11-26 23:13:15 -05:00
Dustin J. Mitchell
eb47cf4e7f
scrpit to push docs
2020-11-26 23:02:15 -05:00
Dustin J. Mitchell
0f98727d9b
replica.new_task now invents its own uuid
2020-11-26 22:44:13 -05:00
Dustin J. Mitchell
2064057688
fix clippy warnings
...
I don't know why these are "intermittent"
2020-11-26 22:36:31 -05:00
Dustin J. Mitchell
26b17c6dbc
Revert "add signing support"
...
It turns out we don't need this.
This reverts commit e92fc0628b
.
2020-11-26 22:34:20 -05:00
Dustin J. Mitchell
b0dd3905e7
fix crate name for tc-sync-server
2020-11-26 22:30:07 -05:00
Dustin J. Mitchell
e32b9d1bf6
Merge pull request #61 from djmitche/issue55
...
Implement the sync server
2020-11-26 20:00:22 -05:00
Dustin J. Mitchell
5b1b911bf7
Move add_version and get_child_version to server module
...
..and add some tests specifically for those functions, in the absence of
all the HTTP nonsense.
2020-11-26 19:59:52 -05:00
Dustin J. Mitchell
fb22b9686f
refactor sync server to use pluggable storage
...
..with a fixed implementation of the replica / server protocol logic.
There isn't much logic yet, and there's a lot of boilerplate to take
care of, so this looks a little lopsided, but I'm confident this is the
right structure for this code's future.
2020-11-26 19:59:52 -05:00
Dustin J. Mitchell
7472749fee
add tests for API methods
2020-11-26 19:59:52 -05:00
Dustin J. Mitchell
3fb2327a5b
add docs for replica/server protocol
2020-11-26 19:59:52 -05:00
Dustin J. Mitchell
2dae271851
build an in-memory sync server implementation
2020-11-26 19:59:52 -05:00
Dustin J. Mitchell
2457d8bc43
move types in crate::types to crate::server
2020-11-26 19:59:52 -05:00
Dustin J. Mitchell
e84871931f
Refactor HTTP implementation of API methods
2020-11-26 19:59:52 -05:00
Dustin J. Mitchell
a5c06008b3
use a trait object for the server, for dynamic dispatch
2020-11-26 19:59:52 -05:00
Dustin J. Mitchell
087333a227
refactor sync server into modules
2020-11-26 19:59:49 -05:00
Dustin J. Mitchell
d0bfbbb7f0
Merge pull request #59 from djmitche/issue8
...
Refactor synchronization
2020-11-25 20:12:46 -05:00
Dustin J. Mitchell
1511a0e38e
update docs based on modified sync designs
2020-11-25 19:46:23 -05:00
Dustin J. Mitchell
3537db9bbe
implement a local sync server
2020-11-25 19:13:32 -05:00
Dustin J. Mitchell
8f7e2e2790
add a 'task sync' command using a copy of the test server
2020-11-25 18:07:04 -05:00
Dustin J. Mitchell
a81c84d7c7
refactor sync to new model
2020-11-25 17:58:03 -05:00
Dustin J. Mitchell
e92fc0628b
add signing support
2020-11-25 17:58:02 -05:00
Dustin J. Mitchell
75edd2773f
make server operations fallible
2020-11-25 17:53:23 -05:00
Dustin J. Mitchell
549d3b9f6d
refactor taskchampion::server into a module with submodules
2020-11-25 17:53:23 -05:00
Dustin J. Mitchell
7cfa27fc7e
Merge pull request #51 from djmitche/issue34
...
Remove `remove_from_working_set` method.
2020-11-24 13:14:12 -05:00
Dustin J. Mitchell
fc4fcc9e5d
Remove remove_from_working_set
method.
...
Items are only removed from the working set when it is rebuilt, so this
method is unnecessary.
2020-11-24 13:11:40 -05:00
Dustin J. Mitchell
a0573e2dbe
Merge pull request #50 from djmitche/issue18
...
add cargo clippy to CI
2020-11-24 13:08:48 -05:00
Dustin J. Mitchell
ca70d2c914
add cargo clippy to CI
2020-11-24 13:02:14 -05:00
Dustin J. Mitchell
2232aa8083
Merge pull request #47 from djmitche/issue43
...
Update handling of working set and show id's more widely
2020-11-24 12:19:47 -05:00
Dustin J. Mitchell
122abf4c5b
Merge pull request #46 from djmitche/issue40
...
export the Uuid type from taskchampion
2020-11-24 12:06:46 -05:00
Dustin J. Mitchell
1c5e9b009b
Add Replica::get_working_set_index and use it
...
This is probably ridiculously inefficient, as it will load the working
set for each and every task listed. Optimize later!
2020-11-24 12:05:30 -05:00
Dustin J. Mitchell
2dd86edd4a
use Replica::get_working_set_task
2020-11-24 11:54:48 -05:00
Dustin J. Mitchell
fc668e5ca8
use usize to index working set
2020-11-24 11:53:11 -05:00
Dustin J. Mitchell
c8f14d68cb
export the Uuid type from taskchampion
2020-11-24 11:44:21 -05:00
Dustin J. Mitchell
d84c156782
Merge pull request #45 from djmitche/issue30
...
add an 'info' subcommand
2020-11-24 11:42:34 -05:00
Dustin J. Mitchell
8233763295
add an 'info' subcommand
2020-11-24 11:31:56 -05:00
Dustin J. Mitchell
888b38fd79
Merge pull request #42 from djmitche/issue28
...
use prettytable for tabular outputs
2020-11-24 09:47:48 -05:00
Dustin J. Mitchell
f31a96176d
use prettytable for tabular outputs
2020-11-23 21:58:45 -05:00