ionutboangiu
b5dbb31163
Clean up and refactor after mongo update
...
- Converting directly from a D to an M is deprecated. We are now decoding
directly in a M.
- Used errors.As and errors.Is for proper error comparison and assertion
- Streamlined function parameters and removed redundancies
- Revised sloppy reassignments and added missing error checks
- Shortened and reorganized function structure for improved readability
2023-07-04 13:19:31 +02:00
ionutboangiu
a7c785d925
Upgrade MongoDB driver to v1.12
...
- Set (but comment) serverAPI options (currently distinct api and
create.size BSON field are deprecated + possible others that are untested)
- Rename and refactor 'TimeDecodeValue1' to 'decodeTimeValue', add
nil case handling
- Implement 'buildURL' function to connect to mongo (can also be
used for mysql and postgres)
- Update function names, variable names, and comments for clarity
- Replace 'bsonx.Regex' with the Regex primitive for v1.12 compatibility
- Use simple concatenation instead of Sprintf
- Declare 'timeType' locally, replace global 'tTime'
- Use 'RegisterTypeDecoder' to replace deprecated 'RegisterDecoder'
- Simplify several functions without altering functionality
- Remove redundant 'storageType' field in 'mongoStorage',
use 'isDataDB' instead
2023-07-04 13:19:31 +02:00
arberkatellari
43daf3efe5
Add error handler for Mongo GetCDrs remove
2023-05-25 11:35:53 +02:00
gezimbll
7dcbd09a1f
replacing non-meta constants for storage types
2023-03-08 19:14:24 +01:00
ionutboangiu
82468c580d
Replace deprecated ioutil library, remove redundant statements + small optimizations
2022-12-02 14:24:18 +02:00
ionutboangiu
758a94280a
Apply project wide fmt
2022-11-16 10:13:44 +01:00
andronache
428cd37b8e
Replaced header in multiple places
2021-11-01 13:50:23 +02:00
TeoV
fbc30d600e
Use regexp.QuoteMeta to escape destination when having "+" in front of it
2020-02-06 09:58:37 +01:00
TeoV
bb0803bd96
Correctly send destination with "+" when GetCDR for mongo
2020-02-06 09:58:37 +01:00
Trial97
ffef415e8c
Added cache for EventCost.FieldAsInterface
2020-02-05 18:05:53 +01:00
Trial97
9941551826
Updated apier tests
2020-01-15 16:22:47 +02:00
adragusin
076cdc48d2
Added test for duplicate key
2019-12-10 03:00:23 -05:00
adragusin
4cf69dd552
uniformed the error for duplicate key
2019-12-10 03:00:23 -05:00
TeoV
59652ed5df
Complete rest of cdr filter for internalDB
2019-10-09 16:11:37 +02:00
TeoV
a575a8b497
Check error before checking deleteCount fixes #1699
2019-10-07 11:00:56 +02:00
Trial97
e923babcee
Updated mongo storage
2019-07-18 02:54:19 -10:00
Trial97
ab77aaebc8
Downgraded mongo library
2019-07-17 04:59:52 -10:00
Trial97
c1f49a6e73
Updated glide.yaml
2019-07-16 22:42:42 -10:00
Tripon Alexandru-Ionut
a21e82e642
Added EnsureIndexes per migration for mongoDB
2019-05-02 21:27:15 +02:00
TeoV
f779dc5084
Take out SearchTerm from Paginator and add to a top level
2019-04-18 12:24:20 +03:00
Tripon Alexandru-Ionut
022ad003d6
Renamed DispatcherS CSV file to DispatcherProfiles.csv
2019-03-28 09:35:50 +01:00
Tripon Alexandru-Ionut
ad54df15f7
Added Dispatcher Hosts
2019-03-26 19:46:42 +01:00
Trial97
db1ddeaa43
Updated and added tests for *remove_session_costs action
2019-03-25 19:11:44 +01:00
Trial97
fa591c50a7
Added *remove_session_costs action. fixes#1423
2019-03-25 19:11:44 +01:00
TeoV
f1a6a5b21a
Fix merge conflict
2019-03-13 15:10:55 +01:00
TeoV
d1957d1871
Resolve merge problems and update tests from model_helpers
2019-03-13 15:10:55 +01:00
TeoV
76272b9b01
Make Engine build
2019-03-13 15:10:55 +01:00
Trial97
f4f5e6b061
Updated mongodb driver
2019-03-13 13:39:51 +01:00
Trial97
8022b4c99e
Updated mongodb driver timeout
2019-03-08 15:34:01 +01:00
Trial97
b8ff4bdfd9
Removed DerivedChrgerS
2019-02-19 16:42:33 +01:00
Trial97
b87dbf650d
Removed UserS and modified some meta consts
2019-02-18 12:37:50 +02:00
DanB
b7e34f675a
CDRs refactoring - removing old derived charging, APIs redesign
2019-02-17 20:37:07 +01:00
Trial97
7442753ed3
Removed AliaseS
2019-02-15 18:01:22 +02:00
DanB
48a518fc99
RatingProfiles.csv: removing direction and cdrStatQueueIDs
2019-02-11 19:08:34 +01:00
TeoV
473d8dbc5a
Add infrastructure for DispatcherProfile
2019-01-10 15:42:02 +01:00
TeoV
8184f51738
Update tp charger to use tenant
2019-01-09 15:46:20 +01:00
TeoV
b466b60238
Update tp suppliers to consider tenant
2019-01-09 15:46:20 +01:00
TeoV
c9ce2f6bc5
Update tp filter to consider tenant
2019-01-09 15:46:20 +01:00
Trial97
d1481fb46c
Update mongo driver
2019-01-09 15:46:07 +01:00
TeoV
d52e62daf3
Update tp threshold to consider tenant
2019-01-09 11:24:46 +01:00
TeoV
08b76e84f5
Update tp stats to consider tenant
2019-01-09 11:24:46 +01:00
TeoV
b5708c18a5
Update tp resource to consider tenant
2019-01-09 11:24:46 +01:00
TeoV
2325f53550
Update tp attributes to consider tenant
2019-01-08 11:00:15 +01:00
Trial97
6900332dec
Removed old mongo driver
2018-12-12 11:48:10 +01:00
Trial97
4f8b4b2f45
Updated mongodb driver
2018-12-12 11:48:10 +01:00
Trial97
8a67357d30
Added mongo new driver for datadb
2018-12-12 11:48:10 +01:00
TeoV
8af148da1a
Remove CDRStats and LCR
2018-11-21 18:28:33 +01:00
TeoV
249ba0e487
Fixes #924
2018-09-03 22:05:00 +02:00
TeoV
2765a24a06
Start adding OrderBy Paramert for filterCDR
2018-09-03 22:05:00 +02:00
TeoV
a31b1a91bd
Add drv methods for ChargerProfiles
2018-07-10 12:30:09 +02:00