Commit a85f0ea
authored
Resolve principalId inside diagnostic module to avoid cross-scope reference error (#762)
### Summary & Motivation
Resolve `principalId` inside the diagnostics module to eliminate the
cross-scope `reference()` error during deployment.
This fixes [this cloud infrastructure
error](https://github.com/platformplatform/PlatformPlatform/actions/runs/16051114349/job/45293755354).
- Remove the `principalId` parameter from the diagnostics module
interface.
- Retrieve the `principalId` internally within the module, ensuring all
references stay within the same scope.
- Update calling templates to reflect the revised module signature.
### Checklist
- [x] I have added tests, or done manual regression tests
- [x] I have updated the documentation, if necessary2 files changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | 123 | | |
125 | 124 | | |
126 | 125 | | |
| |||
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
8 | 13 | | |
9 | 14 | | |
10 | 15 | | |
11 | | - | |
| 16 | + | |
12 | 17 | | |
13 | 18 | | |
14 | 19 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
0 commit comments