mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-21 07:08:45 +05:00
In DataManager Split the dataID and compose ID [1:]
This commit is contained in:
committed by
Dan Christian Bogos
parent
201b804bfb
commit
781b24a482
@@ -84,8 +84,6 @@ var sTestsStatSV1 = []func(t *testing.T){
|
||||
testV1STSUpdateStatQueueProfile,
|
||||
testV1STSRemoveStatQueueProfile,
|
||||
testV1STSStatsPing,
|
||||
// Need to make a decision about
|
||||
// converter in filters
|
||||
testV1STSProcessMetricsWithFilter,
|
||||
testV1STSStopEngine,
|
||||
}
|
||||
|
||||
@@ -366,10 +366,6 @@ func SplitStats(key string) []string {
|
||||
return strings.Split(key, STATS_CHAR)
|
||||
}
|
||||
|
||||
func LCRKey(direction, tenant, category, account, subject string) string {
|
||||
return ConcatenatedKey(direction, tenant, category, account, subject)
|
||||
}
|
||||
|
||||
func InfieldJoin(vals ...string) string {
|
||||
return strings.Join(vals, INFIELD_SEP)
|
||||
}
|
||||
@@ -782,7 +778,7 @@ func NewTenantID(tntID string) *TenantID {
|
||||
if len(tIDSplt) == 1 { // only Tenant present
|
||||
return &TenantID{Tenant: tIDSplt[0]}
|
||||
}
|
||||
return &TenantID{Tenant: tIDSplt[0], ID: tIDSplt[1]}
|
||||
return &TenantID{Tenant: tIDSplt[0], ID: ConcatenatedKey(tIDSplt[1:]...)}
|
||||
}
|
||||
|
||||
type TenantArg struct {
|
||||
|
||||
Reference in New Issue
Block a user