Commit Graph

351 Commits

Author SHA1 Message Date
ionutboangiu
c762de5c28 move rankings to dedicated package 2025-03-10 13:49:34 +01:00
ionutboangiu
47fb25b4ef move trends to dedicated package
reivse/add comments and order of funcs/definitions
2025-03-10 13:49:34 +01:00
ionutboangiu
24d886c8e0 Pass CGRConfig to DataManager
instead of just CacheCfg. Prevents the need of global config var in
engine/datamanager.go
2025-03-10 13:49:34 +01:00
ionutboangiu
b1a5874215 Move config/rsrparser.go to utils package 2025-02-24 13:36:32 +01:00
ionutboangiu
36a7d174ab Remove RSRSep opt from general section
- allows RSRParser to be split gracefully from config (was depending on
  RSRSep, which was retrieved from the global config variable)
- default separator (;) was the only one used except for splitting
  inline attribute values (where ANDSep is used)
2025-02-24 13:36:32 +01:00
armirveliaj
7db65ca62c Clean up DispatcherS 2025-01-17 17:29:46 +01:00
gezimbll
bb0116c543 added it test && loaders templates for ranking and trend profiles 2024-11-22 20:29:27 +01:00
ionutboangiu
3e98e37db3 Revise NewRPCClient helper function 2024-10-23 21:11:25 +02:00
ionutboangiu
e1adb674b8 Remove redundant dir parameter from processFile methods
Applies to both file readers and loader (for loader, the blank statement
was used anyway).

It's redundant because for file readers, the rdr.sourceDir value was
always passed as the parameter when it was already part of the method's
object.

Parameter had to also be removed from the WatchDir function and the
functions it depends on.
2024-09-23 20:28:26 +02:00
ionutboangiu
2f387b5a0e chore: remove unnecessary parentheses
gofmt -r '(a) -> a' -w **/*.go
2024-09-05 20:46:40 +02:00
ionutboangiu
0f70af84e9 centralize test flags for shared use across tests 2024-08-15 18:17:33 +02:00
ionutboangiu
0dfb3b860d Centralize RPCClient constructor 2024-08-15 18:17:33 +02:00
ionutboangiu
7c5d56c1de Combine csv loader tests
- ensures the tpreader is not eating memory even when tests are
not being run (before it was being constructed in an init())
2024-08-15 18:17:33 +02:00
arberkatellari
de5db4a938 Add caching_delay to config and loaders 2024-03-06 16:16:08 +01:00
gezimbll
32ed816de7 Replacing IsSliceMember ,CloneStringSlice and SliceStringEqual with slices package functions 2023-11-01 21:38:27 +01:00
ionutboangiu
113e2a2bdf Replace interface{} with any 2023-05-31 10:22:28 +02:00
adi
ad7bd111d1 Improved dispatcher errors 2022-10-21 10:14:19 +02:00
ionutboangiu
37879ef01e Pass opts instead of just caching type to loader process functions 2022-10-03 19:12:57 +03:00
ionutboangiu
0653e9b5d7 Apply go fmt 2022-08-24 09:32:23 +03:00
ionutboangiu
e98f230f04 Change type name from Blockers to DynamicBlockers 2022-05-10 17:05:31 +02:00
porosnicuadrian
6561d4d110 New AttributeBlocker 2022-04-27 17:49:14 +02:00
porosnicuadrian
b16b44732e Modified blocker into Blockers for attributes 2022-04-21 15:27:27 +02:00
porosnicuadrian
3cb48f6a8d Removed logs 2022-04-01 20:13:27 +02:00
porosnicuadrian
28619db53d Updated SetRateProfile + drivers and tests 2022-04-01 20:13:27 +02:00
porosnicuadrian
1ab927e2fa TPe thresholds 2022-03-16 11:51:35 +01:00
porosnicuadrian
1e202feb5b TPExporter 2022-03-11 11:21:56 +01:00
andronache98
ecdf5e54ea Changed headers 2022-03-09 14:14:30 +01:00
andronache98
9ec56f5155 Changed headers 2022-03-09 14:14:30 +01:00
porosnicuadrian
bdc124be1f Added dataManager and tenant in tpes 2022-03-09 11:03:16 +01:00
porosnicuadrian
bf5c694ecd Combined matchedProfile and alteredField for attributes 2022-02-24 17:28:38 +01:00
ionutboangiu
52a1902c65 Make APIAttributeProfile Weights field of type DynamicWeights 2022-02-20 10:37:19 +01:00
ionutboangiu
c6ca3573ae Add APIAttributeProfile and structs related to it 2022-02-17 21:14:48 +02:00
ionutboangiu
65d832e0dc Update loader functionality + tests 2022-02-17 21:14:48 +02:00
porosnicuadrian
104a06d24b Added support at mongo dirver for count/list rates 2022-02-17 21:11:55 +02:00
porosnicuadrian
1cbf8c711e Improved SetRateProfile for data manager + tests 2022-02-14 17:23:35 +02:00
ionutboangiu
6612b461c4 Remove APIAttributeProfile and all structs related to it 2022-02-07 20:05:36 +01:00
andronache98
f09cf65f9f Fixed *originID being in Event instead of APIOpts 2022-02-06 09:52:26 +01:00
porosnicuadrian
e748667165 Updated rates set/get/remove for mongo 2022-02-03 16:11:16 +01:00
Trial97
924b0af483 Updated loaders test 2021-12-21 15:05:44 +01:00
Trial97
b699b4a43e Added loaders importZip API 2021-12-21 15:05:44 +01:00
Trial97
0e363e7104 Added tests for account 2021-12-21 15:05:44 +01:00
Trial97
b9617f6fe3 Added DataProvider methods 2021-12-21 15:05:44 +01:00
Trial97
073ba953b0 Updated tests 2021-12-21 15:05:44 +01:00
Trial97
c1e399de6d Added all merge functions 2021-12-21 15:05:44 +01:00
Trial97
a826209834 Updated integration tests 2021-12-21 15:05:44 +01:00
Trial97
d1eb628fc1 Added unit tests for account set method 2021-12-21 15:05:44 +01:00
Trial97
6a3c682f42 Fixed the config for loaders 2021-12-21 15:05:44 +01:00
Trial97
fd5cf12eac Updated all the loaders types 2021-12-21 15:05:44 +01:00
Trial97
1f89ef6ee7 Updated loaders 2021-12-21 15:05:44 +01:00
ionutboangiu
b55dc3d3a8 Fix tests after updating loggers 2021-12-19 17:12:47 +01:00