• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

RoundingWell / care-ops-frontend / 573f6b7d-aed9-490a-a7ec-39eb2e97e8f3

14 Oct 2025 03:12PM UTC coverage: 98.186% (-1.8%) from 99.976%
573f6b7d-aed9-490a-a7ec-39eb2e97e8f3

Pull #1536

circleci

paulfalgout
Use the callData.interactionId as the identifier

callData is available and therefore so is interactionId.
The interactionId is created with `callStarted` so it is the most reasonable id to use anyhow, but is not by default available in the callLogData
Pull Request #1536: Use the callData.interactionId as the identifier

1816 of 1873 branches covered (96.96%)

Branch coverage included in aggregate %.

6248 of 6340 relevant lines covered (98.55%)

233.27 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.0
/src/js/utils/sorting.js
1
import { isNumber } from 'underscore';
2

3
// negates based on sort direction a sortable value
4
function sortByDir(sortDirection, sortableVal) {
5
  return (sortDirection === 'desc') ? (sortableVal * -1) : sortableVal;
3,157✔
6
}
7

8
function alphaSort(sortDir, a, b, nullVal = '') {
2,724✔
9
  if (!a) a = nullVal;
3,153✔
10
  if (!b) b = nullVal;
3,153✔
11
  return sortByDir(sortDir, a.localeCompare(b));
3,153✔
12
}
13

14
function getSortNum(val, defaultVal = -1) {
×
15
  return isNumber(val) ? val : defaultVal;
8!
16
}
17

18
function numSortBy(sortDir, val, nullVal) {
19
  const num = getSortNum(val, nullVal);
×
20
  return sortByDir(sortDir, num);
×
21
}
22

23
function numSort(sortDir, a, b, nullVal = Number.NEGATIVE_INFINITY) {
4✔
24
  if (!a) a = nullVal;
4✔
25
  if (!b) b = nullVal;
4✔
26
  const sortVal = getSortNum(a, nullVal) > getSortNum(b, nullVal) ? 1 : -1;
4✔
27
  return sortByDir(sortDir, sortVal);
4✔
28
}
29

30
function intSortBy(sortDir, val, nullVal) {
31
  const int = getSortNum(val, nullVal);
×
32
  return sortByDir(sortDir, parseInt(int, 10));
×
33
}
34

35
export {
36
  alphaSort,
37
  intSortBy,
38
  numSortBy,
39
  numSort,
40
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc