Website: (Android proxy) Add deviceNotFound exit to four android proxy endpoints - #49918
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
WalkthroughFour Android proxy controllers now declare a 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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.
Pull request overview
Adds a new deviceNotFound exit across Android proxy endpoints so Fleet servers can receive a dedicated “device does not exist” notFound response when the Android Management API returns HTTP 404.
Changes:
- Added a
deviceNotFoundexit to the four Android proxy actions. - Added
status: 404interception in each action’s AMAPI call flow to map AMAPI 404 →deviceNotFound.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| website/api/controllers/android-proxy/modify-android-device.js | Adds deviceNotFound exit and intercepts AMAPI 404 responses. |
| website/api/controllers/android-proxy/issue-command-on-android-device.js | Adds deviceNotFound exit and intercepts AMAPI 404 responses. |
| website/api/controllers/android-proxy/get-android-device.js | Adds deviceNotFound exit and intercepts AMAPI 404 responses. |
| website/api/controllers/android-proxy/delete-android-device.js | Adds deviceNotFound exit and intercepts AMAPI 404 responses. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Changes:
deviceNotFoundresponse to Fleet servers when the Android management API returns a 404 response.Summary by CodeRabbit