Commit graph

531 commits

Author SHA1 Message Date
dbr
6d77b9a319 cargo fmt 2021-03-25 17:10:11 +11:00
dbr
0e7a4c2c33 Fix minor typo in doc comment 2021-03-25 16:34:53 +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
9cfbe01271
Merge pull request #147 from djmitche/issue144
Reorganize the 'taskchampion' crate
2021-01-10 22:31:40 -05:00
Dustin J. Mitchell
ae4cee1ac3 add docs for the 'server' and 'storage' modules 2021-01-10 22:22:18 -05:00
Dustin J. Mitchell
02d9c577ab use StorageConfig instead of ReplicaConfig 2021-01-10 22:22:18 -05:00
Dustin J. Mitchell
b004b6cb93 use ServerConfig::into_server instead of server::from_config 2021-01-10 22:22:18 -05:00
Dustin J. Mitchell
15ffc62279 rename taskstorage to storage 2021-01-10 22:22:17 -05:00
Dustin J. Mitchell
a318ceebe2
Merge pull request #146 from djmitche/issue106
Adjust Tag syntax to match TaskWarrior
2021-01-09 23:00:52 -05:00
Dustin J. Mitchell
824c14b5b8 Notes about active development of TW 2021-01-10 03:51:46 +00:00
Dustin J. Mitchell
b95c146a7e Adjust Tag syntax to match TaskWarrior 2021-01-10 03:47:38 +00:00
Dustin J. Mitchell
2bacc05ced
Merge pull request #145 from djmitche/issue123
Centralize API for working set to a single struct
2021-01-09 18:42:36 -05:00
Dustin J. Mitchell
087769146e Centralize API for working set to a single struct
Rather than allow addressing tasks either by working set ID or uuid,
with attendant performance issues, this moves the API for the working
set to a single struct that just serves as a 1-1 mapping of indexes to
UUIDs.  It's up to the caller to use this information.
2021-01-09 23:42:27 +00:00
Dustin J. Mitchell
d06f2e5aeb
Merge pull request #143 from djmitche/issue125
Always pass Uuids by value
2021-01-09 17:57:29 -05:00
Dustin J. Mitchell
45d3e38c63 Always pass Uuids by value
Rust handles this well.  Fixes #125.
2021-01-09 22:09:06 +00:00
Dustin J. Mitchell
ca1b7da9bf
Merge pull request #142 from djmitche/issue68
Automatically add new pending tasks to working set after sync
2021-01-02 14:59:56 -05:00
Dustin J. Mitchell
5e92770eb8 Automatically rebuild working set after sync 2021-01-02 14:47:36 -05:00
Dustin J. Mitchell
dc2df10158 Control whether to renumber the working set when rebuilding it 2021-01-02 14:47:36 -05:00
Dustin J. Mitchell
b62370c150 Rename replica.gc to replica.rebuild_working_set
The command-line operation is still `gc`, but we'll break that down into
finer pieces in the replica.
2021-01-02 13:23:48 -05:00
Dustin J. Mitchell
da63d77d9d
Merge pull request #141 from djmitche/issue102
Update documentation for reports, new CLI
2021-01-01 16:49:55 -05:00
Dustin J. Mitchell
8b4f345387 Update documentation for reports, new CLI
This is basically a redraft of the documentation to be more complete and
better cover some of the features added since it was written.
2021-01-01 21:18:49 +00:00
Dustin J. Mitchell
b29f75a075 fix to tc.yml to only build on pushes to main 2020-12-30 21:46:23 +00:00
Dustin J. Mitchell
d57efbec5d
Merge pull request #136 from djmitche/issue120
Parse reports from config, with defaults
2020-12-30 16:45:05 -05:00
Dustin J. Mitchell
46c3b31208 Parse reports from config, with defaults 2020-12-30 21:18:45 +00:00
Dustin J. Mitchell
2928bab41c
Merge pull request #133 from djmitche/issue121
Use named reports
2020-12-29 20:06:19 -05:00
Dustin J. Mitchell
705edce82b only run CI on pushes to main, not to topic branches 2020-12-30 01:02:00 +00:00
Dustin J. Mitchell
b7c12eec1e Allow filtering by status 2020-12-30 00:52:53 +00:00
Dustin J. Mitchell
83d8fc3b4e Factor out the unnecessary ModArg struct 2020-12-30 00:28:48 +00:00
Dustin J. Mitchell
fc977a0fe6 Limit Filter "universes" to invocation::filter
Universes are really an optimization of filtering tasks, so let's define
them there, and derive them from the set of conditions.  This means that
complex filters might get missed and end up doing a full task scan, but
that's probably OK.

Note that this does not fix the working-set API issues (#108 and #123).
2020-12-30 00:26:53 +00:00
Dustin J. Mitchell
0a458b5f5b Treat any bare word in the command line as a report name 2020-12-29 22:54:07 +00:00
Dustin J. Mitchell
21684666a6
Merge pull request #132 from djmitche/issue60
Use a single secret value to identify clients
2020-12-28 20:51:08 -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
Dustin J. Mitchell
812b49587f
Merge pull request #130 from djmitche/issue25
Encrypt content sent to the server.
2020-12-27 13:59:24 -05:00
Dustin J. Mitchell
a8d45c67c6 Encrypt content sent to the server
This implements client-side encryption, so that users' task information
is not availble to the server (or to anyone who does not have the
`encryption_secret`).
2020-12-27 18:51:41 +00:00
Dustin J. Mitchell
6b70b47aa0 specify version ranges 2020-12-26 16:03:57 +00:00
Dustin J. Mitchell
c472e04a09
Merge pull request #127 from djmitche/issue76
Default to a local server, so `task sync` works out of the box
2020-12-26 10:45:15 -05:00
Dustin J. Mitchell
64b38ee814 add some debug logging 2020-12-26 15:34:00 +00:00
Dustin J. Mitchell
57834848f2 Default to a local server, so task sync works out of the box 2020-12-26 15:29:48 +00:00
Dustin J. Mitchell
db85ff86a1
Merge pull request #126 from djmitche/issue119
implement generic report generation
2020-12-26 09:59:12 -05:00
Dustin J. Mitchell
00f548c713 implement generic report generation 2020-12-26 04:11:20 +00:00
Dustin J. Mitchell
f264e74288 specify nom version 2020-12-25 04:18:24 +00:00
Dustin J. Mitchell
e7b7e88bc9 convert unrwap to expect and add testing 2020-12-25 02:52:49 +00:00
Dustin J. Mitchell
8a10fa8335 fix some more pedantic lints 2020-12-25 02:43:51 +00:00
Dustin J. Mitchell
46512b78d7
Merge pull request #118 from djmitche/issue112
use a s!(..) shorthand in CLI tests
2020-12-24 21:37:48 -05:00
Dustin J. Mitchell
922e71cd4d use a s!(..) shorthand in CLI tests 2020-12-24 21:15:56 +00:00
Dustin J. Mitchell
7e906ced22
Merge pull request #117 from djmitche/issue113
use static strings for usage
2020-12-24 16:15:51 -05:00
Dustin J. Mitchell
75aaf8d4ab use static strings for usage 2020-12-24 21:07:27 +00:00