Rename service-cloud - service-solution
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
namespaces:
|
||||
service-cloud:
|
||||
name: Service Cloud
|
||||
@@ -0,0 +1,3 @@
|
||||
namespaces:
|
||||
service-solution:
|
||||
name: Service Solution
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
namespace: service-cloud
|
||||
namespace: service-solution
|
||||
modules:
|
||||
Account:
|
||||
name: Account
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
namespace: service-cloud
|
||||
namespace: service-solution
|
||||
charts:
|
||||
ActiveEntitlements:
|
||||
name: Number of active entitlements
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
namespace: service-cloud
|
||||
namespace: service-solution
|
||||
pages:
|
||||
- handle: Home
|
||||
title: Home
|
||||
@@ -227,11 +227,11 @@ pages:
|
||||
- enabled: true
|
||||
label: Add Update to this Case
|
||||
resourceType: compose:record
|
||||
script: /client-scripts/compose/service-cloud/Case/AddUpdate.js:default
|
||||
script: /client-scripts/compose/service-solution/Case/AddUpdate.js:default
|
||||
- enabled: true
|
||||
label: Create email for this Case
|
||||
resourceType: compose:record
|
||||
script: /client-scripts/compose/service-cloud/Case/CreateEmail.js:default
|
||||
script: /client-scripts/compose/service-solution/Case/CreateEmail.js:default
|
||||
sealed: false
|
||||
style:
|
||||
variants: {bodyBg: white, border: primary, headerBg: white, headerText: primary}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
namespace: service-cloud
|
||||
namespace: service-solution
|
||||
records:
|
||||
Department:
|
||||
- values:
|
||||
File diff suppressed because one or more lines are too long
@@ -176,14 +176,14 @@ func makeDefaultApplications(ctx context.Context, log *zap.Logger, s store.Store
|
||||
},
|
||||
|
||||
&types.Application{
|
||||
Name: "Service Cloud",
|
||||
Name: "Service Solution",
|
||||
Enabled: true,
|
||||
Unify: &types.ApplicationUnify{
|
||||
Name: "Service Cloud",
|
||||
Name: "Service Solution",
|
||||
Listed: true,
|
||||
Icon: newIconUrl,
|
||||
Logo: newLogoUrl,
|
||||
Url: "/compose/ns/service-cloud/pages",
|
||||
Url: "/compose/ns/service-solution/pages",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
+5
-5
@@ -37,11 +37,11 @@ copyExtConfig crm 1200_charts
|
||||
copyExtConfig crm 1400_pages
|
||||
copyExtConfig crm 1500_record_settings
|
||||
|
||||
copyExtConfig service-cloud 1000_namespace
|
||||
copyExtConfig service-cloud 1100_modules
|
||||
copyExtConfig service-cloud 1200_charts
|
||||
copyExtConfig service-cloud 1400_pages
|
||||
copyExtConfig service-cloud 1500_record_settings
|
||||
copyExtConfig service-solution 1000_namespace
|
||||
copyExtConfig service-solution 1100_modules
|
||||
copyExtConfig service-solution 1200_charts
|
||||
copyExtConfig service-solution 1400_pages
|
||||
copyExtConfig service-solution 1500_record_settings
|
||||
|
||||
cleanup
|
||||
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
package rdbms
|
||||
|
||||
import (
|
||||
"github.com/Masterminds/squirrel"
|
||||
"github.com/cortezaproject/corteza-server/compose/types"
|
||||
"github.com/cortezaproject/corteza-server/pkg/filter"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func (s Store) convertComposeModuleFilter(f types.ModuleFilter) (query squirrel.SelectBuilder, err error) {
|
||||
query = s.composeModulesSelectBuilder()
|
||||
|
||||
query = filter.StateCondition(query, "cmd.deleted_at", f.Deleted)
|
||||
|
||||
if len(f.ModuleID) > 0 {
|
||||
query = query.Where(squirrel.Eq{"cmd.ID": f.ModuleID})
|
||||
}
|
||||
|
||||
if f.NamespaceID > 0 {
|
||||
query = query.Where("cmd.rel_namespace = ?", f.NamespaceID)
|
||||
}
|
||||
|
||||
if f.Query != "" {
|
||||
q := "%" + strings.ToLower(f.Query) + "%"
|
||||
query = query.Where(squirrel.Or{
|
||||
squirrel.Like{"LOWER(cmd.name)": q},
|
||||
squirrel.Like{"LOWER(cmd.handle)": q},
|
||||
})
|
||||
}
|
||||
|
||||
if f.Name != "" {
|
||||
query = query.Where(squirrel.Eq{"LOWER(cmd.name)": strings.ToLower(f.Name)})
|
||||
}
|
||||
|
||||
if f.Handle != "" {
|
||||
query = query.Where(squirrel.Eq{"LOWER(cmd.handle)": strings.ToLower(f.Handle)})
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
Reference in New Issue
Block a user