3
0
Commit Graph

36 Commits

Author SHA1 Message Date
Vivek Patel
2840f32ada Fix upgrade script order 2023-02-23 10:14:20 +01:00
Peter Grlica
d021430d77 Fix id column migrate for views
Change only id columns of tables, not views, as postgres does not allow
changing those.
2023-02-14 16:52:32 +01:00
Vivek Patel
ab283f89c3 Fix saving issue with module discovery settings
By Migrating discovery settings to support multi-language, and updated module discovery config struct to support multi lang result.
2023-02-09 16:23:26 +05:30
Mumbi Francis
26260ee905 Change PGSQL CortezaID columns datatype to numeric 2023-02-08 17:57:46 +03:00
Vivek Patel
d5ce490906 Add default val handler on MsSQL 2023-01-26 13:46:09 +05:30
Vivek Patel
83f95ed5da Refactor data-privacy endpoints
Moved DataPrivacyRequest and DataPrivacyRequestComment under DataPrivacy route
2023-01-25 22:25:48 +05:30
Tomaž Jerman
f45ae3c6bc Add val handler for bool type on MySQL 2023-01-25 22:17:24 +05:30
Vivek Patel
36bc78764c Add val handler for bool type
Add ql value handler for bool type for drivers.

Fixes #599, #583
2023-01-25 22:14:46 +05:30
Vivek Patel
2027409b0d Support ql between/not between operator
For number type, IE (Field1 BETWEEN X X) or (Field1 NOT BETWEEN X X)
2023-01-25 22:05:30 +05:30
Vivek Patel
e7fa07cfae Extends DeDup capabilities
Support modifier for value search and allow ability to select matching criteria for multi value field

- Removed name from rule for now
- Value modifier to search with are ignore-case, case-sensitive, fuzzy-search, sounds-like
- Multi value matching criteria are one-of, equal
- Migrate RecordDeDup config for module, by adding upgrade fix for module.config.recordDeDup to migrate as per to the latest DeDupRule struct.
2023-01-25 21:54:36 +05:30
kinyaelgrande
ad46c275f9 Add support for viewing and undeleting soft-deleted records 2023-01-19 17:55:47 +03:00
Peter Grlica
31ca5d6c29 Added Response postfilter
- removed json response
 - added response postfilter
 - unit tests
2023-01-16 13:52:44 +01:00
Tomaž Jerman
2ea16012f1 Enable filtering, sorting, and paging for federation nodes 2023-01-13 08:57:46 +01:00
Vivek Patel
57c44a7d18 Fix drivers In operator error message 2022-12-21 17:03:25 +01:00
Vivek Patel
5b653178b6 Add INSTR ql ref for all drivers 2022-12-21 17:13:42 +05:30
Tomaž Jerman
890c431156 Tweak store logic and tests to support MSSQL 2022-12-14 15:47:39 +01:00
Tomaž Jerman
27d03d2c99 Properly handle boolean casting when extracted from JSON 2022-12-14 15:47:39 +01:00
Tomaž Jerman
725ed9f4f2 Add JSON validity checks to make value extraction safer 2022-12-14 15:47:39 +01:00
Tomaž Jerman
46e31f4d01 Fix improperly defined MSSQL TRUNCATE clause 2022-12-14 15:47:39 +01:00
Tomaž Jerman
771c87548a Make paging cursor expr. builders work with MSSQL 2022-12-14 15:47:39 +01:00
Tomaž Jerman
a5e5e15296 Add handling for 2627 MSSQL error code (duplicate PK) 2022-12-14 15:47:39 +01:00
Tomaž Jerman
7c857ab183 Add (temporary) solution to MSSQL true/false representation problem
Passing dialect options lower so the supporting functions can prepare
proper expressions.
Might be better off defining a new nuance for this, or researching
more if I can trick goqu to do it correctly.
2022-12-14 15:47:39 +01:00
Tomaž Jerman
41234648a9 Base MSSQL database support implementation 2022-12-14 15:47:39 +01:00
Tomaž Jerman
a026aeb790 Change state checks to use literal expressions
MSSQL doesn't like expressions in the lines of "column" IS @p1
which is how goqu generated the column.IsNull() part.
2022-12-14 15:47:39 +01:00
Tomaž Jerman
878e5edddb Add support for two step DB upsert 2022-12-14 15:47:39 +01:00
Vivek Patel
39905c1788 Add WEEK ref to GVal expr reference
It helps to define the outputType of week ql reference
2022-12-12 15:22:09 +01:00
Tomaž Jerman
048e51ac00 Add nin ref to base QL handlers 2022-12-12 15:22:09 +01:00
skamensky
b838e96b3d Legacy corteza server 2022.9.x fix missing col type (#505)
* Add support for dropdowns field type in physical tables
2022-12-12 15:22:09 +01:00
Tomaž Jerman
3bb299ce72 Fix part of the broken tests 2022-12-09 11:18:18 +01:00
Vivek Patel
79dc5b9a70 Supports coalesce sorting
Updated parse sorting method to support coalesce sorting with multiple columns, by extending the current sortExpr with modifier and multiple columns, IE. `coalesce` as modifier and given arguments will be multiple columns for the sortExpr.

Also, updated cursor to support modifier and multiple column support along with rdbms.go.tpl for the same.
2022-12-01 10:45:26 +01:00
Denis Arh
207f01daf5 Refresh code templates and regenerate go files
Mostly minor changes related to go 1.19 comment formatting.
2022-11-27 10:57:03 +01:00
skamensky
9ac63876be Add support for RDBMS schema management
With `DB_ALLOW_DESTRUCTIVE_CHANGES=true` Corteza can change DB tables and columns when Compose Module configuration changes.
2022-11-26 13:10:39 +01:00
Vivek Patel
279b1b0517 Add WEEK ref to base QL handlers
Also, added to PSQL, and SQLite ref handler
2022-11-25 15:00:02 +01:00
Yangruipis
abeed75c9a fix(rdbms): check number regex
Regex for checking number will miss floats with 2+ precision like 0.01,
and treat str with multi dot as number like 0.1.1.1.
2022-11-18 10:15:24 +01:00
Denis Arh
29eacc9f65 Fix import paths (corteza-server => corteza/server) 2022-11-16 16:12:58 +01:00
Corteza Monorepo Migrator
683c7c56e2 Moving server files to ./server 2022-11-14 09:26:39 +01:00