Conversation
|
Thanks for opening this, but we'd appreciate a little more information. Could you update it with more details? |
📝 WalkthroughWalkthroughThis pull request migrates Sentry error tracking from external CDN sources to a locally bundled version and updates the Sentry integration API to use the new breadcrumbs pattern. The local bundle is configured for deployment via libman. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
Web/Resgrid.Web/Areas/User/Views/Shared/_UserLayout.cshtml (1)
37-37: Add cache-busting to the new local Sentry script include.Line 37 introduces a static local asset; adding
asp-append-version="true"avoids stale SDK cache after upgrades.Proposed tweak
- <script src="~/lib/sentry/bundle.min.js"></script> + <script src="~/lib/sentry/bundle.min.js" asp-append-version="true"></script>🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@Web/Resgrid.Web/Areas/User/Views/Shared/_UserLayout.cshtml` at line 37, The new local Sentry script include in _UserLayout.cshtml is a static asset that needs cache-busting; update the <script> tag that references "~/lib/sentry/bundle.min.js" to include the asp-append-version="true" attribute so the framework appends a version query string and avoids serving stale SDK files after upgrades.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@Web/Resgrid.Web/libman.json`:
- Around line 319-325: The libman.json entry referencing the filesystem provider
"vendor/sentry/" is pointing to a non-existent source and will cause libman
restore to fail during the PrepublishScript invoked by Resgrid.Web.csproj; fix
this by either adding the missing vendor/sentry files into the repository at
vendor/sentry/, removing the sentry entry from libman.json, or changing the
provider to a valid package source (e.g., "provider": "unpkg" or switching to
npm) and updating the "library" and "files" fields accordingly so libman restore
can succeed.
---
Nitpick comments:
In `@Web/Resgrid.Web/Areas/User/Views/Shared/_UserLayout.cshtml`:
- Line 37: The new local Sentry script include in _UserLayout.cshtml is a static
asset that needs cache-busting; update the <script> tag that references
"~/lib/sentry/bundle.min.js" to include the asp-append-version="true" attribute
so the framework appends a version query string and avoids serving stale SDK
files after upgrades.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: be5a0b8b-4009-4420-9182-4dfdc7e2e754
⛔ Files ignored due to path filters (2)
Web/Resgrid.Web/vendor/sentry/bundle.min.jsis excluded by!**/*.min.jsWeb/Resgrid.Web/vendor/sentry/bundle.min.js.mapis excluded by!**/*.map,!**/*.min.js.map
📒 Files selected for processing (2)
Web/Resgrid.Web/Areas/User/Views/Shared/_UserLayout.cshtmlWeb/Resgrid.Web/libman.json
| "provider": "filesystem", | ||
| "library": "vendor/sentry/", | ||
| "destination": "wwwroot/lib/sentry/", | ||
| "files": [ | ||
| "bundle.min.js", | ||
| "bundle.min.js.map" | ||
| ] |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "Verify filesystem-provider source files exist"
fd -p '^vendor/sentry/bundle\.min\.js$'
fd -p '^vendor/sentry/bundle\.min\.js\.map$'
echo "Verify publish step runs libman restore"
fd -p 'Resgrid.Web.csproj' -x rg -n 'PrepublishScript|libman restore'Repository: Resgrid/Core
Length of output: 256
Missing vendor/sentry files will cause libman restore to fail during publish.
The vendor/sentry/ directory referenced in this libman.json entry does not exist in the repository. Since PrepublishScript in Resgrid.Web.csproj correctly invokes libman restore before publish, this configuration will fail when the build pipeline attempts to copy non-existent files.
Either add the vendor/sentry source files to the repository, remove this libman.json entry, or switch to a package manager source (e.g., npm, NuGet) instead of the filesystem provider.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@Web/Resgrid.Web/libman.json` around lines 319 - 325, The libman.json entry
referencing the filesystem provider "vendor/sentry/" is pointing to a
non-existent source and will cause libman restore to fail during the
PrepublishScript invoked by Resgrid.Web.csproj; fix this by either adding the
missing vendor/sentry files into the repository at vendor/sentry/, removing the
sentry entry from libman.json, or changing the provider to a valid package
source (e.g., "provider": "unpkg" or switching to npm) and updating the
"library" and "files" fields accordingly so libman restore can succeed.
|
Approve |
Summary by CodeRabbit