home · contact · privacy
Christian Heller [Sat, 10 Aug 2024 01:12:21 +0000 (03:12 +0200)]
Minor improvements of TaskHandler code.
Christian Heller [Fri, 9 Aug 2024 18:04:28 +0000 (20:04 +0200)]
Simplify do_POST_todo code.
Christian Heller [Fri, 9 Aug 2024 16:15:04 +0000 (18:15 +0200)]
Clean up do_POST_process code.
Christian Heller [Fri, 9 Aug 2024 14:51:35 +0000 (16:51 +0200)]
Minor improvements to query parameter handling/defaulting.
Christian Heller [Fri, 9 Aug 2024 14:14:55 +0000 (16:14 +0200)]
Private TaskHandler.conn to ._conn.
Christian Heller [Thu, 8 Aug 2024 08:13:42 +0000 (10:13 +0200)]
Minor tests refactoring.
Christian Heller [Thu, 8 Aug 2024 07:52:53 +0000 (09:52 +0200)]
Rename POST form key to field manipulated.
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.
Christian Heller [Thu, 8 Aug 2024 03:40:51 +0000 (05:40 +0200)]
Simplify InputParser code/usage.
Christian Heller [Wed, 7 Aug 2024 12:57:06 +0000 (14:57 +0200)]
Fix broken POST /condition parsing of "is active" setting.
Christian Heller [Mon, 5 Aug 2024 08:01:13 +0000 (10:01 +0200)]
Slightly reduce the do_POST_todo code.
Christian Heller [Mon, 5 Aug 2024 07:29:05 +0000 (09:29 +0200)]
Minor improvements of Processes tests.
Christian Heller [Mon, 5 Aug 2024 07:07:33 +0000 (09:07 +0200)]
Improve readability of do_POST_process handler code.
Christian Heller [Mon, 5 Aug 2024 05:57:34 +0000 (07:57 +0200)]
Minor fixes of freshly introduced bugs.
Christian Heller [Mon, 5 Aug 2024 05:33:05 +0000 (07:33 +0200)]
Simplify POST /process form field structure.
Christian Heller [Mon, 5 Aug 2024 01:53:48 +0000 (03:53 +0200)]
Refactor and extend tests, especially for Processes.
Christian Heller [Mon, 5 Aug 2024 01:52:36 +0000 (03:52 +0200)]
Simplify ProcessStepsNode JSON serialization.
Christian Heller [Fri, 2 Aug 2024 09:36:05 +0000 (11:36 +0200)]
Re-organize testing.
Christian Heller [Fri, 2 Aug 2024 09:30:30 +0000 (11:30 +0200)]
Minor typing fix.
Christian Heller [Fri, 2 Aug 2024 09:29:43 +0000 (11:29 +0200)]
Ensure POST /day "new_todo" item order commutative.
Christian Heller [Thu, 1 Aug 2024 15:11:53 +0000 (17:11 +0200)]
Ensure BaseModel.all() returns sorted results.
Christian Heller [Sun, 21 Jul 2024 07:10:53 +0000 (09:10 +0200)]
Improve readability of POST /todo code.
Christian Heller [Sun, 21 Jul 2024 06:43:34 +0000 (08:43 +0200)]
Refactor POST /todo code.
Christian Heller [Sun, 21 Jul 2024 06:14:22 +0000 (08:14 +0200)]
Simplify Condition relations setting API.
Christian Heller [Sat, 20 Jul 2024 22:02:46 +0000 (00:02 +0200)]
In POST /todo, catch more illegal 'step_filler' values.
Christian Heller [Sat, 20 Jul 2024 14:08:10 +0000 (16:08 +0200)]
Extend Todo doneness POST relations tests.
Christian Heller [Sat, 20 Jul 2024 09:45:16 +0000 (11:45 +0200)]
Extend Todo tests.
Christian Heller [Thu, 18 Jul 2024 04:24:41 +0000 (06:24 +0200)]
Expand POST /todo adoption tests.
Christian Heller [Thu, 18 Jul 2024 04:24:21 +0000 (06:24 +0200)]
More variable renaming for better readability.
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.
Christian Heller [Thu, 18 Jul 2024 02:50:05 +0000 (04:50 +0200)]
Slightly improve code readability with comment and renaming.
Christian Heller [Thu, 18 Jul 2024 00:56:18 +0000 (02:56 +0200)]
Fix POST /todo crashing on non-intable 'fill_for_' adoption values.
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.
Christian Heller [Wed, 17 Jul 2024 21:50:25 +0000 (23:50 +0200)]
On GET /todo, sort Process candidates. Minor improvements to Todo tests.
Christian Heller [Wed, 17 Jul 2024 20:52:34 +0000 (22:52 +0200)]
Minor improvements to Todo tests.
Christian Heller [Wed, 17 Jul 2024 20:19:54 +0000 (22:19 +0200)]
Extend Todo tests.
Christian Heller [Wed, 17 Jul 2024 20:19:15 +0000 (22:19 +0200)]
Fix duplicate node IDs in Todo view.
Christian Heller [Wed, 17 Jul 2024 00:50:53 +0000 (02:50 +0200)]
Extend Todo tests.
Christian Heller [Tue, 16 Jul 2024 22:48:44 +0000 (00:48 +0200)]
Minor code style/comment/type hinting improvements.
Christian Heller [Tue, 16 Jul 2024 21:56:58 +0000 (23:56 +0200)]
Overhaul/simplify ctx to JSON dictification.
Christian Heller [Tue, 16 Jul 2024 19:45:04 +0000 (21:45 +0200)]
Re-organize most page/JSON rendering code from TaskServer into TaskHandler.
Christian Heller [Mon, 15 Jul 2024 06:40:48 +0000 (08:40 +0200)]
Extend Todo tests, overhaul Ctx library building.
Christian Heller [Sun, 14 Jul 2024 20:21:43 +0000 (22:21 +0200)]
On /todo POSTs, improve handling of malformed fill_for fields.
Christian Heller [Sun, 14 Jul 2024 20:15:11 +0000 (22:15 +0200)]
Add InputsParser.get_float_or_none.
Christian Heller [Sun, 14 Jul 2024 20:10:34 +0000 (22:10 +0200)]
Return NotFoundExceptions from InputsParser if no value found to key.
Christian Heller [Sun, 14 Jul 2024 17:23:25 +0000 (19:23 +0200)]
Slightly improve/re-factor Day tests.
Christian Heller [Sun, 14 Jul 2024 16:07:50 +0000 (18:07 +0200)]
Reduce depedency of Days testing on plomtask.dating code.
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.
Christian Heller [Fri, 12 Jul 2024 07:32:44 +0000 (09:32 +0200)]
Minor refactoring.
Christian Heller [Fri, 12 Jul 2024 07:01:23 +0000 (09:01 +0200)]
Add previously forgotten GET /calendar_txt template.
Christian Heller [Fri, 12 Jul 2024 06:59:27 +0000 (08:59 +0200)]
Overhaul date ranging and its tests.
Christian Heller [Fri, 12 Jul 2024 04:02:39 +0000 (06:02 +0200)]
Rename decorators for clearer meaning.
Christian Heller [Fri, 12 Jul 2024 00:31:25 +0000 (02:31 +0200)]
On BaseModel.sort_by, always sort by .id_ first, for predictability.
Christian Heller [Thu, 11 Jul 2024 15:12:53 +0000 (17:12 +0200)]
Lots of refactoring.
Christian Heller [Thu, 11 Jul 2024 05:34:11 +0000 (07:34 +0200)]
Run VersionedAttributes tests over all models.
Christian Heller [Thu, 11 Jul 2024 02:19:44 +0000 (04:19 +0200)]
Minor test code improvements.
Christian Heller [Sat, 22 Jun 2024 02:53:16 +0000 (04:53 +0200)]
Slightly improve and re-organize Condition tests.
Christian Heller [Sat, 22 Jun 2024 02:52:26 +0000 (04:52 +0200)]
Expand GET /process and /processes tests.
Christian Heller [Sat, 22 Jun 2024 02:51:52 +0000 (04:51 +0200)]
Adapt tests to new cache emptying reality.
Christian Heller [Sat, 22 Jun 2024 02:49:29 +0000 (04:49 +0200)]
In GET /process handler, catch malformed ?title_b64= params.
Christian Heller [Sat, 22 Jun 2024 02:43:08 +0000 (04:43 +0200)]
Empty cache more often to avoid race conditions.
Christian Heller [Fri, 21 Jun 2024 22:16:33 +0000 (00:16 +0200)]
Refactor BaseModel sorting from GET handlers into class definitions.
Christian Heller [Fri, 21 Jun 2024 21:46:25 +0000 (23:46 +0200)]
Minor reorganization of GET handlers code.
Christian Heller [Fri, 21 Jun 2024 21:31:35 +0000 (23:31 +0200)]
Greatly expand GET /calendar tests.
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.
Christian Heller [Fri, 21 Jun 2024 18:18:24 +0000 (20:18 +0200)]
Re-organize and extend/improve 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.
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.
Christian Heller [Fri, 21 Jun 2024 15:40:09 +0000 (17:40 +0200)]
Extend POST /day testing.
Christian Heller [Fri, 21 Jun 2024 15:37:33 +0000 (17:37 +0200)]
Improve POST /day input validation.
Christian Heller [Fri, 21 Jun 2024 14:29:15 +0000 (16:29 +0200)]
Clean up and extend /condition[s] GET/POST tests.
Christian Heller [Fri, 21 Jun 2024 13:26:37 +0000 (15:26 +0200)]
Refactor request handler identifying items by ID param on GET.
Christian Heller [Fri, 21 Jun 2024 12:02:22 +0000 (14:02 +0200)]
Tidy up (even if pylint disapproves) unwieldy POST handlers code.
Christian Heller [Fri, 21 Jun 2024 04:18:54 +0000 (06:18 +0200)]
Refactor request handler delete or retrieving items on POST.
Christian Heller [Fri, 21 Jun 2024 02:58:56 +0000 (04:58 +0200)]
Refactor .as_dict integration of Process.explicit_steps, Day.todos.
Christian Heller [Fri, 21 Jun 2024 02:35:22 +0000 (04:35 +0200)]
More tests refactoring.
Christian Heller [Fri, 21 Jun 2024 02:07:07 +0000 (04:07 +0200)]
Minor refactoring of Days tests.
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.
Christian Heller [Fri, 21 Jun 2024 00:29:39 +0000 (02:29 +0200)]
Extend Days test to behavior of Conditions.
Christian Heller [Fri, 21 Jun 2024 00:28:16 +0000 (02:28 +0200)]
Fix disablers_for/enablers_for in GET_day breaking as_dict.
Christian Heller [Thu, 20 Jun 2024 21:42:45 +0000 (23:42 +0200)]
More Days HTTP testing refactoring.
Christian Heller [Thu, 20 Jun 2024 21:29:25 +0000 (23:29 +0200)]
Some tests refactoring.
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.
Christian Heller [Thu, 20 Jun 2024 20:36:36 +0000 (22:36 +0200)]
Overhaul as_dict generation to avoid endless nesting of objects.
Christian Heller [Thu, 20 Jun 2024 11:50:50 +0000 (13:50 +0200)]
Refactor tests, expand Days testing.
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.
Christian Heller [Thu, 20 Jun 2024 08:11:11 +0000 (10:11 +0200)]
In Day template, improve visual connection between Conditions and Todos.
Christian Heller [Tue, 18 Jun 2024 08:57:27 +0000 (10:57 +0200)]
Remove and shrink tests under redundancy with test utils defaults.
Christian Heller [Tue, 18 Jun 2024 08:40:02 +0000 (10:40 +0200)]
Re-factor TestCaseSansDB methods.
Christian Heller [Tue, 18 Jun 2024 08:22:59 +0000 (10:22 +0200)]
Extend BaseModel.by_id_or_create test.
Christian Heller [Tue, 18 Jun 2024 08:05:18 +0000 (10:05 +0200)]
Refactor remaining test.utils helpers into actual tests.
Christian Heller [Tue, 18 Jun 2024 05:02:04 +0000 (07:02 +0200)]
Refactor saving and caching tests, treatment of None IDs.
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.
Christian Heller [Tue, 18 Jun 2024 01:58:37 +0000 (03:58 +0200)]
Some test utils refactoring.
Christian Heller [Tue, 18 Jun 2024 01:46:20 +0000 (03:46 +0200)]
Refactor .all() tests.
Christian Heller [Tue, 18 Jun 2024 00:05:43 +0000 (02:05 +0200)]
Refactor singularity tests.
Christian Heller [Mon, 17 Jun 2024 23:54:46 +0000 (01:54 +0200)]
Refactor BaseModel.from_table_row testing.
Christian Heller [Mon, 17 Jun 2024 23:03:19 +0000 (01:03 +0200)]
On cache emptying, also ._disappear() any objects held in it.
Christian Heller [Mon, 17 Jun 2024 21:28:13 +0000 (23:28 +0200)]
Refactor BaseModel.from_table_row in regards to VersionedAttributes.
Christian Heller [Mon, 17 Jun 2024 21:16:38 +0000 (23:16 +0200)]
Fix pre-commit script failing to delete test DBs based on new filename format.