Vivek Patel
ef72ffa373
Fix total and page navigation for records
...
Introduce helper func(IteratorPaging) to count total and create page navigation for records and also fixes timezone and milliseconds fir dateTime field value for query.
2022-09-30 18:29:38 +05:30
Tomaž Jerman
7eaab982b7
Fix lapsus with join row merge mapping
2022-09-30 13:41:07 +02:00
Tomaž Jerman
79f3c4ba46
Add provision for report migration
2022-09-30 10:07:47 +02:00
Tomaž Jerman
d18c8bd80d
Quick fix for invalid aggregate attribute type determination
...
The logic should change along with how pipeline description
is done and how the pipeline represents attributes.
2022-09-29 22:21:46 +02:00
Tomaž Jerman
8d480e67c0
Allow rdbms model ops to use already parsed filter expressions
2022-09-29 16:34:00 +02:00
Tomaž Jerman
75a3394d15
Make DAL QL functions consistent and introduce DAY
...
* date outputs the date without the time part
* day outputs the day of the month
2022-09-29 15:40:36 +02:00
Tomaž Jerman
e240013386
Add missing types to paging cursor's value guesser
2022-09-29 13:43:54 +02:00
Tomaž Jerman
c587db760e
Prefix DAL pipeline join attributes with source identifier
...
This helps avoid name collisions in case the identifiers weren't
provided manually.
2022-09-29 13:43:54 +02:00
Tomaž Jerman
5fa45e0cf7
Make ql parser init more flexible
2022-09-29 13:43:54 +02:00
Tomaž Jerman
92c2a0d12e
Add system field translations for report data frames
2022-09-28 11:05:51 +02:00
Tomaž Jerman
7360b72dbf
Fix query interval definitions for date add/sub
2022-09-28 10:10:49 +02:00
Denis Arh
2d07357a75
Test HTTP server options before init/activation
...
Prevents full server initialization and activation on broken connections
and when Corteza can not listen for HTTP requests.
2022-09-28 07:27:42 +02:00
Tomaž Jerman
64ad7e0535
Reword link predicate check error messages
2022-09-26 14:24:49 +02:00
Tomaž Jerman
53f3297579
Add tests for multi-value fields for DAL join step
2022-09-23 16:13:14 +02:00
Tomaž Jerman
7e2fec6da1
Improve aggregate's multi-value support to match the legacy version
2022-09-23 13:58:44 +02:00
Tomaž Jerman
95d4eba4eb
Fix limit condition lapsus in DAL pipeline join
2022-09-22 12:32:12 +02:00
Tomaž Jerman
956547a893
Revert "Skip broken tests for dev.3 release"
...
This reverts commit 340873c82e .
2022-09-22 12:28:17 +02:00
Tomaž Jerman
d7ecbafa66
Fixed improper limit check for aggregate and join
2022-09-22 12:25:46 +02:00
Vivek Patel
340873c82e
Skip broken tests for dev.3 release
2022-09-21 19:34:05 +05:30
Vivek Patel
9d46f5c234
Add duplicate detection for compose record values
...
For now only case-sensitive detection is supported, there are 2 type of duplicate detection, one is strict mode which will throw an error on record save if there is any duplicate record with matching value and non-strict mode will only show a warning and won't prevent record saving.
2022-09-21 19:24:43 +05:30
Tomaž Jerman
b3cdbd060f
Add paging tests for pipeline aggregate and join
2022-09-21 13:24:10 +02:00
Tomaž Jerman
408bfbcc7d
Fix aggregator incorrectly determining if we're copying values
...
In case the expression uses simple attr. reference, there is no
need to initialize expr. runners.
The old logic didn't do this correctly.
2022-09-20 15:45:01 +02:00
Tomaž Jerman
c5c7ca011b
Use module field label for DAL pipeline outputs
2022-09-20 13:11:24 +02:00
Denis Arh
fab9371805
Fix unclosed file-handles (attachments) #410
2022-09-20 12:34:28 +02:00
Tomaž Jerman
40bce0b2c6
Fix remaining tests
2022-09-20 12:10:37 +02:00
Tomaž Jerman
1d7f82172e
Refactor execution steps to offload more state preparation
...
Extract most validation/initialization/preparation logic from
pipeline execution steps into definition steps.
2022-09-19 16:22:37 +02:00
Denis Arh
3050cda023
Add RDBMS DAL model validation
...
This will prevent misconfigured models with atributes that read from the
same columns. This constraint could/should be removed in the
future.
2022-09-16 12:57:42 +02:00
Tomaž Jerman
077788d9b8
Remove operations from models and connections
...
For now, operations will be defined on a DB driver.
2022-09-15 13:55:21 +02:00
Tomaž Jerman
da24de8b09
Add attribute ident normalization to support legacy names
...
Older versions allowed more variations for the same system ident.
New one does not; normalization is a temporary solution for it.
2022-09-15 12:06:49 +02:00
Tomaž Jerman
9fdb86c4cf
Add date_format to supported QL functions
2022-09-15 12:06:49 +02:00
Denis Arh
d1dd4d1a0c
Support SQLite table & index creation
2022-09-14 12:18:43 +02:00
Denis Arh
44ba447678
Add support for meta data on attribute types (rdbms:type=integer)
2022-09-14 12:18:43 +02:00
Denis Arh
6939d9e226
Model definition fixes (dal, index)
2022-09-14 12:18:43 +02:00
Denis Arh
4e96804d46
Add support for RDBMS index creation
2022-09-14 12:18:43 +02:00
Denis Arh
5992471337
Add support for default values for RDBMS columns
2022-09-14 12:18:43 +02:00
Denis Arh
a6c0d8ecee
Base support for creating RDBMS tables from models
2022-09-14 12:18:43 +02:00
Tomaž Jerman
7d18058f58
Rework the cmpose report endpoint to the DAL pipeline
2022-09-14 10:17:22 +02:00
Peter Grlica
7f0fe201db
Deprecated Corteza plugin support
...
The current plugin support was not stable enough in go >= 1.18, so the
current implementation was dropped for a future alternate solution.
2022-09-13 10:57:42 +02:00
Tomaž Jerman
8ac3b50077
WIP/POC pkg for common gval handlers
2022-09-01 16:55:21 +02:00
Tomaž Jerman
319a29fdc6
Cleanup system/reporter - DAL/pipeline migration
2022-09-01 16:55:21 +02:00
Tomaž Jerman
4b65286df1
Add refs to DAL models constructed from compose modules
2022-09-01 16:55:20 +02:00
Tomaž Jerman
ccc1064fac
Expand test suite, cleanup/refactor based on results
2022-09-01 16:55:20 +02:00
Tomaž Jerman
7e0d55dfa1
Move step definition validators to the end
...
This allows the init to correct invalid/missing bits.
2022-09-01 16:55:20 +02:00
Tomaž Jerman
3f15fa2a82
Fix pkg/dal tests
2022-09-01 16:55:20 +02:00
Tomaž Jerman
625d4c2e0f
Update dal internal filter to conform to new interface
2022-09-01 16:55:20 +02:00
Tomaž Jerman
eb57c03e6c
Port the old system reporter to the DAL pipeline
2022-09-01 16:55:20 +02:00
Tomaž Jerman
b378b87313
Make pkg/dal.Row more robust
2022-09-01 16:55:20 +02:00
Tomaž Jerman
5fe71bf3b1
Tweak DAL pipeline preparation & exec flow
...
* Add a dryrun option; split init into init and exec
* move the iterator method from pipeline to service to allow
more context when preprocessing/initializing the pipeline
* add an extra value to link's right rows to simplify identification
2022-09-01 16:55:20 +02:00
Tomaž Jerman
dc70e2aeb8
Export dal.Row for reusability
2022-09-01 16:55:20 +02:00
Tomaž Jerman
377e07cbd9
Move dal attribute types to constants for reusability
2022-09-01 16:55:20 +02:00