Skip to content

[devices] add device state and selection filter - #288

Open
capcom6 wants to merge 1 commit into
masterfrom
devices/disable-selection
Open

capcom6 wants to merge 1 commit into
masterfrom
devices/disable-selection

Conversation

@capcom6

@capcom6 capcom6 commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no blocking issue was established.

Summary

Adds device states and keeps disabled devices out of message selection.

  • Users can change a device between Active and Disabled.
  • Message requests now choose only active devices.

No actionable new issues were established. Tests were inspected but not run.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[User changes device state] --> B[Check scope and ownership]
  B --> C[Save state and clear cached device]
  D[User submits message] --> E[GetAny]
  E --> F[Filter by user and Active state]
  F --> G{Matching device?}
  G -->|Yes| H[Queue message]
  G -->|No| I[Return HTTP 400]
Loading

Reviews (2) · Last reviewed commit: "[devices] add device state and selection..." · Reviewed by Greptile

@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bc4759e4-63ff-4227-9135-f9961334fc8d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

🤖 Pull request artifacts

Platform File
🐳 Docker GitHub Container Registry
🍎 Darwin arm64 server_Darwin_arm64.tar.gz
🍎 Darwin x86_64 server_Darwin_x86_64.tar.gz
🐧 Linux arm64 server_Linux_arm64.tar.gz
🐧 Linux i386 server_Linux_i386.tar.gz
🐧 Linux x86_64 server_Linux_x86_64.tar.gz
🪟 Windows arm64 server_Windows_arm64.zip
🪟 Windows i386 server_Windows_i386.zip
🪟 Windows x86_64 server_Windows_x86_64.zip

@capcom6 capcom6 added the ready label Nov 21, 2026
@capcom6
capcom6 force-pushed the devices/disable-selection branch from 6e24035 to 251aa14 Compare November 25, 2026 03:32
@github-actions github-actions Bot removed the ready label Nov 25, 2026
@capcom6 capcom6 added the ready label Nov 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant