home · contact · privacy
plomtask
3 months agoSet 'is_new' even when provided not-yet-existing ID, adapt and fix tests.
Christian Heller [Mon, 12 Aug 2024 09:11:54 +0000 (11:11 +0200)]
Set 'is_new' even when provided not-yet-existing ID, adapt and fix tests.

3 months agoAdd TaskHandler code to actually make previous commit work.
Christian Heller [Sat, 10 Aug 2024 03:32:55 +0000 (05:32 +0200)]
Add TaskHandler code to actually make previous commit work.

3 months agoIn Todo view, allow filling of steps below sub-steps.
Christian Heller [Sat, 10 Aug 2024 01:18:20 +0000 (03:18 +0200)]
In Todo view, allow filling of steps below sub-steps.

3 months agoMinor improvements of TaskHandler code.
Christian Heller [Sat, 10 Aug 2024 01:12:21 +0000 (03:12 +0200)]
Minor improvements of TaskHandler code.

3 months agoSimplify do_POST_todo code.
Christian Heller [Fri, 9 Aug 2024 18:04:28 +0000 (20:04 +0200)]
Simplify do_POST_todo code.

4 months agoClean up do_POST_process code.
Christian Heller [Fri, 9 Aug 2024 16:15:04 +0000 (18:15 +0200)]
Clean up do_POST_process code.

4 months agoMinor improvements to query parameter handling/defaulting.
Christian Heller [Fri, 9 Aug 2024 14:51:35 +0000 (16:51 +0200)]
Minor improvements to query parameter handling/defaulting.

4 months agoPrivate TaskHandler.conn to ._conn.
Christian Heller [Fri, 9 Aug 2024 14:14:55 +0000 (16:14 +0200)]
Private TaskHandler.conn to ._conn.

4 months agoMinor tests refactoring.
Christian Heller [Thu, 8 Aug 2024 08:13:42 +0000 (10:13 +0200)]
Minor tests refactoring.

4 months agoRename POST form key to field manipulated.
Christian Heller [Thu, 8 Aug 2024 07:52:53 +0000 (09:52 +0200)]
Rename POST form key to field manipulated.

4 months agoTreat non-sending of boolean form fields as _not_ setting them, rather than setting...
Christian Heller [Thu, 8 Aug 2024 07:01:49 +0000 (09:01 +0200)]
Treat non-sending of boolean form fields as _not_ setting them, rather than setting them negative.

4 months agoSimplify InputParser code/usage.
Christian Heller [Thu, 8 Aug 2024 03:40:51 +0000 (05:40 +0200)]
Simplify InputParser code/usage.

4 months agoFix broken POST /condition parsing of "is active" setting.
Christian Heller [Wed, 7 Aug 2024 12:57:06 +0000 (14:57 +0200)]
Fix broken POST /condition parsing of "is active" setting.

4 months agoSlightly reduce the do_POST_todo code.
Christian Heller [Mon, 5 Aug 2024 08:01:13 +0000 (10:01 +0200)]
Slightly reduce the do_POST_todo code.

4 months agoMinor improvements of Processes tests.
Christian Heller [Mon, 5 Aug 2024 07:29:05 +0000 (09:29 +0200)]
Minor improvements of Processes tests.

4 months agoImprove readability of do_POST_process handler code.
Christian Heller [Mon, 5 Aug 2024 07:07:33 +0000 (09:07 +0200)]
Improve readability of do_POST_process handler code.

4 months agoMinor fixes of freshly introduced bugs.
Christian Heller [Mon, 5 Aug 2024 05:57:34 +0000 (07:57 +0200)]
Minor fixes of freshly introduced bugs.

4 months agoSimplify POST /process form field structure.
Christian Heller [Mon, 5 Aug 2024 05:33:05 +0000 (07:33 +0200)]
Simplify POST /process form field structure.

4 months agoRefactor and extend tests, especially for Processes.
Christian Heller [Mon, 5 Aug 2024 01:53:48 +0000 (03:53 +0200)]
Refactor and extend tests, especially for Processes.

4 months agoSimplify ProcessStepsNode JSON serialization.
Christian Heller [Mon, 5 Aug 2024 01:52:36 +0000 (03:52 +0200)]
Simplify ProcessStepsNode JSON serialization.

4 months agoRe-organize testing.
Christian Heller [Fri, 2 Aug 2024 09:36:05 +0000 (11:36 +0200)]
Re-organize testing.

4 months agoMinor typing fix.
Christian Heller [Fri, 2 Aug 2024 09:30:30 +0000 (11:30 +0200)]
Minor typing fix.

4 months agoEnsure POST /day "new_todo" item order commutative.
Christian Heller [Fri, 2 Aug 2024 09:29:43 +0000 (11:29 +0200)]
Ensure POST /day "new_todo" item order commutative.

4 months agoEnsure BaseModel.all() returns sorted results.
Christian Heller [Thu, 1 Aug 2024 15:11:53 +0000 (17:11 +0200)]
Ensure BaseModel.all() returns sorted results.

4 months agoImprove readability of POST /todo code.
Christian Heller [Sun, 21 Jul 2024 07:10:53 +0000 (09:10 +0200)]
Improve readability of POST /todo code.

4 months agoRefactor POST /todo code.
Christian Heller [Sun, 21 Jul 2024 06:43:34 +0000 (08:43 +0200)]
Refactor POST /todo code.

4 months agoSimplify Condition relations setting API.
Christian Heller [Sun, 21 Jul 2024 06:14:22 +0000 (08:14 +0200)]
Simplify Condition relations setting API.

4 months agoIn POST /todo, catch more illegal 'step_filler' values.
Christian Heller [Sat, 20 Jul 2024 22:02:46 +0000 (00:02 +0200)]
In POST /todo, catch more illegal 'step_filler' values.

4 months agoExtend Todo doneness POST relations tests.
Christian Heller [Sat, 20 Jul 2024 14:08:10 +0000 (16:08 +0200)]
Extend Todo doneness POST relations tests.

4 months agoExtend Todo tests.
Christian Heller [Sat, 20 Jul 2024 09:45:16 +0000 (11:45 +0200)]
Extend Todo tests.

4 months agoExpand POST /todo adoption tests.
Christian Heller [Thu, 18 Jul 2024 04:24:41 +0000 (06:24 +0200)]
Expand POST /todo adoption tests.

4 months agoMore variable renaming for better readability.
Christian Heller [Thu, 18 Jul 2024 04:24:21 +0000 (06:24 +0200)]
More variable renaming for better readability.

4 months agoIn GET/POST /todo, remove unnecessary node ID differentiation in previous "fill_for_...
Christian Heller [Thu, 18 Jul 2024 02:56:30 +0000 (04:56 +0200)]
In GET/POST /todo, remove unnecessary node ID differentiation in previous "fill_for_" keys.

4 months agoSlightly improve code readability with comment and renaming.
Christian Heller [Thu, 18 Jul 2024 02:50:05 +0000 (04:50 +0200)]
Slightly improve code readability with comment and renaming.

4 months agoFix POST /todo crashing on non-intable 'fill_for_' adoption values.
Christian Heller [Thu, 18 Jul 2024 00:56:18 +0000 (02:56 +0200)]
Fix POST /todo crashing on non-intable 'fill_for_' adoption values.

4 months agoEnsure POST /todo autoremoval via .effort < -1 causes 404 rather than 500.
Christian Heller [Wed, 17 Jul 2024 23:32:56 +0000 (01:32 +0200)]
Ensure POST /todo autoremoval via .effort < -1 causes 404 rather than 500.

4 months agoOn GET /todo, sort Process candidates. Minor improvements to Todo tests.
Christian Heller [Wed, 17 Jul 2024 21:50:25 +0000 (23:50 +0200)]
On GET /todo, sort Process candidates. Minor improvements to Todo tests.

4 months agoMinor improvements to Todo tests.
Christian Heller [Wed, 17 Jul 2024 20:52:34 +0000 (22:52 +0200)]
Minor improvements to Todo tests.

4 months agoExtend Todo tests.
Christian Heller [Wed, 17 Jul 2024 20:19:54 +0000 (22:19 +0200)]
Extend Todo tests.

4 months agoFix duplicate node IDs in Todo view.
Christian Heller [Wed, 17 Jul 2024 20:19:15 +0000 (22:19 +0200)]
Fix duplicate node IDs in Todo view.

4 months agoExtend Todo tests.
Christian Heller [Wed, 17 Jul 2024 00:50:53 +0000 (02:50 +0200)]
Extend Todo tests.

4 months agoMinor code style/comment/type hinting improvements.
Christian Heller [Tue, 16 Jul 2024 22:48:44 +0000 (00:48 +0200)]
Minor code style/comment/type hinting improvements.

4 months agoOverhaul/simplify ctx to JSON dictification.
Christian Heller [Tue, 16 Jul 2024 21:56:58 +0000 (23:56 +0200)]
Overhaul/simplify ctx to JSON dictification.

4 months agoRe-organize most page/JSON rendering code from TaskServer into TaskHandler.
Christian Heller [Tue, 16 Jul 2024 19:45:04 +0000 (21:45 +0200)]
Re-organize most page/JSON rendering code from TaskServer into TaskHandler.

4 months agoExtend Todo tests, overhaul Ctx library building.
Christian Heller [Mon, 15 Jul 2024 06:40:48 +0000 (08:40 +0200)]
Extend Todo tests, overhaul Ctx library building.

4 months agoOn /todo POSTs, improve handling of malformed fill_for fields.
Christian Heller [Sun, 14 Jul 2024 20:21:43 +0000 (22:21 +0200)]
On /todo POSTs, improve handling of malformed fill_for fields.

4 months agoAdd InputsParser.get_float_or_none.
Christian Heller [Sun, 14 Jul 2024 20:15:11 +0000 (22:15 +0200)]
Add InputsParser.get_float_or_none.

4 months agoReturn NotFoundExceptions from InputsParser if no value found to key.
Christian Heller [Sun, 14 Jul 2024 20:10:34 +0000 (22:10 +0200)]
Return NotFoundExceptions from InputsParser if no value found to key.

4 months agoSlightly improve/re-factor Day tests.
Christian Heller [Sun, 14 Jul 2024 17:23:25 +0000 (19:23 +0200)]
Slightly improve/re-factor Day tests.

4 months agoReduce depedency of Days testing on plomtask.dating code.
Christian Heller [Sun, 14 Jul 2024 16:07:50 +0000 (18:07 +0200)]
Reduce depedency of Days testing on plomtask.dating code.

4 months agoTighten mypy controls around consistency of list/tuple/etc. elements, or add suggesti...
Christian Heller [Sun, 14 Jul 2024 14:57:21 +0000 (16:57 +0200)]
Tighten mypy controls around consistency of list/tuple/etc. elements, or add suggestions towards doing that.

4 months agoMinor refactoring.
Christian Heller [Fri, 12 Jul 2024 07:32:44 +0000 (09:32 +0200)]
Minor refactoring.

4 months agoAdd previously forgotten GET /calendar_txt template.
Christian Heller [Fri, 12 Jul 2024 07:01:23 +0000 (09:01 +0200)]
Add previously forgotten GET /calendar_txt template.

4 months agoOverhaul date ranging and its tests.
Christian Heller [Fri, 12 Jul 2024 06:59:27 +0000 (08:59 +0200)]
Overhaul date ranging and its tests.

4 months agoRename decorators for clearer meaning.
Christian Heller [Fri, 12 Jul 2024 04:02:39 +0000 (06:02 +0200)]
Rename decorators for clearer meaning.

4 months agoOn BaseModel.sort_by, always sort by .id_ first, for predictability.
Christian Heller [Fri, 12 Jul 2024 00:31:25 +0000 (02:31 +0200)]
On BaseModel.sort_by, always sort by .id_ first, for predictability.

4 months agoLots of refactoring.
Christian Heller [Thu, 11 Jul 2024 15:12:53 +0000 (17:12 +0200)]
Lots of refactoring.

4 months agoRun VersionedAttributes tests over all models.
Christian Heller [Thu, 11 Jul 2024 05:34:11 +0000 (07:34 +0200)]
Run VersionedAttributes tests over all models.

4 months agoMinor test code improvements.
Christian Heller [Thu, 11 Jul 2024 02:19:44 +0000 (04:19 +0200)]
Minor test code improvements.

5 months agoSlightly improve and re-organize Condition tests.
Christian Heller [Sat, 22 Jun 2024 02:53:16 +0000 (04:53 +0200)]
Slightly improve and re-organize Condition tests.

5 months agoExpand GET /process and /processes tests.
Christian Heller [Sat, 22 Jun 2024 02:52:26 +0000 (04:52 +0200)]
Expand GET /process and /processes tests.

5 months agoAdapt tests to new cache emptying reality.
Christian Heller [Sat, 22 Jun 2024 02:51:52 +0000 (04:51 +0200)]
Adapt tests to new cache emptying reality.

5 months agoIn GET /process handler, catch malformed ?title_b64= params.
Christian Heller [Sat, 22 Jun 2024 02:49:29 +0000 (04:49 +0200)]
In GET /process handler, catch malformed ?title_b64= params.

5 months agoEmpty cache more often to avoid race conditions.
Christian Heller [Sat, 22 Jun 2024 02:43:08 +0000 (04:43 +0200)]
Empty cache more often to avoid race conditions.

5 months agoRefactor BaseModel sorting from GET handlers into class definitions.
Christian Heller [Fri, 21 Jun 2024 22:16:33 +0000 (00:16 +0200)]
Refactor BaseModel sorting from GET handlers into class definitions.

5 months agoMinor reorganization of GET handlers code.
Christian Heller [Fri, 21 Jun 2024 21:46:25 +0000 (23:46 +0200)]
Minor reorganization of GET handlers code.

5 months agoGreatly expand GET /calendar tests.
Christian Heller [Fri, 21 Jun 2024 21:31:35 +0000 (23:31 +0200)]
Greatly expand GET /calendar tests.

5 months agoFuse Day.by_id_or_create and Day.by_id, as valid_date call in the first one fits...
Christian Heller [Fri, 21 Jun 2024 21:29:18 +0000 (23:29 +0200)]
Fuse Day.by_id_or_create and Day.by_id, as valid_date call in the first one fits better into the second.

5 months agoRe-organize and extend/improve POST/GET /day tests.
Christian Heller [Fri, 21 Jun 2024 18:18:24 +0000 (20:18 +0200)]
Re-organize and extend/improve POST/GET /day tests.

5 months agoRe-organize and extend POST/GET /day tests.
Christian Heller [Fri, 21 Jun 2024 16:50:53 +0000 (18:50 +0200)]
Re-organize and extend POST/GET /day tests.

5 months agoAvoid confusing Day.by_id_or_create by always translating dating string first, so...
Christian Heller [Fri, 21 Jun 2024 16:26:04 +0000 (18:26 +0200)]
Avoid confusing Day.by_id_or_create by always translating dating string first, so a look-up for "today" or so does not ignore the date equivalents.

5 months agoExtend POST /day testing.
Christian Heller [Fri, 21 Jun 2024 15:40:09 +0000 (17:40 +0200)]
Extend POST /day testing.

5 months agoImprove POST /day input validation.
Christian Heller [Fri, 21 Jun 2024 15:37:33 +0000 (17:37 +0200)]
Improve POST /day input validation.

5 months agoClean up and extend /condition[s] GET/POST tests.
Christian Heller [Fri, 21 Jun 2024 14:29:15 +0000 (16:29 +0200)]
Clean up and extend /condition[s] GET/POST tests.

5 months agoRefactor request handler identifying items by ID param on GET.
Christian Heller [Fri, 21 Jun 2024 13:26:37 +0000 (15:26 +0200)]
Refactor request handler identifying items by ID param on GET.

5 months agoTidy up (even if pylint disapproves) unwieldy POST handlers code.
Christian Heller [Fri, 21 Jun 2024 12:02:22 +0000 (14:02 +0200)]
Tidy up (even if pylint disapproves) unwieldy POST handlers code.

5 months agoRefactor request handler delete or retrieving items on POST.
Christian Heller [Fri, 21 Jun 2024 04:18:54 +0000 (06:18 +0200)]
Refactor request handler delete or retrieving items on POST.

5 months agoRefactor .as_dict integration of Process.explicit_steps, Day.todos.
Christian Heller [Fri, 21 Jun 2024 02:58:56 +0000 (04:58 +0200)]
Refactor .as_dict integration of Process.explicit_steps, Day.todos.

5 months agoMore tests refactoring.
Christian Heller [Fri, 21 Jun 2024 02:35:22 +0000 (04:35 +0200)]
More tests refactoring.

5 months agoMinor refactoring of Days tests.
Christian Heller [Fri, 21 Jun 2024 02:07:07 +0000 (04:07 +0200)]
Minor refactoring of Days tests.

5 months agoRename "condition"/"blocker" input names to plurals, like they are everywhere else.
Christian Heller [Fri, 21 Jun 2024 01:47:34 +0000 (03:47 +0200)]
Rename "condition"/"blocker" input names to plurals, like they are everywhere else.

5 months agoExtend Days test to behavior of Conditions.
Christian Heller [Fri, 21 Jun 2024 00:29:39 +0000 (02:29 +0200)]
Extend Days test to behavior of Conditions.

5 months agoFix disablers_for/enablers_for in GET_day breaking as_dict.
Christian Heller [Fri, 21 Jun 2024 00:28:16 +0000 (02:28 +0200)]
Fix disablers_for/enablers_for in GET_day breaking as_dict.

5 months agoMore Days HTTP testing refactoring.
Christian Heller [Thu, 20 Jun 2024 21:42:45 +0000 (23:42 +0200)]
More Days HTTP testing refactoring.

5 months agoSome tests refactoring.
Christian Heller [Thu, 20 Jun 2024 21:29:25 +0000 (23:29 +0200)]
Some tests refactoring.

5 months agoTurn TodoNode into full class with .as_dict, with result expand Day tests.
Christian Heller [Thu, 20 Jun 2024 21:03:06 +0000 (23:03 +0200)]
Turn TodoNode into full class with .as_dict, with result expand Day tests.

5 months agoOverhaul as_dict generation to avoid endless nesting of objects.
Christian Heller [Thu, 20 Jun 2024 20:36:36 +0000 (22:36 +0200)]
Overhaul as_dict generation to avoid endless nesting of objects.

5 months agoRefactor tests, expand Days testing.
Christian Heller [Thu, 20 Jun 2024 11:50:50 +0000 (13:50 +0200)]
Refactor tests, expand Days testing.

5 months agoReduce CSS magic in Day template for Condition-Todo lines to ASCII art.
Christian Heller [Thu, 20 Jun 2024 08:56:22 +0000 (10:56 +0200)]
Reduce CSS magic in Day template for Condition-Todo lines to ASCII art.

5 months agoIn Day template, improve visual connection between Conditions and Todos.
Christian Heller [Thu, 20 Jun 2024 08:11:11 +0000 (10:11 +0200)]
In Day template, improve visual connection between Conditions and Todos.

5 months agoRemove and shrink tests under redundancy with test utils defaults.
Christian Heller [Tue, 18 Jun 2024 08:57:27 +0000 (10:57 +0200)]
Remove and shrink tests under redundancy with test utils defaults.

5 months agoRe-factor TestCaseSansDB methods.
Christian Heller [Tue, 18 Jun 2024 08:40:02 +0000 (10:40 +0200)]
Re-factor TestCaseSansDB methods.

5 months agoExtend BaseModel.by_id_or_create test.
Christian Heller [Tue, 18 Jun 2024 08:22:59 +0000 (10:22 +0200)]
Extend BaseModel.by_id_or_create test.

5 months agoRefactor remaining test.utils helpers into actual tests.
Christian Heller [Tue, 18 Jun 2024 08:05:18 +0000 (10:05 +0200)]
Refactor remaining test.utils helpers into actual tests.

5 months agoRefactor saving and caching tests, treatment of None IDs.
Christian Heller [Tue, 18 Jun 2024 05:02:04 +0000 (07:02 +0200)]
Refactor saving and caching tests, treatment of None IDs.

5 months agoSplit BaseModel.by_id into .by_id and by_id_or_create, refactor tests.
Christian Heller [Tue, 18 Jun 2024 02:37:57 +0000 (04:37 +0200)]
Split BaseModel.by_id into .by_id and by_id_or_create, refactor tests.

5 months agoSome test utils refactoring.
Christian Heller [Tue, 18 Jun 2024 01:58:37 +0000 (03:58 +0200)]
Some test utils refactoring.

5 months agoRefactor .all() tests.
Christian Heller [Tue, 18 Jun 2024 01:46:20 +0000 (03:46 +0200)]
Refactor .all() tests.

5 months agoRefactor singularity tests.
Christian Heller [Tue, 18 Jun 2024 00:05:43 +0000 (02:05 +0200)]
Refactor singularity tests.

5 months agoRefactor BaseModel.from_table_row testing.
Christian Heller [Mon, 17 Jun 2024 23:54:46 +0000 (01:54 +0200)]
Refactor BaseModel.from_table_row testing.