Commit e2cf245
committed
Enhance error handling and simplify group filter logic
Improved error handling in `WebContentMetaDataLoader.cs`:
- Added a `try-catch` block for JSON deserialization to handle
`JsonSerializationException` errors.
- Logged errors using `_telemetry.LogError` and initialized
`responseMeta` as an empty list on failure.
Simplified logic in `UserGroupsCache.cs`:
- Added early return for empty `filter.Patterns` to improve clarity.
- Removed redundant condition checks and updated comments for better
readability and maintainability.1 parent 4bbc1f3 commit e2cf245
File tree
2 files changed
+16
-3
lines changed- src/AnalyticsEngine/WebJob.Office365ActivityImporter.Engine
- ActivityAPI/Loaders
- Graph/User
2 files changed
+16
-3
lines changedLines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
89 | 97 | | |
90 | 98 | | |
91 | 99 | | |
| |||
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
61 | 66 | | |
62 | 67 | | |
63 | | - | |
| 68 | + | |
64 | 69 | | |
65 | | - | |
| 70 | + | |
66 | 71 | | |
67 | 72 | | |
68 | 73 | | |
| |||
0 commit comments