Skip to content

Conversation

jmthomas
Copy link
Member

@jmthomas jmthomas commented May 20, 2023

This got pretty interesting so I'm open to any and all comments / suggestions. I didn't add any unit tests yet in case it needs a major refactor.

closes #663

@jmthomas jmthomas requested a review from ryanmelt May 20, 2023 14:54
@codecov
Copy link

codecov bot commented May 20, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -3.71 ⚠️

Comparison is base (3bf6d9c) 74.77% compared to head (4cab62e) 71.06%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #676      +/-   ##
==========================================
- Coverage   74.77%   71.06%   -3.71%     
==========================================
  Files         454      470      +16     
  Lines       28412    30040    +1628     
  Branches      545      816     +271     
==========================================
+ Hits        21244    21347     +103     
- Misses       7084     8608    +1524     
- Partials       84       85       +1     
Flag Coverage Δ
frontend 58.45% <ø> (-19.17%) ⬇️
ruby-api 51.31% <ø> (-0.06%) ⬇️
ruby-backend 78.44% <100.00%> (+0.02%) ⬆️

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

Impacted Files Coverage Δ
openc3/lib/openc3/models/scope_model.rb 92.10% <ø> (-0.21%) ⬇️
openc3/lib/openc3/models/target_model.rb 73.16% <ø> (-0.54%) ⬇️
openc3/lib/openc3/models/timeline_model.rb 86.15% <ø> (-0.21%) ⬇️
openc3/lib/openc3/models/trigger_group_model.rb 77.77% <ø> (+0.94%) ⬆️
openc3/lib/openc3/topics/config_topic.rb 91.66% <ø> (-0.65%) ⬇️
openc3/lib/openc3/topics/telemetry_decom_topic.rb 92.30% <ø> (-2.70%) ⬇️
openc3/lib/openc3/utilities/store_autoload.rb 85.86% <ø> (-0.59%) ⬇️
openc3/lib/openc3/api/cmd_api.rb 98.00% <100.00%> (+0.17%) ⬆️
openc3/lib/openc3/api/tlm_api.rb 99.00% <100.00%> (ø)
...nc3/lib/openc3/microservices/decom_microservice.rb 87.50% <100.00%> (+0.48%) ⬆️
... and 2 more

... and 29 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -75,5 +75,35 @@ def self.get_cmd_item(target_name, packet_name, param_name, type: :WITH_UNITS, s
end
end
end

def self.build_cmd(target_name, cmd_name, cmd_params, range_check, raw, scope:)
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't make sense in this file. Maybe create a new DecomInterfaceTopic and move the other thing there too?

@jmthomas jmthomas merged commit 111e58d into main May 24, 2023
@jmthomas jmthomas deleted the cmd_binary branch May 24, 2023 13:12
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 new API to build and return command binary
2 participants