Improve (cue) codegen performance
This commit is contained in:
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
session: schema.#Resource & {
|
||||
session: {
|
||||
features: {
|
||||
labels: false
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
trigger: schema.#Resource & {
|
||||
trigger: {
|
||||
struct: {
|
||||
id: schema.IdField
|
||||
workflow_id: { sortable: true, ident: "workflowID", goType: "uint64", storeIdent: "rel_workflow" }
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
workflow: schema.#Resource & {
|
||||
workflow: {
|
||||
struct: {
|
||||
id: schema.IdField
|
||||
handle: schema.HandleField
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
attachment: schema.#Resource & {
|
||||
attachment: {
|
||||
features: {
|
||||
labels: false
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
chart: schema.#Resource & {
|
||||
chart: {
|
||||
parents: [
|
||||
{handle: "namespace"},
|
||||
]
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
moduleField: schema.#Resource & {
|
||||
moduleField: {
|
||||
parents: [
|
||||
{handle: "namespace"},
|
||||
{handle: "module"},
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
module: schema.#Resource & {
|
||||
module: {
|
||||
handle: "module"
|
||||
parents: [
|
||||
{handle: "namespace"},
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
namespace: schema.#Resource & {
|
||||
namespace: {
|
||||
struct: {
|
||||
id: schema.IdField
|
||||
slug: { sortable: true, goType: "string" }
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
page: schema.#Resource & {
|
||||
page: {
|
||||
parents: [
|
||||
{handle: "namespace"},
|
||||
]
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
record: schema.#Resource & {
|
||||
record: {
|
||||
parents: [
|
||||
{handle: "namespace"},
|
||||
{handle: "module"},
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
exposedModule: schema.#Resource & {
|
||||
exposedModule: {
|
||||
parents: [
|
||||
{handle: "node"},
|
||||
]
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
package federation
|
||||
|
||||
import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
moduleMapping: schema.#Resource & {
|
||||
moduleMapping: {
|
||||
parents: [
|
||||
{handle: "node"},
|
||||
]
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
nodeSync: schema.#Resource & {
|
||||
nodeSync: {
|
||||
features: {
|
||||
labels: false
|
||||
}
|
||||
|
||||
+1
-2
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
node: schema.#Resource & {
|
||||
node: {
|
||||
features: {
|
||||
labels: false
|
||||
paging: false
|
||||
@@ -38,7 +38,6 @@ node: schema.#Resource & {
|
||||
}
|
||||
|
||||
query: ["name", "base_url"]
|
||||
byQuery: ["status"]
|
||||
byNilState: ["deleted"]
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
sharedModule: schema.#Resource & {
|
||||
sharedModule: {
|
||||
features: {
|
||||
labels: false
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
apigw_filter: schema.#Resource & {
|
||||
apigw_filter: {
|
||||
features: {
|
||||
labels: false
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
apigw_route: schema.#Resource & {
|
||||
apigw_route: {
|
||||
features: {
|
||||
labels: false
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
application: schema.#Resource & {
|
||||
application: {
|
||||
struct: {
|
||||
id: schema.IdField
|
||||
name: {sortable: true}
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
attachment: schema.#Resource & {
|
||||
attachment: {
|
||||
features: {
|
||||
labels: false
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
auth_client: schema.#Resource & {
|
||||
auth_client: {
|
||||
struct: {
|
||||
id: schema.IdField
|
||||
handle: schema.HandleField
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
auth_confirmed_client: schema.#Resource & {
|
||||
auth_confirmed_client: {
|
||||
features: {
|
||||
labels: false
|
||||
paging: false
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
auth_oa2token: schema.#Resource & {
|
||||
auth_oa2token: {
|
||||
features: {
|
||||
labels: false
|
||||
paging: false
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
auth_session: schema.#Resource & {
|
||||
auth_session: {
|
||||
features: {
|
||||
labels: false
|
||||
paging: false
|
||||
|
||||
+23
-23
@@ -8,29 +8,29 @@ component: schema.#component & {
|
||||
handle: "system"
|
||||
|
||||
resources: {
|
||||
"attachment": attachment
|
||||
"application": application
|
||||
"apigw-route": apigw_route
|
||||
"apigw-filter": apigw_filter
|
||||
"auth-client": auth_client
|
||||
"auth-confirmed-client": auth_confirmed_client
|
||||
"auth-session": auth_session
|
||||
"auth-oa2token": auth_oa2token
|
||||
"credential": credential
|
||||
"data-privacy-request": data_privacy_request
|
||||
"data-privacy-request_comment": data_privacy_request_comment
|
||||
"queue": queue
|
||||
"queue_message": queue_message
|
||||
"reminder": reminder
|
||||
"report": report
|
||||
"resource-translation": resource_translation
|
||||
"role": role
|
||||
"role_member": role_member
|
||||
"settings": settings
|
||||
"template": template
|
||||
"user": user
|
||||
"dal-connection": dal_connection
|
||||
"dal-sensitivity-level": dal_sensitivity_level
|
||||
"attachment": attachment
|
||||
"application": application
|
||||
"apigw-route": apigw_route
|
||||
"apigw-filter": apigw_filter
|
||||
"auth-client": auth_client
|
||||
"auth-confirmed-client": auth_confirmed_client
|
||||
"auth-session": auth_session
|
||||
"auth-oa2token": auth_oa2token
|
||||
"credential": credential
|
||||
"data-privacy-request": data_privacy_request
|
||||
"data-privacy-request-comment": data_privacy_request_comment
|
||||
"queue": queue
|
||||
"queue_message": queue_message
|
||||
"reminder": reminder
|
||||
"report": report
|
||||
"resource-translation": resource_translation
|
||||
"role": role
|
||||
"role_member": role_member
|
||||
"settings": settings
|
||||
"template": template
|
||||
"user": user
|
||||
"dal-connection": dal_connection
|
||||
"dal-sensitivity-level": dal_sensitivity_level
|
||||
}
|
||||
|
||||
rbac: operations: {
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
credential: schema.#Resource & {
|
||||
credential: {
|
||||
struct: {
|
||||
id: schema.IdField
|
||||
owner_id: { goType: "uint64", ident: "ownerID", storeIdent: "rel_owner" }
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
dal_connection: schema.#Resource & {
|
||||
dal_connection: {
|
||||
struct: {
|
||||
id: schema.IdField
|
||||
name: { sortable: true, goType: "string" }
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
dal_sensitivity_level: schema.#Resource & {
|
||||
dal_sensitivity_level: {
|
||||
struct: {
|
||||
id: schema.IdField
|
||||
handle: schema.HandleField
|
||||
@@ -30,8 +30,6 @@ dal_sensitivity_level: schema.#Resource & {
|
||||
byNilState: ["deleted"]
|
||||
}
|
||||
|
||||
rbac: false
|
||||
|
||||
features: {
|
||||
labels: false
|
||||
paging: false
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
data_privacy_request: schema.#Resource & {
|
||||
data_privacy_request: {
|
||||
features: {
|
||||
labels: false
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
data_privacy_request_comment: schema.#Resource & {
|
||||
data_privacy_request_comment: {
|
||||
features: {
|
||||
labels: false
|
||||
}
|
||||
@@ -31,8 +31,6 @@ data_privacy_request_comment: schema.#Resource & {
|
||||
byValue: ["request_id"]
|
||||
}
|
||||
|
||||
rbac: false
|
||||
|
||||
store: {
|
||||
api: {
|
||||
functions: []
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
queue: schema.#Resource & {
|
||||
queue: {
|
||||
features: {
|
||||
labels: false
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
queue_message: schema.#Resource & {
|
||||
queue_message: {
|
||||
features: {
|
||||
labels: false
|
||||
checkFn: false
|
||||
@@ -28,8 +28,6 @@ queue_message: schema.#Resource & {
|
||||
byNilState: ["processed"]
|
||||
}
|
||||
|
||||
rbac: false
|
||||
|
||||
store: {
|
||||
api: {
|
||||
lookups: []
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
reminder: schema.#Resource & {
|
||||
reminder: {
|
||||
features: {
|
||||
labels: false
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
report: schema.#Resource & {
|
||||
report: {
|
||||
struct: {
|
||||
id: schema.IdField
|
||||
handle: schema.HandleField
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
resource_translation: schema.#Resource & {
|
||||
resource_translation: {
|
||||
features: {
|
||||
labels: false
|
||||
checkFn: false
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
role: schema.#Resource & {
|
||||
role: {
|
||||
struct: {
|
||||
id: schema.IdField
|
||||
name: {sortable: true}
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
package system
|
||||
|
||||
import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
role_member: schema.#Resource & {
|
||||
role_member: {
|
||||
features: {
|
||||
labels: false
|
||||
paging: false
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
settings: schema.#Resource & {
|
||||
settings: {
|
||||
ident: "settingValue"
|
||||
expIdent: "SettingValue"
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
template: schema.#Resource & {
|
||||
template: {
|
||||
struct: {
|
||||
id: schema.IdField
|
||||
handle: schema.HandleField
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/cortezaproject/corteza-server/codegen/schema"
|
||||
)
|
||||
|
||||
user: schema.#Resource & {
|
||||
user: {
|
||||
struct: {
|
||||
id: schema.IdField
|
||||
handle: schema.HandleField
|
||||
|
||||
Reference in New Issue
Block a user