-
-
Notifications
You must be signed in to change notification settings - Fork 78
RE1-T105 Added Languages to missing pages, gdpr support for export, e… #307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,51 @@ | ||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||
| "permissions": { | ||||||||||||||||||||||||||||||||||||||||||||||
| "allow": [ | ||||||||||||||||||||||||||||||||||||||||||||||
| "mcp__dual-graph__graph_scan", | ||||||||||||||||||||||||||||||||||||||||||||||
| "mcp__dual-graph__graph_continue", | ||||||||||||||||||||||||||||||||||||||||||||||
| "Bash(find G:ResgridResgridCoreResgrid.ModelBilling -type f -name *.cs)", | ||||||||||||||||||||||||||||||||||||||||||||||
| "Bash(python3:*)", | ||||||||||||||||||||||||||||||||||||||||||||||
| "Bash(xargs grep:*)", | ||||||||||||||||||||||||||||||||||||||||||||||
| "Bash(grep -E \"\\\\.cs$|Program\")", | ||||||||||||||||||||||||||||||||||||||||||||||
| "Bash(grep -l \"DepartmentMembers\\\\|DepartmentMember\" \"G:\\\\Resgrid\\\\Resgrid/Repositories/Resgrid.Repositories.DataRepository/\"*.cs)", | ||||||||||||||||||||||||||||||||||||||||||||||
| "Bash(find /g/Resgrid/Resgrid/Repositories/Resgrid.Repositories.DataRepository/Servers -name *.cs)", | ||||||||||||||||||||||||||||||||||||||||||||||
| "Bash(find G:/Resgrid/Resgrid -newer G:/Resgrid/Resgrid/CLAUDE.md -name *.cs -not -path */obj/* -not -path */.git/*)", | ||||||||||||||||||||||||||||||||||||||||||||||
| "Bash(dotnet build:*)" | ||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+3
to
+13
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Overly broad command allowlist weakens execution safety
Please narrow these to explicit command templates and constrained paths only. Suggested tightening- "Bash(python3:*)",
- "Bash(xargs grep:*)",
- "Bash(dotnet build:*)"
+ "Bash(python3 scripts/dual_graph_*.py)",
+ "Bash(xargs -0 grep -nE \"DepartmentMembers|DepartmentMember\")",
+ "Bash(dotnet build G:/Resgrid/Resgrid/Resgrid.sln --configuration Release)"📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||
| "hooks": { | ||||||||||||||||||||||||||||||||||||||||||||||
| "SessionStart": [ | ||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||
| "matcher": "", | ||||||||||||||||||||||||||||||||||||||||||||||
| "hooks": [ | ||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||
| "type": "command", | ||||||||||||||||||||||||||||||||||||||||||||||
| "command": "powershell -NoProfile -File \"G:/Resgrid/Resgrid/.dual-graph/prime.ps1\"" | ||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||||||||||||||||||
| "Stop": [ | ||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||
| "matcher": "", | ||||||||||||||||||||||||||||||||||||||||||||||
| "hooks": [ | ||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||
| "type": "command", | ||||||||||||||||||||||||||||||||||||||||||||||
| "command": "powershell -NoProfile -File \"G:/Resgrid/Resgrid/.dual-graph/stop_hook.ps1\"" | ||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||||||||||||||||||
| "PreCompact": [ | ||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||
| "matcher": "", | ||||||||||||||||||||||||||||||||||||||||||||||
| "hooks": [ | ||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||
| "type": "command", | ||||||||||||||||||||||||||||||||||||||||||||||
| "command": "powershell -NoProfile -File \"G:/Resgrid/Resgrid/.dual-graph/prime.ps1\"" | ||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+17
to
+49
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hook scripts depend on gitignored local artifacts without guardrails Lines 23, 34, and 45 invoke scripts under Add an existence check wrapper (or no-op fallback) before calling the scripts. Suggested resilient hook command pattern- "command": "powershell -NoProfile -File \"G:/Resgrid/Resgrid/.dual-graph/prime.ps1\""
+ "command": "powershell -NoProfile -Command \"if (Test-Path 'G:/Resgrid/Resgrid/.dual-graph/prime.ps1') { & 'G:/Resgrid/Resgrid/.dual-graph/prime.ps1' }\""🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,38 +1,10 @@ | ||
| namespace Resgrid.Config | ||
| namespace Resgrid.Config | ||
| { | ||
| public static class TelemetryConfig | ||
| { | ||
| public static string Exporter = ""; | ||
|
|
||
| public static TelemetryExporters ExporterType = TelemetryExporters.None; | ||
| public static string PostHogUrl = ""; | ||
| public static string PostHogApiKey = ""; | ||
|
|
||
| public static string AptabaseUrl = ""; | ||
| public static string AptabaseWebApiKey = ""; | ||
| public static string AptabaseServicesApiKey = ""; | ||
| public static string AptabaseResponderApiKey = ""; | ||
| public static string AptabaseUnitApiKey = ""; | ||
| public static string AptabaseBigBoardApiKey = ""; | ||
| public static string AptabaseDispatchApiKey = ""; | ||
|
|
||
| public static string CountlyUrl = ""; | ||
| public static string CountlyWebKey = ""; | ||
|
|
||
| public static string GetAnalyticsKey() | ||
| { | ||
| if (ExporterType == TelemetryExporters.PostHog) | ||
| return PostHogApiKey; | ||
| else if (ExporterType == TelemetryExporters.Aptabase) | ||
| return AptabaseWebApiKey; | ||
| return string.Empty; | ||
| } | ||
| } | ||
|
|
||
| public enum TelemetryExporters | ||
| { | ||
| None = 0, | ||
| PostHog = 1, | ||
| Aptabase = 2 | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Command path formats are inconsistent and brittle
Line 6 uses
G:ResgridResgridCoreResgrid.ModelBilling(missing separators), while other entries mix slash styles and quoting patterns. This is likely to break matching/execution across shells.Normalize to one path style and quote arguments consistently.
🤖 Prompt for AI Agents