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
235c6614af
feedback: Remove redundant variable
2021-09-16 07:15:54 -04:00
Tomas Babej
0bc92d6115
meta: Adjust copyright headers
2021-09-05 12:02:07 -04:00
Dustin J. Mitchell
309e99d49e
Refactor task diffs to handle new attributes
...
This refactors task(Info)Differences to be methods of Task and to
correctly handle the `annotation_`, `tags_`, and `dep_` attributes.
2021-09-04 10:49:45 -04:00
Dustin J. Mitchell
413b8d22b7
Remove references to the 'depends' property outside of Task.cpp
...
With the exception of `taskDifferences` and `taskInfoDifferences`,
deferred to #2572 .
2021-08-17 20:36:54 -04:00
Tomas Babej
cc0ba46873
feedback: Consider start and end attributes when reporting task durations
...
Instead of relying on the modification times, we can use the values of
the start and end attributes, if available.
This allows us to perform historical changes that result in correct
duration intervals reported by task info.
Closes #2514
2021-06-26 14:38:18 -04:00
Rosen Penev
73575f8d88
convert manual loops to std::count_if
...
Simpler and generates less assembly.
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2021-05-01 21:20:52 -04:00
Rosen Penev
15f0ab87e0
clang-tidy: use const references
...
Found with performance-for-range-copy
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2021-04-23 01:59:45 -04:00
Rosen Penev
d0c4350c2f
clang-tidy: add missing reserve calls
...
Found with performance-inefficient-vector-operation
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2021-04-23 00:22:43 -04:00
Tomas Babej
9017cd6e53
doc: Update copyright to 2021
2021-01-02 02:48:22 -05:00
Paul Beckingham
3e0a428185
Revert "[clang-tidy] Use .empty instead of comparing size"
...
This reverts commit a331cceded .
2020-12-05 16:18:37 -05:00
Paul Beckingham
2652a9d3f1
Revert "[clang-tidy] Add const references where useful"
...
This reverts commit 37b641259c .
2020-12-05 16:18:37 -05:00
Paul Beckingham
5502729131
Revert "[clang-tidy] Switch C headers to C++ ones"
...
This reverts commit 0344856d65 .
2020-12-05 16:18:37 -05:00
Paul Beckingham
7d8fff418e
Revert "[clang-tidy] Reserve memory for vector loop"
...
This reverts commit 7f86b29aa9 .
2020-12-05 16:18:37 -05:00
Paul Beckingham
c43a513158
Revert "[clang-tidy] Replace C style casts with C++ ones"
...
This reverts commit 13e1bf7204 .
2020-12-05 16:18:37 -05:00
Rosen Penev
13e1bf7204
[clang-tidy] Replace C style casts with C++ ones
...
Found with google-readability-casting
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2020-12-05 15:03:43 -05:00
Rosen Penev
7f86b29aa9
[clang-tidy] Reserve memory for vector loop
...
Found with performance-inefficient-vector-operation
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2020-12-05 15:03:43 -05:00
Rosen Penev
0344856d65
[clang-tidy] Switch C headers to C++ ones
...
Found using modernize-return-braced-init-list
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2020-12-05 15:03:43 -05:00
Rosen Penev
37b641259c
[clang-tidy] Add const references where useful
...
Found with performance-for-range-copy
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2020-12-05 15:03:43 -05:00
Rosen Penev
a331cceded
[clang-tidy] Use .empty instead of comparing size
...
Found with readability-container-size-empty
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2020-12-05 15:03:43 -05:00
Tomas Babej
a09f9d48ab
Update copyright to 2020
2020-11-21 12:27:05 -05:00
Tomas Babej
8066e4e6e2
meta: Update copyright year
2019-01-01 08:46:21 -05:00
Kirill Bobyrev
5cdbe6d019
Use nullptr instead lf C-styled NULL
2018-03-07 22:21:28 +03:00
Simon Ruderich
e817dfc800
Always use https:// link for opensource.org
...
It was already used in a few places, make this consistent.
2018-03-04 14:53:07 +01:00
Mark Scannell
7af6db4c17
Portability: Updated to make main re-entrant()
...
- New INSTALL instructions to emscripten, and AUTHORS for contribution.
2018-01-31 19:45:07 -05:00
Paul Beckingham
a1431f0d98
l10n: Eliminated some column labels
2018-01-21 23:07:04 -05:00
Paul Beckingham
6f6335f67a
l10n: Eliminated STRING_HELPER_PROJECT_*
2018-01-20 14:07:07 -05:00
Paul Beckingham
0de169bb10
Copyright 2018
2017-12-31 19:22:07 -05:00
Paul Beckingham
704dfd462e
TW-1903: grammar error -- There are 1 local changes.
...
- Thanks to Eric Hymowitz.
2017-03-30 23:21:14 -04:00
Paul Beckingham
4a5dfad74d
Feedback: Sync message now indicates how many local changes will be synced
2017-02-28 00:10:15 -05:00
Paul Beckingham
4e7576cb79
Merge branch 'recurrence' into 2.6.0
2017-01-07 12:29:11 -05:00
Paul Beckingham
8049c8ba99
feddback: Added TEMPLATE and INSTANCE virtual tags
2017-01-07 11:46:35 -05:00
Paul Beckingham
a50e65a134
Copyright update
2017-01-01 12:30:04 -05:00
Paul Beckingham
b0a4a409a6
Task: Improved method signature
2016-12-31 16:33:39 -05:00
Paul Beckingham
245ed39b78
Task: Improved method signature
2016-12-31 16:15:24 -05:00
Paul Beckingham
3ef2459f2e
feedback: Migrated from ISO8601 to Datetime/Duration
2016-12-11 21:39:27 -05:00
Paul Beckingham
355620c640
libhsared: migrating from local to libshared
2016-12-06 07:20:45 -05:00
Paul Beckingham
95f4989f77
Cleanup: Don't use string literals when character literals are needed
2016-10-14 22:27:34 -04:00
Tomas Babej
f3147a512c
feedback: Use task identifiers instead of IDs
...
During construction of a feedback string for a dependency change,
a list of IDs of the dependencies was used. However, if the tasks
being referred to are already deleted / completed, their respective
IDs are all 0s.
Use shortened UUIDs in such case.
2016-04-03 09:35:18 -04:00
Paul Beckingham
641d232dea
Copyright: Updated to 2016
2015-12-31 15:06:43 -05:00
Paul Beckingham
79189c448c
TW-1723: task info causes segfault
...
- Thanks to Roman Golovin.
- Calls like 'context.columns[name]' autovivify the key 'name' with a default
ctor value, which ends up polluting the context.columns map with every unique
attribute name, which is a lot of 'annotation_nnnnnnnnnn' attributes.
2015-11-15 12:57:26 -05:00
Wilhelm Schuermann
8f8ad813cd
Task: Remove std::map inheritance, clean up interface
...
- Make the Task object's interface more explicit by removing the
std::map inheritance.
- Using this more explicit interface, remove unneeded ctors in order to
allow the compiler to "Do The Right Thing"(tm).
This leads to a performance improvement of 12% in the "add"
performance test, and 7% for "import".
2015-11-04 20:33:52 +01:00
Paul Beckingham
d4f6f00b29
Revert "Feedback: Converted from strtol to std::stoul"
...
This reverts commit 8f60b1f9c5 .
2015-11-02 18:38:21 -05:00
Paul Beckingham
8f60b1f9c5
Feedback: Converted from strtol to std::stoul
2015-11-01 22:09:01 -05:00
Paul Beckingham
51def4b12b
Lexer: Migrated commify, ucFirst and lowerCase from text to Lexer
2015-10-30 10:57:14 -04:00
Tomas Babej
2d25cf6f59
TW-1704: Task: Use Task::identifier to reference the task
...
To achieve consistent output, use a helper method to generate a proper
handle - ID for tasks with non-zero ID, UUID otherwise.
2015-10-29 20:00:53 -04:00
Paul Beckingham
df00368f79
feedback: Migrated from Date to ISO8601d
2015-10-03 19:27:55 -04:00
Paul Beckingham
4f156c407c
Recur: Migrated recurrence from Date to ISO8601d
...
- Changed signature of recur functions, which needed a main.h change, which led
to removing '#include <Date.h>' from main.h, which necessitated adding the
sam include to various other source files. Temporarily.
- Added 'ISO8601d ISO8601d::operator+ (time_t)', because of differences from the
original Date object.
2015-09-30 09:52:09 -04:00
Tomas Babej
4042cbf964
feedback: Replace taskDiff method by Task inequality operator
2015-09-05 17:19:18 -04:00
Paul Beckingham
4008a64fdd
Virtual Tags: New 'PROJECT', 'PRIORITY' and 'LATEST' virtual tags
...
- Added documentation.
2015-08-31 16:54:18 -04:00