FMA - Chrome remote desktop - #46484
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #46484 +/- ##
==========================================
- Coverage 66.81% 66.80% -0.01%
==========================================
Files 2804 2805 +1
Lines 223574 223576 +2
Branches 11346 11481 +135
==========================================
- Hits 149379 149359 -20
- Misses 60641 60655 +14
- Partials 13554 13562 +8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.
Tip: disable this comment in your organization's Code Review settings.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThis pull request adds Chrome Remote Desktop as a new maintained Windows application across the entire stack. It introduces a winget input configuration defining the package metadata, registers the application in the central apps catalog, adds Windows-specific deployment configuration with SQL presence/patch queries and MSI installation scripts, and provides a React icon component for frontend display with its registration in the icon name mapping. Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@ee/maintained-apps/outputs/chrome-remote-desktop/windows.json`:
- Line 7: The patched query currently returns true when the app is not
installed; update the "patched" SQL string so it explicitly checks the app
exists AND that there are no rows with a version older than '148.0.7778.23'.
Concretely, use EXISTS(...) to verify a matching programs row (name = 'Chrome
Remote Desktop Host', publisher = 'Google LLC') and AND NOT EXISTS(...) with the
same predicate plus version_compare(version, '148.0.7778.23') < 0; reference the
"patched" JSON field, the programs table, and the version_compare(...) call when
making this change.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: beff3e69-22b8-4f25-8b9f-a0c6bc7513c4
⛔ Files ignored due to path filters (1)
website/assets/images/app-icon-chrome-remote-desktop-60x60@2x.pngis excluded by!**/*.png
📒 Files selected for processing (5)
ee/maintained-apps/inputs/winget/chrome-remote-desktop.jsonee/maintained-apps/outputs/apps.jsonee/maintained-apps/outputs/chrome-remote-desktop/windows.jsonfrontend/pages/SoftwarePage/components/icons/ChromeRemoteDesktop.tsxfrontend/pages/SoftwarePage/components/icons/index.ts
| "version": "148.0.7778.23", | ||
| "queries": { | ||
| "exists": "SELECT 1 FROM programs WHERE name = 'Chrome Remote Desktop Host' AND publisher = 'Google LLC';", | ||
| "patched": "SELECT 1 WHERE NOT EXISTS (SELECT 1 FROM programs WHERE name = 'Chrome Remote Desktop Host' AND publisher = 'Google LLC' AND version_compare(version, '148.0.7778.23') < 0);" |
There was a problem hiding this comment.
Fix the patched query logic.
The current patched query will incorrectly return 1 (patched) when the application is not installed at all, because NOT EXISTS (SELECT 1 FROM programs WHERE ... version < '148.0.7778.23') is true when there are zero matching rows.
The query should verify that the app is installed AND up-to-date.
🔧 Proposed fix
- "patched": "SELECT 1 WHERE NOT EXISTS (SELECT 1 FROM programs WHERE name = 'Chrome Remote Desktop Host' AND publisher = 'Google LLC' AND version_compare(version, '148.0.7778.23') < 0);"
+ "patched": "SELECT 1 FROM programs WHERE name = 'Chrome Remote Desktop Host' AND publisher = 'Google LLC' AND version_compare(version, '148.0.7778.23') >= 0;"🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@ee/maintained-apps/outputs/chrome-remote-desktop/windows.json` at line 7, The
patched query currently returns true when the app is not installed; update the
"patched" SQL string so it explicitly checks the app exists AND that there are
no rows with a version older than '148.0.7778.23'. Concretely, use EXISTS(...)
to verify a matching programs row (name = 'Chrome Remote Desktop Host',
publisher = 'Google LLC') and AND NOT EXISTS(...) with the same predicate plus
version_compare(version, '148.0.7778.23') < 0; reference the "patched" JSON
field, the programs table, and the version_compare(...) call when making this
change.
Summary by CodeRabbit