Commit 5f1129e
feat: create pagination UI component (#1579)
* feat: create pagination UI component
* feat: changed from cursor base to page based pagination, dynamic endpoint
* feat: navigation headers and response refactor
* feat: SonarQube - url.match replaced with Regex.exec
* refactor: break functions out to reduce complexity
* chore: file format
* chore: file format
* test: refactored tests to new implementation
* fix: fix the mock route for local testing of exceptions
* fix: formatting and pass exceptionStatus
* fix: use the correct UpdateExceptionServiceNowId endpoint
* fix: fix the data object and ruleMapping update tests
* feat: split out pagination logic and use on raised exceptions
* fix: refactor the pagination logic
* fix: remove extra whitespace
* chore: formatting
* test: isReportTests
* fix: reduce complexity of pagination functions
* fix: fix nested template literals
* test: tests added, fluent assertions added to csproj, loggerAssertions updated
* chore: constant assignment of magic string
---------
Co-authored-by: warren <warren.pitterson1@nhs.net>
Co-authored-by: Warren-Pitterson <168638743+Warren-Pitterson@users.noreply.github.com>1 parent fa73947 commit 5f1129e
21 files changed
Lines changed: 1506 additions & 424 deletions
File tree
- application/CohortManager/src
- Functions
- screeningDataServices/GetValidationExceptions
- Web/app
- api
- GetValidationExceptions
- UpdateExceptionServiceNowId
- components
- data
- exceptions
- [filter]
- lib
- participant-information/[exceptionId]
- tests
- TestUtils
- UnitTests/ScreeningDataServicesTests/ValidationExceptionDataTests/GetValidationExceptionTests
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
Lines changed: 47 additions & 51 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
10 | 16 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 17 | | |
24 | 18 | | |
25 | 19 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 20 | + | |
| 21 | + | |
30 | 22 | | |
31 | | - | |
32 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
33 | 27 | | |
34 | 28 | | |
35 | 29 | | |
36 | 30 | | |
37 | | - | |
38 | | - | |
39 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
40 | 35 | | |
41 | 36 | | |
42 | | - | |
| 37 | + | |
| 38 | + | |
43 | 39 | | |
44 | 40 | | |
45 | 41 | | |
| |||
52 | 48 | | |
53 | 49 | | |
54 | 50 | | |
55 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
56 | 55 | | |
57 | 56 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | 57 | | |
64 | 58 | | |
65 | 59 | | |
| |||
74 | 68 | | |
75 | 69 | | |
76 | 70 | | |
77 | | - | |
| 71 | + | |
78 | 72 | | |
79 | 73 | | |
80 | | - | |
| 74 | + | |
81 | 75 | | |
82 | 76 | | |
83 | | - | |
84 | | - | |
| 77 | + | |
| 78 | + | |
85 | 79 | | |
86 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
87 | 98 | | |
88 | 99 | | |
89 | 100 | | |
90 | 101 | | |
91 | 102 | | |
92 | | - | |
| 103 | + | |
93 | 104 | | |
94 | 105 | | |
95 | 106 | | |
96 | 107 | | |
97 | | - | |
| 108 | + | |
98 | 109 | | |
99 | 110 | | |
100 | 111 | | |
101 | 112 | | |
102 | 113 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | 114 | | |
Lines changed: 8 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
74 | | - | |
| 75 | + | |
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
78 | | - | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
87 | | - | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
| 90 | + | |
| 91 | + | |
101 | 92 | | |
102 | | - | |
103 | | - | |
| 93 | + | |
104 | 94 | | |
105 | 95 | | |
106 | 96 | | |
| |||
0 commit comments