Guillem Jover
a551ce2246
TT#69200 Reduce nesting levels in array_to_map()
...
Switch to early next iterations, and fold two consecutive ifs into one.
Change-Id: I2184a190dc1dd7cc303b52ece39a23deb28abb2c
6 years ago
Guillem Jover
2b13bb6724
TT#69200 Switch from C-style for loops to range ones
...
Change-Id: Ia65ed1ee29dd57339749123d99835262884db689
6 years ago
Guillem Jover
64d4ec32ad
TT#69200 Switch to an early return in arrayeq() to reduce nesting level
...
Change-Id: I04ea1a4c9007ba1ebb6c0ecfbd2b716a53a7475f
6 years ago
Guillem Jover
22a0d69263
TT#69200 Rewrite mapeq() to not need an intermediate hash
...
Change-Id: I7b9fd87954c6583126993d6c0624f2f84faf5d16
6 years ago
Guillem Jover
d167d55a90
TT#69200 Refactor getting the size of a hash
...
Change-Id: I1b2e401d009a9712e059a68e6d62b193acb98596
6 years ago
Guillem Jover
9800b99040
TT#69200 Refactor getting last array index into a new sub
...
Change-Id: I41ab18e181d7dc6efa87c8b1f68779431487ca61
6 years ago
Guillem Jover
456d120d0e
TT#69200 Do not use indirect method syntax
...
This has weird semantics and is generally frowned upon.
Change-Id: Ib1d43f13b935959508ce44b85999b615f7850b27
6 years ago
Guillem Jover
dfaeb89eda
TT#69200 Add more unit tests for NGCP::BulkProcessor::Array
...
Change-Id: I5164ccdeb14ece516a95264fef11c728331fdbdd
6 years ago
Guillem Jover
bcbe99c74d
TT#69200 Fix mapeq() to match correctly according to caseinsensitive argument
...
Change-Id: I747614927df0a1b0b947c95049b9007e11570bd6
6 years ago
Guillem Jover
85d59d562a
TT#69200 Set shebang for perl scripts
...
Unix systems default to using /bin/sh when trying to run an executable
script that has no shebang.
Change-Id: I18ef857fbc54fd72e6ad06b0f85c8c908fb0880d
6 years ago
Guillem Jover
803bacf8a5
TT#69200 Use strict and warnings
...
We require these with perlcritic, but have not been triggered as these
scripts have no shebang, which we will be adding later.
Change-Id: I81ac98c9ee72cce9b3446a98e1aae53e4c04b578
6 years ago
Guillem Jover
dbd7ac7e7a
TT#69200 Move hash argument to content method into a variable
...
This confuses perlritic, which consider this a pair of statements
separated by a comma.
Change-Id: I3c67c2fff03e5142a0dc284221dd0cc991ae052d
6 years ago
Guillem Jover
9cca145beb
TT#69200 Use correct variable in _create_cftimeset() sub
...
Change-Id: Ia2f111a2fbdb05b06a55b82ce1d5daa4d1f3c7fd
6 years ago
Guillem Jover
34a51e059c
TT#69200 Set exexutable bits for programs
...
Change-Id: Ic5a6e270e90bc6c1c4f6c6f0fc43f66869bd16e2
6 years ago
Guillem Jover
0bb15f41f3
TT#69950 Unbundle Excel::Reader::XLSX modules
...
This is a separate upstream distribution which we should not be
bundling.
Change-Id: I71c504725dfcc4caffa141895a8472355d493160
6 years ago
Rene Krenn
8b934eb8b2
TT#69853 support resetting .ama export status by call-id(s)
...
Change-Id: Iac1ceaf333a6e431cb59fc03e8015d337d0ac692
6 years ago
Guillem Jover
5d38bd26f7
TT#69200 Reimplement itemcount() based on grep()
...
This is somewhat faster:
Rate for_case grep_case for grep
for_case 53476/s -- -32% -42% -50%
grep_case 78125/s 46% -- -15% -27%
for 91743/s 72% 17% -- -14%
grep 106383/s 99% 36% 16% --
Change-Id: I7b44f8f3b2146971f7b38e0224295ab7d301c615
6 years ago
Guillem Jover
117202701c
TT#69200 Remove unused variable in arrayeq()
...
Change-Id: I14e16592d83448db56de4498fc1a3b2f25aee88e
6 years ago
Guillem Jover
9485368290
TT#69200 Reimplement removeduplicates() based of List::Util's uniq
...
This adds a behavior change, reflected in the unit test changes, by
always returning the lowercased versions of the array elements when
case insensitiveness is enabled. This should be fine, given that we
do not care from the callers PoV, and the result might have changed
depending on the order of the inputs.
Change-Id: I44896183b566e921cc1287f106fb4bb9332acb97
6 years ago
Guillem Jover
54704e0837
TT#69200 Reimplement contains() based on List::Util's any()
...
Change-Id: Ic3d8eb5a6bdcb6b6021706c9450f06b65db4e688
6 years ago
Guillem Jover
fdc64d61eb
TT#69200 Use reverse in reversearray() instead of an ad-hoc implementation
...
Change-Id: I805e1e7e06b57774275353d1457ed37e5c78a13e
6 years ago
Guillem Jover
0991288e50
TT#69200 Pass the entire list to push in mergearrays()
...
We do not need to add one item at a time, push accepts a list as an
argument.
Change-Id: I30d81f941c1ce91cb2ed90662cbd9e9daf6fa09f
6 years ago
Guillem Jover
c88a6b27db
TT#69200 Add initial unit tests for NGCP::BulkProcessor::Array
...
Change-Id: I1bd29194a4df1ad5a85b49342c7a8381ff5336e0
6 years ago
Guillem Jover
7857a1c575
TT#69200 Susbstantially simplify and generalize kbytes2gigs()
...
This makes it possible to easily extend the function to support new
units.
Change-Id: I9e0935fb20013e962e48ec6e27a04d01cd9730be
6 years ago
Guillem Jover
e6ebcc15c5
TT#69200 Use Time::Piece and Time::Local to add up months
...
These are core modules, which require no additional dependencies.
Change-Id: I8dbda5142dcc9d095a2c703ef6cee5364d2ba55a
6 years ago
Guillem Jover
018eafb770
TT#69200 Use Time::Piece instead of ad-hoc code to print dates and times
...
This is a core module, which requires no additional dependencies.
Change-Id: I0830f022788a5e7b69b0afa462654fabf277e254
6 years ago
Guillem Jover
72d7000151
TT#69200 Use Time::Seconds instead of ad-hoc code to pretty print time offsets
...
This is a core module, which requires no additional dependencies.
Change-Id: I93a2c3fd75fd7790461ccc694ed73c4899a1ef20
6 years ago
Guillem Jover
561e36d08c
TT#69200 Use sprintf instead of ad-hoc code to 0 fill digits
...
Which is also around 300% faster:
Rate had-hoc sprintf
had-hoc 3508772/s -- -75%
sprintf 14084507/s 301% --
Change-Id: I5ebce0058473f9de08c381739646a20e42308a8f
6 years ago
Guillem Jover
080258cf92
TT#69200 Updete perl build system dependencies
...
List all used modules, remove unused ones and add missing ones. Move
some optional dependencies into suggests.
Change-Id: I66966af1fb32e97cb44c15fe9aec9cac96e36050
6 years ago
Guillem Jover
e7fb54327b
TT#69200 Switch to use CPAN::Meta::Spec metadata
...
Use the new dependency structure instead of the deprecated one, which is
more semantically rich, and uniform.
Change-Id: I2288c0d349cfe6ae5c0168e35f2c7cf00e8b7091
6 years ago
Guillem Jover
3b125ec928
TT#69200 Sort perl build system dependencies
...
This will make updating them more clear, to easily see what got removed
or added, and not lose sight in between the sorting noise.
Change-Id: I3826668b726873e7dcce6c4c86dde8d8ea2bea9a
6 years ago
Rene Krenn
1b96d8923b
TT#67109 TT#63655 migrate voipnumbers.listtimestamp
...
Change-Id: I24ae999cb7807e764bb38797689be0477d021655
6 years ago
Rene Krenn
116f88bc2c
TT#63528 CCS importer: clear CFU prefs for subs with "1:1" routing type
...
Change-Id: I84b0b6450034dbbad4cf1b18f5674728ef1ad3e6
6 years ago
Rene Krenn
dd3ad894be
TT#67109 TT#63655 remove debug limit
...
Change-Id: I7b99fbb13feed2d11ca37b863ca2b6aa006cf5be
6 years ago
Rene Krenn
04d6c7fc0b
Revert "TT#69150 Switch to use IO::Prompt::Tiny instead of ad-hoc code"
...
This reverts commit 565f539825
.
Reason for revert: <INSERT REASONING HERE>
Change-Id: I35eaebf6294faa192e90b85c46f30685f9e9ab6f
6 years ago
Rene Krenn
51edb2e561
TT#67109 TT#63655 move projects, dbschema for mergemigration tool
...
Change-Id: I8db0588c43fd96cdf7f6d9901773b29e940cae16
6 years ago
Guillem Jover
548fa1a352
TT#69200 Use List::Util max() and min() instead of ad-hoc code
...
This is a core module, which requires no additional dependencies.
Change-Id: If7034c4478bcf5f39d0a3f1f9b4f09da475fcc52
6 years ago
Guillem Jover
565f539825
TT#69150 Switch to use IO::Prompt::Tiny instead of ad-hoc code
...
Change-Id: Ifdbff773894bf6f8d4e23b9d647b34487adcd954
6 years ago
Sipwise Jenkins Builder
27f19fdb33
Release new version 8.1.0.0+0~mr8.1.0.0
6 years ago
Sipwise Jenkins Builder
5f534d9a24
Release new version 8.0.0.0+0~mr8.0.0.0
6 years ago
Rene Krenn
cc37f38d5b
TT#64001 .ama: accept also CFB for "callforward on ncgp" sceanrio
...
Change-Id: I4e7bbe396b246548935fe0ada58e53992542ffa3
6 years ago
Rene Krenn
bfe32e007c
TT#64001 .ama: filter by User-To-User header value
...
Change-Id: I40e919a770bcdf6d20bfe205903a8dcf37eb8a17
6 years ago
Rene Krenn
70b5b93596
TT#64001 .ama: process User-To-User instead of $ivr_duration_limit
...
Change-Id: Ib118e8f543cf67fabde75e12bdda71653df277f8
6 years ago
Guillem Jover
2e8dd9f54d
TT#61954 Set debhelper compat level in Build-Depends instead of debian/compat
...
Change-Id: Ie5ef217b43ae8d73b842969fdfd006e1a12c8152
6 years ago
Rene Krenn
e7ed4d79c6
TT#63528 CCS importer: clear CFU for subs with "1:1" routing type
...
Change-Id: I27d19da4629041127ff2fa5317f5b62de06e89fa
6 years ago
Guillem Jover
81fb90a0f8
TT#61954 Update copyright years
...
Change-Id: If1c22185eb757507b4fbb30d6739e82517b6050e
6 years ago
Guillem Jover
a1d0416e15
TT#61101 Remove obsolete alternative dependencies
...
These have long been gone, time to cleanup.
Change-Id: I60c97a0f2c4f7685315cc160f09b811ebae69523
6 years ago
Sipwise Jenkins Builder
8e5b0c5b50
Release new version 7.5.0.0+0~mr7.5.0.0
6 years ago
Rene Krenn
baf0d3eebe
TT#59265 ccs importer: detect delta of imports
...
Change-Id: I9c6dcbffdc1611479bc365c8fbd38ee98d963d0d
6 years ago
Rene Krenn
753aa4d390
TT#58651 ama exporter: change TERM_DIGITS for cfu_no_ivr scenario
...
Change-Id: I2378685f6c5b547dba8a6e4bd4f2c004efd16564
6 years ago