Skip to content

Set state color API#3492

Open
jmthomas wants to merge 3 commits into
mainfrom
set-state-color
Open

Set state color API#3492
jmthomas wants to merge 3 commits into
mainfrom
set-state-color

Conversation

@jmthomas

@jmthomas jmthomas commented Jun 18, 2026

Copy link
Copy Markdown
Member

closes #1644

jmthomas and others added 2 commits June 18, 2026 12:41
Adds set_state_color(target, packet, item, state, color) to the Ruby and
Python limits APIs. Items with states (e.g. CONNECTED=GREEN) can now have
their color changed at runtime. The change persists in the packet definition
and in current_limits_settings (so it survives a decom restart) and is
broadcast as a LIMITS_STATE_COLOR event so running decom microservices apply
it live. Closes #1644.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@codecov

codecov Bot commented Jun 18, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.10345% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.25%. Comparing base (f29c725) to head (73b1e57).

Files with missing lines Patch % Lines
openc3/lib/openc3/topics/limits_event_topic.rb 80.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3492      +/-   ##
==========================================
- Coverage   79.25%   79.25%   -0.01%     
==========================================
  Files         689      689              
  Lines       57293    57417     +124     
  Branches      728      728              
==========================================
+ Hits        45406    45504      +98     
- Misses      11809    11835      +26     
  Partials       78       78              
Flag Coverage Δ
python 80.33% <ø> (+0.05%) ⬆️
ruby-api 80.88% <ø> (-0.45%) ⬇️
ruby-backend 83.11% <93.10%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jmthomas jmthomas requested review from mcosgriff and ryanmelt June 18, 2026 18:57
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
6 New issues

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add API to change state color limits in realtime

1 participant