Commit f9051bd
authored
[CRCR] Rename OOT → CRCR in HUD frontend (lib, API, components, queries, tests) (#8219)
## Summary
Part 3 of the OOT → CRCR rename series. Renames all `oot`/`Oot`/`OOT`
references to `crcr`/`Crcr`/`CRCR` across the torchci frontend.
**File/directory renames (14 files):**
| Old | New |
|-----|-----|
| `lib/oot/ootUtils.ts` | `lib/crcr/crcrUtils.ts` |
| `components/oot/OotPrSection.tsx` |
`components/crcr/CrcrPrSection.tsx` |
| `pages/api/oot/results.ts` | `pages/api/crcr/results.ts` |
| `test/ootUtils.test.ts` | `test/crcrUtils.test.ts` |
| `test/ootResults.test.ts` | `test/crcrResults.test.ts` |
| `clickhouse_queries/oot_summary/` | `clickhouse_queries/crcr_summary/`
|
| `clickhouse_queries/oot_backend_dashboard/` |
`clickhouse_queries/crcr_backend_dashboard/` |
| `clickhouse_queries/oot_pr_results/` |
`clickhouse_queries/crcr_pr_results/` |
**Content changes:**
- Types: `OotWorkflowJobRecord` → `CrcrWorkflowJobRecord`, `OotJobRow` →
`CrcrJobRow`, `OotSummaryRow` → `CrcrSummaryRow`, `OotPrResult` →
`CrcrPrResult`
- Components: `OotPrSection` → `CrcrPrSection`, `OotMatrix` →
`CrcrMatrix`, `OotSummaryTable` → `CrcrSummaryTable`, `OotSummaryPage` →
`CrcrSummaryPage`, `OotBackendPage` → `CrcrBackendPage`
- ClickHouse queries: `default.oot_workflow_job` →
`default.crcr_workflow_job`
- UI label: "Out-of-Tree Backends" → "Cross-Repo CI Backends"
- All import paths updated
**Note:** The DynamoDB table name (`torchci-oot-workflow-job`) is kept
as-is — that's an AWS resource renamed separately (infra change).
**Depends on:** PR 2 (ClickHouse `RENAME TABLE`) must be deployed first
since queries reference the table name.
## Rename series
| PR | Scope | Status |
|----|-------|--------|
| PR 1 | Lambda — Redis keys, config, tests |
[#8217](#8217) |
| PR 2 | ClickHouse — schema + replicator |
[#8218](#8218) |
| **PR 3 (this)** | Frontend — lib, API, components, queries, tests |
This PR |
## Test plan
- [ ] Verify all renamed imports resolve correctly (TypeScript
compilation)
- [ ] Verify ClickHouse queries reference `crcr_workflow_job` table
- [ ] Verify `/api/crcr/results` endpoint works
- [ ] Verify `/crcr` and `/crcr/[org]/[repo]` pages render
- [ ] Verify PR page `CrcrPrSection` component loads
- [ ] Verify all test files pass with updated imports/mocks1 parent 89a778d commit f9051bd
14 files changed
Lines changed: 46 additions & 46 deletions
File tree
- torchci
- clickhouse_queries
- crcr_backend_dashboard
- crcr_pr_results
- crcr_summary
- components/crcr
- lib/crcr
- pages
- [repoOwner]/[repoName]/pull
- api/crcr
- crcr
- [org]
- test
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
File renamed without changes.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
File renamed without changes.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
| 39 | + | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | | - | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
0 commit comments