Commit Graph

1556 Commits

Author SHA1 Message Date
f4dbd3b0fa filter: initialize scope correctly 2023-07-12 12:02:24 +02:00
b1b0f0c8b5 translation update 2023-07-11 13:20:42 +02:00
3f6c5ecfb2 Filter now accepts headers syntax for column names 2023-07-06 20:43:42 +02:00
ceb78f4f32 Filter: minor styles adjustments 2023-07-06 17:56:51 +02:00
1a14d30275 Pack and sort filter values only in the dedicated method 2023-07-06 17:56:51 +02:00
7974a36089 Remove some unnecessary texts 2023-07-06 17:56:51 +02:00
95088304c3 Introduce inheritance in filter classes 2023-07-06 17:56:51 +02:00
a8d7a5591a Filter: better handling of column names and labels 2023-07-06 17:56:51 +02:00
4fc1424af8 New syntax component "filter" 2023-07-06 17:56:51 +02:00
ae522a2d9d correctly nest items with the same values with different parents 2023-07-06 10:12:51 +02:00
4702d11918 Version upped 2023-07-05 2023-07-05 23:51:46 +02:00
f50405fa3e code sniffer fixes 2023-07-05 17:16:56 +02:00
1f53b3d543 do not sort lists alphabetically
Now nested lists reflect the result set order again. The only exception
being the index level which is always sorted alphabetically. N/A entries
are still always last.
2023-07-05 17:13:35 +02:00
58903f7749 Merge branch 'latest-flag' 2023-07-05 13:48:18 +02:00
1855a1f9cf make empty values easier to see in list dump method 2023-07-05 13:47:39 +02:00
eff6062ec0 Provide mechanism for disabling default select filter 'latest = 1' 2023-07-05 13:45:52 +02:00
7b7a9290f8 lists: correctly handle nesting with empty values
empty values are shown as n/a when they are used in nesting, otherwise
not shown just as before
2023-07-05 13:40:01 +02:00
25609b9d97 Version upped 2023-07-04 2023-07-04 23:51:44 +02:00
fb2252eac3 fix accidentally broken test
This was broken by changing test data in the previous commit
2023-07-04 15:11:03 +02:00
71769bc3a6 add failing test for #512 2023-07-04 14:00:11 +02:00
71b11d8bec add default style for indexed lists 2023-06-26 15:31:15 +02:00
026d10982b index based on display not compare value 2023-06-26 15:30:58 +02:00
af0ce8d2fb added classes config parameter
This allows users to set custom CSS classes on aggregations potentially
restyling them differently for different use cases.

This makes startScope and finishScope part of the public API of the
Aggregation class. It should no longer be called within render() but is
instead called outside.

This might potentially break plugins implementing their own
aggregations. Needs to be checked
2023-06-26 15:09:40 +02:00
00f71f1792 fixed tests and codesniffer complaints 2023-06-26 14:31:25 +02:00
ce44c6393f Add indexing support
Using the index keyword, lists can now have an alphabetical Index at the
top level.
2023-06-26 14:15:23 +02:00
1ee0a2dc29 only have unique result rows when nesting
This fixes row duplication on nesting with multiple multival fields
2023-06-26 13:27:42 +02:00
d90aa84868 some streamlining for the aggregation classes
Have an abstract base class for aggregations to ensure proper
signatures, reuse more code from the table syntax
2023-06-22 15:58:17 +02:00
f6acb21555 fixed tests 2023-06-22 15:38:30 +02:00
5bc00e117f Add nesting option for List Aggregations
This allows to create nested lists based on the selected number of
result columns. This is basically a group-by after the fact and
displaying it in a tree. Multivalues are split up for grouping, so that
a result can be nested by tags for example.
2023-06-22 15:05:08 +02:00
6e2eda8d1f Version upped 2023-06-20 2023-06-22 08:21:20 +02:00
6dc5ccf720 Merge branch 'sqlite-devel'
* sqlite-devel:
  use GROUP_CONCAT_DISTINCT
  adjust method call for getting PDO access
  Make all tests run with the new SQLiteDB class
  Use new \dokuwiki\plugin\sqlite\SQLiteDB class for DB access
2023-06-22 08:07:08 +02:00
acc82d60da use GROUP_CONCAT_DISTINCT 2023-06-20 11:21:36 +02:00
4183cc11b9 adjust method call for getting PDO access 2023-06-14 15:17:43 +02:00
87f800c2f3 Version upped 2023-06-12 2023-06-12 23:51:44 +02:00
be4dde7782 avoid warning in syntax/output 2023-06-12 13:33:53 +02:00
438a804c3e Make all tests run with the new SQLiteDB class 2023-05-25 18:25:01 +02:00
79b29326ae Use new \dokuwiki\plugin\sqlite\SQLiteDB class for DB access 2023-05-24 16:38:34 +02:00
3bd3c3d435 Version upped 2023-04-18 2023-04-18 23:51:41 +02:00
64480a7b45 Fix code style violations 2023-04-18 13:15:37 +02:00
b360e3b5f0 Improve replacement of user fields in buraucracy templates 2023-04-18 13:11:08 +02:00
fef50e52d3 Prevent inline aditor from breaking on fields with a dot in field name 2023-04-18 13:11:08 +02:00
da776bcd8d Fix type errors with empty 'roundto' setting in decimals 2023-04-18 13:11:08 +02:00
1ecfb2b404 Version upped 2023-04-06 2023-04-06 23:51:39 +02:00
460e822f15 code style fixes 2023-04-06 08:47:33 +02:00
3ff5da8ae6 fixed flaky test
It was depending on timing.
2023-04-06 08:34:00 +02:00
79be43a4f1 Merge pull request #638 from cmacmackin/fix_datetime_filter
Schema to test filtering DateTime data
2023-04-06 08:18:03 +02:00
82619850b2 Version upped 2023-04-05 2023-04-05 23:51:41 +02:00
ec57c91426 Schema to test filtering DateTime data 2023-04-05 21:53:54 +01:00
6a819106d9 more test and deprecation fixes 2023-04-05 13:39:15 +02:00
76e537bf11 more test fixes 2023-04-05 13:08:02 +02:00