Commit Graph

5570 Commits

Author SHA1 Message Date
ionutboangiu
df10601b18 include ips cases in index admins apis 2025-06-03 14:23:29 +02:00
ionutboangiu
eb9f826ffd Rename IP to IPAllocations 2025-06-03 14:23:29 +02:00
armirveliaj
fb92e613d8 Add coverage tests on engine 2025-06-03 13:12:13 +02:00
ionutboangiu
130d516a16 Revise service toggle test
- ensure analyzers folder is cleaned up (could cause deadlocks)
- ensure timeout is not reset for every ping (never times out because pinging
  duration is much shorter than timeout)
2025-05-30 14:54:09 +02:00
ionutboangiu
eed6b8a51a add implementation for new ips module 2025-05-29 15:46:42 +02:00
ionutboangiu
2f7da3702a remove redundant dm init in test flush helper 2025-05-27 17:31:01 +02:00
ionutboangiu
d619246c84 close db connections in test flush helpers
Previously, database connections would stay alive until "go test"
would finish, sometimes leading to max conn errors.
2025-05-27 17:31:01 +02:00
arberkatellari
5847ceab00 Add and revise tests for offline internal DB 2025-05-13 17:07:17 +02:00
arberkatellari
5b66678313 Add offline internal DB functionality for dataDB,storDB & configDB 2025-05-13 17:07:17 +02:00
ionutboangiu
3acb9deac5 Simplify GetCDRs implementation
Remove redundant checks and use a single CDR instance for both filtering and
results.
2025-05-09 09:43:04 +02:00
ionutboangiu
2a85e371a2 Fix GORM pagination with zero limit/offset
Previously, q.Limit(0) was always set, causing GORM to
return no records since limit=0 was interpreted as "get 0
records" rather than "no limit". Now we only set limit and
offset when they're > 0, which makes pagination behave
correctly with default values.
2025-05-09 09:43:04 +02:00
ionutboangiu
5e46eeb28a move action type definitions to utils 2025-05-03 21:42:36 +02:00
ionutboangiu
eeecae4576 move resources to dedicated package 2025-05-03 21:42:36 +02:00
ionutboangiu
40c2c11158 remove empty chargers test file 2025-05-03 21:42:36 +02:00
ionutboangiu
bd8c9d3b5e migrate guardian package to external dep 2025-04-22 19:35:11 +02:00
ionutboangiu
16d131b058 move attributes to dedicated package 2025-04-22 19:33:12 +02:00
ionutboangiu
61e94b4a14 refactor URL extraction and API request functions 2025-04-22 19:33:12 +02:00
ionutboangiu
069cadd618 move routes to dedicated package 2025-04-22 19:33:12 +02:00
ionutboangiu
9a42adc716 Retrieve routes default ratio from global var
to prevent cyclic import (utils > config > utils)
2025-04-22 19:33:12 +02:00
ionutboangiu
7b74552c8f export DynamicDP type and constructor 2025-04-22 19:33:12 +02:00
armirveliaj
ab8188c923 CGREvent inside AttrSProcessEventReply change 2025-03-30 13:55:30 +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
3f3605b349 refactor matched resources sorting 2025-03-25 14:25:00 +01:00
ionutboangiu
37de0c3bd1 refactor matched statqueues sorting 2025-03-25 14:25:00 +01:00
ionutboangiu
52177197f2 refactor matched thresholds sorting 2025-03-25 14:25:00 +01:00
ionutboangiu
4083eb35df refactor attribute matching by weight 2025-03-25 14:25:00 +01:00
ionutboangiu
4244ba2cdf refactor profile sorting for routes 2025-03-25 14:25:00 +01:00
ionutboangiu
0b26559d1f move chargers to dedicated package 2025-03-16 16:28:30 +01:00
gezimbll
2f808badb7 added cache parameter in Get*Opts methods 2025-03-12 15:24:18 +01:00
gezimbll
1f686fca63 added RequestProcessors in fsAgent 2025-03-11 18:12:49 +01:00
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
2c8c9b326e remove previous prometheus integration 2025-03-09 17:27:31 +01:00
gezimbll
8fd871b304 added log level field on stordb opts for controlling sql verbosity 2025-02-25 19:42:11 +01:00
ionutboangiu
deaf5f4918 Move config/objdp.go to utils package
and rename the file to objectdp.go
2025-02-24 13:36:32 +01:00
ionutboangiu
3254e0d35f Export RSRParser Path field
configsanity and its tests need access to it
2025-02-24 13:36:32 +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
ionutboangiu
c60712f454 Bump go version to 1.24.0 2025-02-21 13:22:04 +01:00
armirveliaj
4b1e6e7def Add coverage tests on engine 2025-02-20 12:05:39 +01:00
armirveliaj
ad0b45b4d2 Add coverage tests on accounts && engine 2025-02-20 12:05:39 +01:00
gezimbll
18b0e4d417 added new dynopts function GetDurationPointerOpts 2025-02-20 09:54:13 +01:00
gezimbll
14515404bb added helper method for repetive logic on GetOpts funcs 2025-02-13 19:18:40 +01:00
ionutboangiu
f89cad421e Revise service toggle test 2025-02-07 13:23:59 +01:00
gezimbll
df3dcfb840 replaced CGREvent parameter to DataProvider for GetOpts functions 2025-02-07 13:18:43 +01:00
gezimbll
06ccafb5fd added tests for opts with dynamic values 2025-01-22 17:36:26 +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
armirveliaj
7db65ca62c Clean up DispatcherS 2025-01-17 17:29:46 +01:00