Commit Graph

57 Commits

Author SHA1 Message Date
arberkatellari
2ab652ebdd Add tests for ActionProfile modifications 2025-07-21 13:40:22 +02:00
ionutboangiu
c3bf93f1b6 Fix context lifecycle in scheduled actions
Remove ctx field from scheduledActs struct and create a fresh context
when actions execute via cron. This prevents "context canceled" errors
that occurred when stored contexts from API calls were used for delayed
execution. The context is now properly received from the caller in case
of "*asap" actions.
2025-05-26 08:19:43 +02:00
arberkatellari
5847ceab00 Add and revise tests for offline internal DB 2025-05-13 17:07:17 +02:00
ionutboangiu
5e46eeb28a move action type definitions to utils 2025-05-03 21:42:36 +02:00
ionutboangiu
13044ddd9d refactor matched accounts sorting 2025-03-25 14:25:00 +01:00
ionutboangiu
927a30b682 refactor profile sorting for actions 2025-03-25 14:25:00 +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
gezimbll
c602dbc2a5 added rsparser field in dynamicOpts
changed Value field to unexported and created a Value() method
on each dynOpts type that contains logic to create a rsparser
in case the value field a configuration starts with prefix "~"
otherwise it will return the specified value
2025-01-22 17:36:26 +01:00
ionutboangiu
17405af987 Revise service manager logs
Logging is now done as ServiceManager level. Removed any other logs.
2025-01-10 20:18:08 +01:00
gezimbll
2b04066504 added parsing the event for *usage opts in accounts 2025-01-10 12:31:44 +01:00
ionutboangiu
113e2a2bdf Replace interface{} with any 2023-05-31 10:22:28 +02:00
adi
734776b113 Unified consts of opts 2022-10-03 18:29:24 +03: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
ionutboangiu
b55dc3d3a8 Fix tests after updating loggers 2021-12-19 17:12:47 +01:00
andronache
7ab4167613 Corrected header in multiple files 2021-11-01 13:50:00 +02:00
Trial97
cb809f976e Updated internal datadb 2021-10-28 18:03:43 +03:00
andronache
2af41dd937 Tests for ProfileIgnoreFilters in actions and engine for stats 2021-10-22 12:04:12 +03:00
ionutboangiu
09cf26e7b9 Fix tests 2021-10-18 18:09:44 +03:00
Trial97
56f5ce07f3 Added *profileIgnoreFilters for actions 2021-10-11 12:06:57 +03:00
andronache
323fa2389c Changed opts for Sessions and CDRs 2021-09-26 11:15:57 +02:00
Trial97
7749fcd15b Removed ArgV1ProcessEvent and ThresholdsArgsProcessEvent 2021-09-23 10:42:56 +02:00
ionutboangiu
1c2c5800e5 Add ActionProfileIDs as opt for actions subsystem and fix tests 2021-09-22 18:08:17 +02:00
Trial97
0ed0b0e7a6 Updated more services 2021-09-13 16:08:39 +02:00
Trial97
8db73de3a6 Updated SessionS processEvent API with new opts format 2021-08-26 16:48:48 +02:00
porosnicuadrian
c178c25a4d Fixed indetation 2021-08-24 20:19:53 +02:00
porosnicuadrian
2dccdb2162 Updated Equals method + tests 2021-07-27 16:18:43 +02:00
Trial97
c397cb31eb Updated datamanager methods 2021-05-26 15:54:36 +02:00
andronache
7f3a9879de Fixed tests 2021-05-21 14:12:29 +02:00
ionutboangiu
f3c4d659df Remove Time field from CGREvent and fix failing tests 2021-05-19 19:27:43 +02:00
porosnicuadrian
13c102e8b8 Added context for Action apis 2021-05-17 17:58:44 +02:00
ionutboangiu
a55f3037ec Remove ActivationInterval from ActionProfiles 1.0 2021-05-17 17:54:24 +02:00
Trial97
c04c0a5adb Added ConfigDB and option to read config from DB 2021-04-16 17:53:36 +02:00
Trial97
3406d3c7c9 Updated based on new rpc library 2021-04-13 13:35:03 +02:00
porosnicuadrian
3fd2b07ee2 Covered actions to 100% 2021-04-12 17:55:12 +02:00
porosnicuadrian
60e8c32e95 Covered actions to 100% 2021-04-11 13:03:27 +02:00
andronache
32c234a6c7 In CGREvent changed Opts in APIOpts 2021-03-23 14:35:11 +01:00
porosnicuadrian
8b9508c5a2 Fixed tests by adding default usage + covered accounts 2021-03-19 18:50:52 +01:00
andronache
a6f41adaf9 Replaced TenantIDWithOpts with TenantIDWithAPIOpts 2021-03-18 13:04:28 +01:00
porosnicuadrian
fc98ef2917 Started to cover abstract + new test cases for accounts 2021-03-17 13:49:13 +01:00
Trial97
9182696abb Added tests for *add_balance, *set_balance and *rem_balance actions 2021-02-25 18:13:01 +01:00
Trial97
1437cfaff3 Updated SetBalance action 2021-02-25 18:13:01 +01:00
Trial97
83c26e5fd6 Updated actions 2021-02-25 18:13:01 +01:00
Trial97
3afe8fc6a6 Added support for BiGOB server 2021-02-22 11:53:56 +01:00
Trial97
5a25443e17 Updated the syntax for inline filters and attributes values 2021-02-05 17:41:56 +01:00
TeoV
1f7e47248c Add test for *reset_threshold and *reset_stat_queue actions 2021-01-28 20:31:28 +01:00
TeoV
b798199da9 Add actExport in ActionS 2021-01-28 09:29:53 +01:00
TeoV
ba48a5d5d0 Add test for *cdrLog action for setting fields in opts 2021-01-25 18:15:53 +01:00
TeoV
aa774f0fe6 Move from EventExporterRequest to engine/EventRequest 2021-01-24 15:33:57 +01:00