From 66f56c74f7da50448ea0a3eb53e822c99fd8228d Mon Sep 17 00:00:00 2001 From: msyu Date: Thu, 6 Mar 2025 13:56:46 +0300 Subject: [PATCH] 063 default_compute svc.sort --- v1/resources/instance_operation_default.cfc | 111 ++++++++++++++++++++ v1/resources/svc_ls.cfc | 2 + 2 files changed, 113 insertions(+) create mode 100644 v1/resources/instance_operation_default.cfc diff --git a/v1/resources/instance_operation_default.cfc b/v1/resources/instance_operation_default.cfc new file mode 100644 index 0000000..368a720 --- /dev/null +++ b/v1/resources/instance_operation_default.cfc @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + select + + o.svc_operation_id + o.svc_id + o.operation + o.url + o.descr + o.man + + from svc_operation o + where o.svc_operation_id= + + + + select + + p.svc_operation_cfs_param_id + + p.svc_operation_cfs_param + p.label + p.data_type + p.value_list + p.ref_svc_id + p.is_required + p.default_value + p.default_compute + p.regex + p.unique_scope + p.maxlength + p.minlength + p.maxvalue + p.minvalue + p.descr + p.man + p.sort + ( + select 1 from svc_operation_cfs_param m + join svc_operation om on (m.svc_operation_id=om.svc_operation_id) + join svc_operation oc on (om.svc_id=oc.svc_id AND om.operation='modify' AND oc.operation='create') + join svc_operation_cfs_param c on (oc.svc_operation_id=c.svc_operation_id AND m.svc_operation_cfs_param=c.svc_operation_cfs_param) + where c.svc_operation_cfs_param_id=p.svc_operation_cfs_param_id + order by c.svc_operation_cfs_param_id + limit 1 + ) as isModifiable + + from svc_operation_cfs_param p + where p.svc_operation_id= + order by p.sort, p.svc_operation_cfs_param_id + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/v1/resources/svc_ls.cfc b/v1/resources/svc_ls.cfc index ff28f1a..a5c9459 100644 --- a/v1/resources/svc_ls.cfc +++ b/v1/resources/svc_ls.cfc @@ -11,6 +11,7 @@ dt_updated={prefix="s", type="date"}, svc_id={prefix="s", type="integer"}, resource_realm_type_id={prefix="s", type="integer"}, + sort={prefix="s", type="integer"}, is_production_ready={prefix="s", type="boolean"}, svc={prefix="s", type="string"}, svc_short={prefix="s", type="string"}, @@ -66,6 +67,7 @@ (select url from svc_operation so where so.operation='create' AND so.svc_id=s.svc_id limit 1) as create_url s.is_production_ready s.resource_realm_type_id + s.sort s.version s.descr s.man