snapshot of https://github.com/cortezaproject/corteza.git (2024.9.x, 2026-09-18; blobs > 131072B omitted)
Some checks failed
SonarQube / SonarQube (push) Failing after 5m28s
E2e test on main branch push / server and client test (map[name:admin port:8080]) (push) Failing after 3m33s
Server and lib tests / Library test (js) (push) Failing after 1m36s
Server and lib tests / Library test (vue) (push) Successful in 2m24s
Server and lib tests / Web client test (admin) (push) Successful in 2m52s
Server and lib tests / Web client test (compose) (push) Successful in 3m23s
Server and lib tests / Web client test (discovery) (push) Successful in 2m49s
Server and lib tests / Web client test (one) (push) Successful in 2m52s
Server and lib tests / Web client test (privacy) (push) Successful in 2m44s
Server and lib tests / Web client test (reporter) (push) Successful in 2m56s
Server and lib tests / Web client test (workflow) (push) Successful in 3m0s
Server and lib tests / Server tests (push) Failing after 4m55s
E2e test on main branch push / notify-failure (push) Failing after 9s
Server and lib tests / Send matrix testing notification (push) Successful in 2s
Mark stale issues and pull requests / stale (push) Successful in 40s

This commit is contained in:
upstream-mirror
2026-09-18 01:22:23 +05:00
commit 7e385fc126
8391 changed files with 1766236 additions and 0 deletions

48
server/tests/dal/testdata/generic/_.sql vendored Normal file
View File

@@ -0,0 +1,48 @@
DROP TABLE IF EXISTS compose_record;
CREATE TABLE `compose_record` (
`id` bigint unsigned NOT NULL,
`rel_namespace` bigint unsigned NOT NULL,
`module_id` bigint unsigned NOT NULL,
`values` json DEFAULT NULL,
`owned_by` bigint unsigned NOT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime DEFAULT NULL,
`deleted_at` datetime DEFAULT NULL,
`created_by` bigint unsigned NOT NULL,
`updated_by` bigint unsigned NOT NULL DEFAULT '0',
`deleted_by` bigint unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `compose_record_owner` (`owned_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
DROP TABLE IF EXISTS compose_record_partitioned;
CREATE TABLE `compose_record_partitioned` (
`id` bigint unsigned NOT NULL,
`vID` BIGINT UNSIGNED,
`vRef` BIGINT UNSIGNED,
`vTimestamp` DATETIME,
`vTime` TIME,
`vDate` DATE,
`vNumber` NUMERIC,
`vText` TEXT,
`vBoolean_T` BOOLEAN,
`vBoolean_F` BOOLEAN,
`vEnum` TEXT,
`vGeometry` TEXT,
`vJSON` TEXT,
`vBlob` BLOB,
`vUUID` VARCHAR(36),
`owned_by` bigint unsigned NOT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime DEFAULT NULL,
`deleted_at` datetime DEFAULT NULL,
`created_by` bigint unsigned NOT NULL,
`updated_by` bigint unsigned NOT NULL DEFAULT '0',
`deleted_by` bigint unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `compose_record_owner` (`owned_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

View File

@@ -0,0 +1,32 @@
{
"handle": "test_connection",
"type": "corteza::system:dal-connection",
"meta": {
"name": "Test Connection",
"location": {
"geometry": {
"type": "",
"coordinates": null
},
"properties": {
"name": ""
}
},
"ownership": ""
},
"config": {
"dal": {
"modelIdent": "compose_record",
"type": "corteza::dal:connection:dsn",
"params": {
"dsn": "NO"
}
},
"privacy": {
"sensitivityLevelID": "0"
}
}
}

View File

@@ -0,0 +1,32 @@
{
"handle": "test_connection",
"type": "corteza::system:primary-dal-connection",
"meta": {
"name": "Test Connection",
"location": {
"geometry": {
"type": "",
"coordinates": null
},
"properties": {
"name": ""
}
},
"ownership": ""
},
"config": {
"dal": {
"modelIdent": "compose_record",
"type": "corteza::dal:connection:dsn",
"params": {
"dsn": "sqlite3://file::memory:?cache=shared&mode=memory"
}
},
"privacy": {
"sensitivityLevelID": "0"
}
}
}

View File

@@ -0,0 +1,32 @@
{
"handle": "test_connection",
"type": "corteza::system:dal-connection",
"meta": {
"name": "Test Connection",
"location": {
"geometry": {
"type": "",
"coordinates": null
},
"properties": {
"name": ""
}
},
"ownership": ""
},
"config": {
"dal": {
"modelIdent": "compose_record",
"type": "corteza::dal:connection:dsn",
"params": {
"dsn": "sqlite3://file::memory:?cache=shared&mode=memory"
}
},
"privacy": {
"sensitivityLevelID": "42"
}
}
}

View File

@@ -0,0 +1,38 @@
{
"name": "internal_non_partitioned",
"handle": "internal_non_partitioned",
"config": {
"dal": {
"connectionID": "0",
"operations": [],
"partitioned": false
},
"privacy": {
"sensitivityLevelID": "0",
"usageDisclosure": "A"
}
},
"fields": [
{
"name": "name",
"kind": "String",
"config": {
"privacy": {
"sensitivityLevelID": "42",
"usageDisclosure": "A"
}
}
},
{
"name": "email",
"kind": "Email"
},
{
"name": "a_number",
"kind": "Number"
}
]
}

View File

@@ -0,0 +1,36 @@
{
"name": "internal_non_partitioned",
"handle": "internal_non_partitioned",
"config": {
"dal": {
"connectionID": "0",
"operations": [],
"partitioned": false
},
"privacy": {
"sensitivityLevelID": "42",
"usageDisclosure": "A"
}
},
"fields": [
{
"name": "name",
"kind": "String",
"privacy": {
"sensitivityLevelID": "0",
"usageDisclosure": "A"
}
},
{
"name": "email",
"kind": "Email"
},
{
"name": "a_number",
"kind": "Number"
}
]
}

View File

@@ -0,0 +1,37 @@
{
"name": "internal_non_partitioned",
"handle": "internal_non_partitioned",
"config": {
"dal": {
"connectionID": "0",
"operations": [],
"partitioned": false
},
"privacy": {
"sensitivityLevelID": "42",
"usageDisclosure": "A"
}
},
"fields": [
{
"name": "name",
"kind": "String",
"privacy": {
"sensitivityLevelID": "0",
"usageDisclosure": "A"
}
},
{
"name": "email",
"kind": "Email"
},
{
"name": "a_number",
"kind": "Number"
}
]
}

View File

@@ -0,0 +1,32 @@
{
"handle": "test_connection",
"type": "corteza::system:dal-connection",
"meta": {
"name": "Test Connection",
"location": {
"geometry": {
"type": "",
"coordinates": null
},
"properties": {
"name": ""
}
},
"ownership": ""
},
"config": {
"dal": {
"modelIdent": "compose_record",
"type": "corteza::dal:connection:dsn",
"params": {
"dsn": "sqlite3://file::memory:?cache=shared&mode=memory"
}
},
"privacy": {
"sensitivityLevelID": "0"
}
}
}

View File

@@ -0,0 +1,32 @@
{
"handle": "test_connection_edited",
"type": "corteza::system:dal-connection",
"meta": {
"name": "Test Connection EDITED",
"location": {
"geometry": {
"type": "",
"coordinates": null
},
"properties": {
"name": ""
}
},
"ownership": ""
},
"config": {
"dal": {
"modelIdent": "compose_record",
"type": "corteza::dal:connection:dsn",
"params": {
"dsn": "sqlite3://file::memory:?cache=shared&mode=memory"
}
},
"privacy": {
"sensitivityLevelID": "0"
}
}
}

View File

@@ -0,0 +1,31 @@
{
"name": "internal_non_partitioned",
"handle": "internal_non_partitioned",
"config": {
"dal": {
"connectionID": "0",
"operations": [],
"partitioned": false
},
"privacy": {
"sensitivityLevelID": "0",
"usageDisclosure": "A"
}
},
"fields": [
{
"name": "name",
"kind": "String"
},
{
"name": "email",
"kind": "Email"
},
{
"name": "a_number",
"kind": "Number"
}
]
}

View File

@@ -0,0 +1,16 @@
{
"values": [
{
"name": "name",
"value": "Me"
},
{
"name": "email",
"value": "me@test.tld"
},
{
"name": "a_number",
"value": "42"
}
]
}

View File

@@ -0,0 +1,16 @@
{
"values": [
{
"name": "name",
"value": "Me updated"
},
{
"name": "email",
"value": "me+updated@test.tld"
},
{
"name": "a_number",
"value": "43"
}
]
}

View File

@@ -0,0 +1,8 @@
{
"handle": "private",
"level": 1,
"meta": {
"name": "private sensitivity",
"description": "data is private to the owner"
}
}

View File

@@ -0,0 +1,8 @@
{
"handle": "private_edited",
"level": 1,
"meta": {
"name": "private sensitivity",
"description": "data is private to the owner"
}
}