Commit Graph
775 Commits
Author SHA1 Message Date
Tomaž Jerman 55702ec256 Temporary patch for invalid type encoding in Compose charts 2022-10-26 11:53:19 +02:00
Shmuel Kamensky eb899925c8 Fix issue #427 (respected required fields)
since ModuleField's attribute "Required" was not explicitly passed as a
negated value to Attribute.Type.Nullable, Attribute.Type.Nullable's
default value always persisted (false). This made all columns required.

This change makes it so the ModuleField's attribute "Required" properly
maps to Attribute.Type.Nullable
2022-10-25 15:21:20 +02:00
Tomaž Jerman bc8a0f0859 Change compose record report dal types to be consistent 2022-10-24 16:07:12 +02:00
Vivek Patel 5e087748ab Fix locale.ErrorMetaKey case type
Add method to convert string to kebab-case and apply fix to actions.gen.go.tpl for locale.ErrorMetaKey generation.
2022-10-22 15:47:21 +05:30
Denis Arh a8d2fef3cc Fix broken compose-record reference check
Pre DAL code ignored module ID when doing record lookup. This fix
ensures proper module ID is used (one from the module field options)
when doing lookup
2022-10-19 15:05:59 +02:00
Vivek Patel eac2f075e1 Fix deDup case-sensitive rule
It will check duplication only for selected field
2022-10-18 14:54:09 +05:30
Tomaž Jerman 3536ef8c6c Add missing geometry field-attribute mapping 2022-10-12 09:16:40 +02:00
Tomaž Jerman a45a08d91c Remove unneeded analyze dal operation 2022-10-12 09:16:40 +02:00
Tomaž Jerman 5d476dcfa0 Add missing .Close() calls for report iterators 2022-10-05 12:48:50 +02:00
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
Jože Fortun 6065cbc05a Fix compose reporter with multiple metrics 2022-09-30 13:30:17 +02:00
Denis Arh 25d23b740c Add (and refactor) RDBMS fix for values, revision and meta column 2022-09-30 10:14:37 +02:00
Tomaž Jerman 4400929c4d Fix broken compose tests 2022-09-30 08:32:28 +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
Vivek Patel 92324e1495 Fix privacy record list
Filter outs non-private module from data list by adding check to see if any sensitive record values exists before pushing record to list.
2022-09-28 20:52:27 +05:30
Tomaž Jerman 92c2a0d12e Add system field translations for report data frames 2022-09-28 11:05:51 +02:00
Tomaž Jerman ab987ccff3 Fix improper compose attachment MIME type validation
Rely more on the MIME type detection library to handle edge cases.
The validation failed because some cases included char. encoding.
2022-09-23 15:17:32 +02:00
Vivek Patel a3831aaf87 Fix meta id for record duplication warnings 2022-09-23 15:08:24 +05:30
Vivek Patel 817236f75d Add meta id to record duplication warnings
Attach additional meta to each value error for FE identification
2022-09-23 11:17:03 +05:30
Tomaž Jerman bf6f4a6936 Remove deleted records from DAL pipeline processing 2022-09-22 17:26:17 +02:00
Jože Fortun a56e402e0c Make record report default results an empty array 2022-09-21 15:58:40 +02:00
Vivek Patel 7da0940ae1 Add IncTotal param support to all resource List API
- Updates rdbms.go.tpl to extends store search method to include total in response
2022-09-21 19:24:43 +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 1535d1e533 Allow module field encoding strategy defaulting to JSON
User interface assumes they are defaulted.
2022-09-20 13:47:36 +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 95f836f248 Restructure compose/record/report service for easier tests 2022-09-19 16:22:37 +02:00
Tomaž Jerman 82686f14e9 Rework record report to use maps instead of iterators
Removes the need to do so in workflow handlers; the dataset will
be small so the JSON encoding magic isn't really needed.
2022-09-19 16:22:37 +02:00
Denis Arh bc2186fa2f Refactor module/field dal enc strategy config 2022-09-16 12:58:36 +02:00
Denis Arh 0ba9e06c85 Improve module update robustness 2022-09-16 12:58:09 +02:00
Denis Arh 8162da2a0e Prevent module update abort in case of DAL issues 2022-09-16 12:55:05 +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
Denis Arh 6c31e84628 Improve system field encoding configuration 2022-09-15 13:19:32 +02:00
Denis Arh 198830e9de Fix unique constraint on compose charts table 2022-09-14 12:18:43 +02:00
Denis Arh f3690b8636 Series of small fixes, prefixing index idents 2022-09-14 12:18:43 +02:00
Denis Arh 1f85b1be2b Support MySQL 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 c0631666d1 Add content-type to record revision endpoint
Correct, and fixes cases where mime sniffing is disabled.
2022-09-14 10:17:22 +02:00
Tomaž Jerman 7d18058f58 Rework the cmpose report endpoint to the DAL pipeline 2022-09-14 10:17:22 +02:00
Tomaž Jerman 0e7f40ca2e Define proper types for system module fields 2022-09-01 16:55:20 +02:00
Tomaž Jerman 4b65286df1 Add refs to DAL models constructed from compose modules 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 b6cb376d83 Introduce base model constraints and rework record filter constraints 2022-09-01 16:55:20 +02:00
Denis Arh 764cfd63fd Make rec-rev-searching code easier to debug 2022-08-28 12:42:38 +02:00
Denis Arh 013f25ec77 Generate fresh IDs for rec rev. models 2022-08-28 12:42:05 +02:00
Tomaž Jerman dac927ba4a Make namespace name sortable to unbreak reporter modals 2022-08-25 12:20:45 +02:00