Commit dba0b79
feat: Use grouper in history page (#1091)
* Create fetcher utility
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* rename query
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* Create hook for fetching history
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* add configurable throttleMs to the hook
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* use fetcher in workflow history
* remove useKeepLoadingEvents
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* grouping utility
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* update test cases
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* change the api of onChange and add destroy method
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* replace getGroups with getState
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* init grouper hook
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* user grouper in history
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* update fetcher based on feedback
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* rename unmout to destroy
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* Create hook for fetching history
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* move condition into executeImmediately
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* update destroy in method
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* mock grouper throttle
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* fix use fetcher test case
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* feat: Grouped events table header (#1059)
* Grouped events header
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* add test cases
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* fix comment typo
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* add space for reset button
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* move grouped table
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* Update src/views/workflow-history-v2/workflow-history-grouped-table/workflow-history-grouped-table.tsx
Co-authored-by: Adhitya Mamallan <adi1998is@gmail.com>
* Change Id to ID
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
---------
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
Co-authored-by: Adhitya Mamallan <adi1998is@gmail.com>
* chore: Fixed docker URI for kafka image (#1066)
Signed-off-by: Tim Chan <tim.chan@uber.com>
* chore: New feature flag for Cron List View (#1068)
Signed-off-by: Tim Chan <tim.chan@uber.com>
* use fetcher in workflow history
* fix content clicks
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* fix use initial selected event
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* increase page size
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* optimize first page processing
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* fix test cases
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* fix: History content negative z-index disallow clicks (#1069)
* fix content clicks
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* Update src/views/workflow-history/workflow-history.styles.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* feat: Use fetcher in workflow history (#1064)
* Create fetcher utility
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* rename query
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* Create hook for fetching history
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* add configurable throttleMs to the hook
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* use fetcher in workflow history
* remove useKeepLoadingEvents
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* update fetcher based on feedback
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* rename unmout to destroy
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* Create hook for fetching history
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* move condition into executeImmediately
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* update destroy in method
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* fix type error with query params
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
---------
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* fix: Autocomplete for bool values (#1072)
Fix workflows query autocomplete to suggest the correct tokens for boolean values
Signed-off-by: Adhitya Mamallan <adhitya.mamallan@uber.com>
* Add feature flag for Failover History (#1070)
Signed-off-by: Adhitya Mamallan <adhitya.mamallan@uber.com>
* Add failover history tab (#1071)
Signed-off-by: Adhitya Mamallan <adhitya.mamallan@uber.com>
* chore: Added ts-node to dev-deps (#1074)
Signed-off-by: Tim Chan <tim.chan@uber.com>
* feat: Hook to fetch & filter Failover History of a domain (#1075)
Add hook for fetching and filtering failover history
Add helper function to check if a ClusterFailover matches a given cluster attribute
Add some types/constants for domain page failovers
Signed-off-by: Adhitya Mamallan <adhitya.mamallan@uber.com>
* feat: New Cron Tab (#1078)
Signed-off-by: Tim Chan <tim.chan@uber.com>
* feat: Failover History table (#1076)
* Add table to display failover history of a domain, with support for both active-passive and active-active domains
Signed-off-by: Adhitya Mamallan <adhitya.mamallan@uber.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* chore: Fix console.error pollution (#1077)
* chore: Fix console.error pollution
Signed-off-by: Tim Chan <tim.chan@uber.com>
* Relocated to src/test-utils.
Signed-off-by: Tim Chan <tim.chan@uber.com>
---------
Signed-off-by: Tim Chan <tim.chan@uber.com>
* Add flag for History Page v2 (#1081)
Signed-off-by: Adhitya Mamallan <adhitya.mamallan@uber.com>
* feat: Filters for Failover History Table (#1079)
Add filters for Failover History table, but only for active-active domains
Create filter for Cluster Attribute Scope, which depends on domain description to suggest possible scopes
Create filter for Cluster Attribute Value, which depends on selected scope to suggest possible values/names
Remove (now) unused styles file from DomainPageFailovers
Signed-off-by: Adhitya Mamallan <adhitya.mamallan@uber.com>
* feat: Create a grouping utility that only parses new events (#1065)
* grouping utility
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* update test cases
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* change the api of onChange and add destroy method
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* replace getGroups with getState
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* call onchange after updating pending events
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* use sync processBatch for first page
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
* Update src/views/workflow-history/helpers/workflow-history-grouper.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Apply PR comments
* Update src/views/workflow-history/helpers/workflow-history-grouper.types.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* feat: Add modal to view full failover event (#1080)
* Add modal for viewing an individual failover event, which is shown when "See more" in the table is clicked
Signed-off-by: Adhitya Mamallan <adhitya.mamallan@uber.com>
* feat: New components for Workflow History V2 (#1082)
* Add new Workflow History V2 root component, which (for now) renders only a placeholder header component and placeholder tables.
* Implement Workflow History Header with basic UI and sticky functionality
* Add logic in WorkflowHistoryWrapper to render V2 UI based on feature flag
Signed-off-by: Adhitya Mamallan <adhitya.mamallan@uber.com>
* update test cases
* hook for history grouper
* remove comments
* fetcher updates
* add placeholder for fetcher
* update fetcher mock
* fetcher start update
* update todo
* Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix copilot comments
* remove extra comment
* lint fix
* change lastFlattented initial value to -1
* remove unused import
* address comments
---------
Signed-off-by: Assem Hafez <assem.hafez@uber.com>
Signed-off-by: Tim Chan <tim.chan@uber.com>
Signed-off-by: Adhitya Mamallan <adhitya.mamallan@uber.com>
Co-authored-by: Adhitya Mamallan <adi1998is@gmail.com>
Co-authored-by: Tim Chan <timothyc@alum.mit.edu>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Adhitya Mamallan <adhitya.mamallan@uber.com>1 parent 620345a commit dba0b79
File tree
5 files changed
+190
-47
lines changed- src/views/workflow-history
- helpers
- hooks
- __tests__
5 files changed
+190
-47
lines changedLines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| |||
Lines changed: 149 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
4 | 10 | | |
5 | 11 | | |
6 | | - | |
7 | | - | |
8 | 12 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
13 | 29 | | |
14 | | - | |
15 | 30 | | |
16 | 31 | | |
17 | 32 | | |
18 | | - | |
| 33 | + | |
19 | 34 | | |
20 | 35 | | |
21 | 36 | | |
22 | 37 | | |
23 | 38 | | |
24 | 39 | | |
25 | 40 | | |
26 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
27 | 48 | | |
28 | 49 | | |
29 | 50 | | |
30 | | - | |
| 51 | + | |
31 | 52 | | |
32 | 53 | | |
33 | 54 | | |
34 | 55 | | |
35 | 56 | | |
36 | 57 | | |
37 | 58 | | |
38 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
39 | 67 | | |
40 | 68 | | |
41 | | - | |
42 | | - | |
43 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
44 | 91 | | |
45 | 92 | | |
46 | 93 | | |
47 | 94 | | |
48 | 95 | | |
49 | 96 | | |
50 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
51 | 127 | | |
52 | 128 | | |
53 | 129 | | |
54 | | - | |
| 130 | + | |
55 | 131 | | |
56 | 132 | | |
57 | 133 | | |
58 | 134 | | |
59 | 135 | | |
60 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
61 | 193 | | |
Lines changed: 25 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
4 | 2 | | |
5 | 3 | | |
6 | 4 | | |
| |||
12 | 10 | | |
13 | 11 | | |
14 | 12 | | |
15 | | - | |
| 13 | + | |
16 | 14 | | |
17 | 15 | | |
| 16 | + | |
18 | 17 | | |
| 18 | + | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | 28 | | |
26 | | - | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | | - | |
30 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
31 | 42 | | |
32 | 43 | | |
33 | 44 | | |
34 | | - | |
35 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
36 | 49 | | |
37 | 50 | | |
38 | 51 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
62 | 68 | | |
63 | 69 | | |
64 | 70 | | |
| |||
73 | 79 | | |
74 | 80 | | |
75 | 81 | | |
76 | | - | |
77 | | - | |
| 82 | + | |
78 | 83 | | |
79 | 84 | | |
80 | 85 | | |
| |||
125 | 130 | | |
126 | 131 | | |
127 | 132 | | |
128 | | - | |
| 133 | + | |
129 | 134 | | |
130 | 135 | | |
131 | 136 | | |
132 | 137 | | |
133 | 138 | | |
134 | 139 | | |
135 | 140 | | |
136 | | - | |
| 141 | + | |
137 | 142 | | |
138 | 143 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
| 144 | + | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
| 238 | + | |
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| |||
0 commit comments