Commit Graph

10199 Commits

Author SHA1 Message Date
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
076bb172f1 Remove custom time decoder for MongoDB
Remove the custom time decoder used for mongo BSON
datetime values. The custom decoder was only converting these values
into UTC and was not any different from the default time.Time
decoder in the MongoDB driver, which also handles BSON string, int64,
and document values.
2023-07-04 13:19:31 +02:00
ionutboangiu
91fa6675e4 Implement nginx role 2023-07-04 13:19:31 +02:00
ionutboangiu
af1262e3c1 Implement gpg role 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
gezimbll
8d770b3364 Updated docs for creating local rpm packages 2023-07-04 12:47:10 +02:00
gezimbll
b148815091 Creating local tarball for rpm builds 2023-07-04 12:47:10 +02:00
NikolasPetriti
c6de766d18 Add coverage tests for erscfg.go and loaderscfg.go 2023-06-29 20:48:01 +02:00
gezimbll
cdab53e2cf Adding packit create-archive action for rpm builds 2023-06-29 15:54:32 +02:00
DanB
d14bc12e10 Handle CombimedErrNotFound 2023-06-29 14:55:44 +02:00
DanB
1860c301d3 Adding debug for combimed 2023-06-29 12:58:06 +02:00
DanB
84331962a8 Removing debug logs, apply lazy filters in case of *combimed 2023-06-28 15:17:20 +02:00
DanB
d33fe252d2 Adding debug log for filters 2023-06-28 14:16:14 +02:00
DanB
6c007c3bd3 Properly defining filter prefixes for *combimed export 2023-06-28 12:58:23 +02:00
DanB
3c9f57ce7d Updating CDR *combimed export to support filtering based on originally exported CDR 2023-06-28 12:47:16 +02:00
NikolasPetriti
7042048771 Add coverage tests for fctemplate.go 2023-06-28 10:34:28 +02:00
NikolasPetriti
023cf8f5f2 Added coverage tests for cachecfg.go, datadbcfg.go, erscfg.go, fctemplate.go and rsrparser.go 2023-06-27 11:05:06 +02:00
NikolasPetriti
4c2e81c3a6 Added tests for orderednavigablemap.go, pathitemlist.go and rsrfield.go 2023-06-27 11:05:06 +02:00
ionutboangiu
044106e81a Fix rtd search function
By adding the theme to the extension list in conf.py.
2023-06-27 11:04:44 +02:00
ionutboangiu
d10524b46c Add the cgr-* binaries to /usr/bin instead of /usr/local/bin 2023-06-27 11:04:44 +02:00
NikolasPetriti
65cf7299c8 Added coverage tests for fwvdp.go, objdp.go and removed error variables from source code 2023-06-23 11:55:46 +02:00
NikolasPetriti
86a1fbd531 Coverage tests for fwvdp.go and slicedp.go 2023-06-22 10:39:12 +02:00
NikolasPetriti
40d0cbbca7 Added tests for pathitemlist.go and struct.go 2023-06-21 11:04:43 +02:00
NikolasPetriti
66374bf409 Added tests for struct.go and mapstorage.go, created pathitemlist_test.go file 2023-06-21 11:04:43 +02:00
NikolasPetriti
c7e0432b01 Added coverage tests for mapstorage.go, errors.go and dataprovider.go 2023-06-21 11:04:43 +02:00
NikolasPetriti
da0d7807cb Remove unnecessary error check 2023-06-21 11:04:43 +02:00
ionutboangiu
b7d172f78a Fix misspellings 2023-06-21 11:02:39 +02:00
ionutboangiu
5e18e2f1b5 Resolve issue with tabs not being displayed in docs 2023-06-21 11:02:39 +02:00
ionutboangiu
e90773a49e Update libraries 2023-06-16 21:20:45 +02:00
ionutboangiu
52f5392ce9 Update installation docs for .rpm package & bump version 2023-06-16 21:20:45 +02:00
ionutboangiu
e7acdfb32e Adjust releaseTag in .spec file 2023-06-16 05:53:29 -04:00
ionutboangiu
a8ea67eef6 Adjust releaseTag in .spec file 2023-06-16 11:43:05 +02:00
ionutboangiu
4820ef4d2a Remove unused confiugration files 2023-06-16 10:24:13 +02:00
ionutboangiu
56c4e1196b Make small revision to installation docs 2023-06-16 10:24:13 +02:00
ionutboangiu
16ca2cec15 Revise cgrates.spec files 2023-06-16 10:24:13 +02:00
ionutboangiu
cac1dc82d0 Add bash script that generates package 2023-06-16 10:24:13 +02:00
ionutboangiu
77f63adffe Make small revisions cgrates.service file 2023-06-16 10:24:13 +02:00
ionutboangiu
989bef5859 Revise cgrates.init script file 2023-06-16 10:24:13 +02:00
ionutboangiu
262c1bd981 Revise logging .conf files 2023-06-16 10:24:13 +02:00
ionutboangiu
c423d1e81f Remove executable bit from doc files and rename them 2023-06-16 10:24:13 +02:00
ionutboangiu
33a90f4bd6 Add shebang for postgres scripts 2023-06-16 10:24:13 +02:00
ionutboangiu
14bcf00011 Remove executable bit from .md files 2023-06-16 10:24:13 +02:00
ionutboangiu
3935a72605 Remove executable bit from .go files 2023-06-16 10:24:13 +02:00
NikolasPetriti
0d1e468fa0 Remove unnecessary error check 2023-06-16 10:23:03 +02:00
NikolasPetriti
75afa538ee Add coverage tests for reflect.go 2023-06-16 10:23:03 +02:00
NikolasPetriti
57a565e459 Added tests for reflect.go 2023-06-16 10:23:03 +02:00
NikolasPetriti
45105cfbac Covered tests for pathitem.go and dataconverter.go 2023-06-16 10:23:03 +02:00
ionutboangiu
1a21d594ad Add script to generate package 2023-06-13 20:14:58 +02:00
ionutboangiu
ddc6fd24db Revise .spec and readme files 2023-06-13 20:14:58 +02:00
ionutboangiu
310876837d Update shebangs for consistency 2023-06-13 20:14:58 +02:00