Commit graph

11450 commits

Author SHA1 Message Date
Tomas Babej
fd549c764b Task: Do not identify tag and dependency attributes as orphans 2021-10-16 10:22:34 -04:00
Tomas Babej
339a4ddb51 Task: Make isTag/Dep/AnnotationAttr methods static
This allows usage of these helper methods outside of Task class.
2021-10-16 10:22:34 -04:00
Bent Witthold
3dbad09f72 consiered -> considered 2021-10-16 09:07:18 -04:00
Tomas Babej
d480f6a0db
docs: Document #2629 2021-10-15 01:09:19 -04:00
Tomas Babej
e21ae0d7d8
docs: Document #2620 2021-10-15 00:56:13 -04:00
Dustin J. Mitchell
ddfb327292 WIP 2021-10-15 02:56:46 +00:00
Tomas Babej
f6d9837b07
tests: Add test for legacy context interpretation 2021-10-14 22:36:11 -04:00
Tomas Babej
d5a026d91a
context: Interpret legacy-style context as read context only
This provides a better migration path than surprising users with the
write context functionality out of the blue.

Closes #2620.
2021-10-14 22:34:48 -04:00
Tomas Babej
1d4baca0d9
context: Do not interpret empty filter/mods as missing context definition
This is a corner case bug, when user has both old-style and new-style
context defined, where new-style is defined as empty string, the
old-style will (incorrectly) take precedence.

Closes #2629.
2021-10-14 17:47:11 -04:00
Dustin J. Mitchell
636862f8c5 update README with current relationship to TW 2021-10-13 17:59:58 -04:00
Dustin J. Mitchell
bd2189e589
Merge pull request #300 from djmitche/issue23-client
Client support for adding snapshots
2021-10-13 16:44:50 -04:00
Dustin J. Mitchell
1c6a5315c9 remove unused file 2021-10-11 21:29:49 -04:00
Dustin J. Mitchell
333cb37091 Support add_snapshots on cli 2021-10-11 21:00:08 -04:00
Dustin J. Mitchell
ed3475d9ea support avoiding snapshots 2021-10-11 21:00:08 -04:00
Dustin J. Mitchell
b97f6dc4d5 Send snapshots to server 2021-10-11 21:00:07 -04:00
Dustin J. Mitchell
13a96efacb Add snapshot encoding / decoding 2021-10-11 20:58:36 -04:00
Dustin J. Mitchell
bde19d7f07 Return SnapshotUrgency from AddVersion 2021-10-11 20:58:34 -04:00
Dustin J. Mitchell
b8d892878c document sync data formats 2021-10-11 20:56:45 -04:00
Dustin J. Mitchell
79f07b57ad more taskdb refactoring 2021-10-11 20:56:45 -04:00
Tomas Babej
887b04f7f4
docs: Document #2619 2021-10-11 15:50:42 -04:00
Alexandre Provencio
d4a9ce614b Fix fish completions
Closes #2619
2021-10-11 15:45:57 -04:00
Dustin J. Mitchell
f229715242
Merge pull request #295 from taskchampion/issue23-config
add server-side config --snapshot-{days,versions}
2021-10-10 15:24:18 -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
45e2f2cde8
Merge pull request #296 from djmitche/app-configure
Use App::configure to set up actix
2021-10-09 21:14:22 -04:00
Dustin J. Mitchell
dd9bef0a7b
Merge pull request #294 from taskchampion/taskdb-refactor
factor taskdb into multiple modules
2021-10-09 21:13:56 -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
a0a3f36a16 factor taskdb into multiple modules 2021-10-09 09:47:10 -04:00
Dustin J. Mitchell
f109056340
Merge pull request #289 from taskchampion/issue23
Add support for snapshots
2021-10-09 09:40:57 -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
eadce9f15a Add documentation for snapshots 2021-10-08 23:15:48 -04:00
Orhun Parmaksız
db76a15ba5
changelog: mark 2.6.0 as current release 2021-10-04 21:07:44 -04:00
Tomas Babej
64ea936d7f
README: Describe the new branch names 2021-10-04 20:56:27 -04:00
Dustin J. Mitchell
75fd0ff83a Remove cargo fmt error
This was added to test the 'Formatting' action.  It works :)
2021-10-03 22:26:03 +00:00
Dustin J. Mitchell
e2320fb9aa
Merge pull request #293 from taskchampion/cargo-fmt
add a cargo-fmt job to CI
2021-10-02 22:16:06 -04:00
Tomas Babej
c010855bac
Merge branch '2.6.0' 2021-10-02 22:04:54 -04:00
Tomas Babej
8174287f91
README: Mark GnuTLS as optional 2021-10-02 21:59:37 -04:00
Nathan Wyand
b6225adbd3 add library build dependencies to README 2021-10-02 21:55:02 -04:00
Tomas Babej
dbf641988e
CmdTags: Update pointers to task enumeration lists 2021-10-02 21:38:47 -04:00
Tomas Janousek
8610268cd9
Add missing "QUARTER" to feedback_reserved_tags
A while ago I noticed that 630a1530e0 only
added the QUARTER virtual tag to src/Task.cpp, and when I checked that
again today, it was still missing from src/feedback.cpp, so I'm fixing
that.
2021-10-02 21:33:16 -04:00
Tomas Babej
ac309b4ff1
tests: Skip the diagnostics test on Ubuntu 16.04
This is a byproduct of recent bump to C++17 compliant compilers. Ubuntu
16.04 does not have C++17 compliant compiler, but it's still useful to
for us to test 2.5.3 there as the branch does not actually use any of
the C++17 features not available on gcc on Ubuntu.
2021-10-02 21:32:21 -04:00
Leo
57680f5bde
Uncoditionally include errno.h instead of guessing
POSIX tells us that it is errno.h, musl fails to build with -Werror
because it redirects sys/errno.h->errno.h and uses #warning

(cherry picked from commit 041248e7cc)
2021-10-02 21:30:40 -04:00