Skip to content

[Feature] Add Username/Approver to the Command Export#2648

Merged
clayandgen merged 3 commits intomainfrom
feature/data-extractor-data
Dec 19, 2025
Merged

[Feature] Add Username/Approver to the Command Export#2648
clayandgen merged 3 commits intomainfrom
feature/data-extractor-data

Conversation

@clayandgen
Copy link
Copy Markdown
Contributor

closes #2286

Adds the username and approver details of a sent command in the _extra field, to be used in the Data Extractor and Command History tools.

Screenshot 2025-12-17 at 9 44 24 AM Screenshot 2025-12-17 at 9 44 13 AM

@codecov
Copy link
Copy Markdown

codecov bot commented Dec 17, 2025

Codecov Report

❌ Patch coverage is 61.53846% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.25%. Comparing base (7985ede) to head (2689815).
⚠️ Report is 13 commits behind head on main.

Files with missing lines Patch % Lines
...lib/openc3/microservices/interface_microservice.rb 33.33% 4 Missing ⚠️
...-cosmos-cmd-tlm-api/app/models/streaming_thread.rb 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2648      +/-   ##
==========================================
+ Coverage   79.23%   79.25%   +0.01%     
==========================================
  Files         662      662              
  Lines       52407    52412       +5     
  Branches      734      734              
==========================================
+ Hits        41524    41537      +13     
+ Misses      10803    10795       -8     
  Partials       80       80              
Flag Coverage Δ
python 81.24% <ø> (+0.02%) ⬆️
ruby-api 84.48% <85.71%> (+0.05%) ⬆️
ruby-backend 82.21% <33.33%> (+<0.01%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 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.

release_critical = True
else:
return f"Critical command {msg_hash[b'release_critical'].decode()} not found"
return "SUCCESS"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jmthomas -- This seemed like a bug, as it's not in the interface_microservice.rb and it short-circuits

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. There must have been a side effect. Were commands not released in Python?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need better unit tests for this?

Copy link
Copy Markdown
Member

@jmthomas jmthomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See if you can resolve the eslint error.

release_critical = True
else:
return f"Critical command {msg_hash[b'release_critical'].decode()} not found"
return "SUCCESS"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need better unit tests for this?

@clayandgen clayandgen merged commit 7dd8096 into main Dec 19, 2025
46 of 47 checks passed
@clayandgen clayandgen deleted the feature/data-extractor-data branch December 19, 2025 19:44
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.

Export from Command History (or improve Data Extractor)

2 participants