Skip to content

Add params to connect_interface #192

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 5, 2022
Merged

Conversation

jmthomas
Copy link
Member

@jmthomas jmthomas commented Oct 5, 2022

closes #177

@jmthomas jmthomas requested a review from ryanmelt October 5, 2022 19:13
@jmthomas
Copy link
Member Author

jmthomas commented Oct 5, 2022

Note this isn't quite working yet. It has somehow broken connecting the EXAMPLE and TEMPLATED interfaces. It appears the connect method thinks the interface name is a parameter and is then trying to pass that through to the constructor. I think the issue is with the Javascript but still debugging.

@codecov
Copy link

codecov bot commented Oct 5, 2022

Codecov Report

Base: 73.79% // Head: 74.01% // Increases project coverage by +0.21% 🎉

Coverage data is based on head (110d5fe) compared to base (51036b9).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #192      +/-   ##
==========================================
+ Coverage   73.79%   74.01%   +0.21%     
==========================================
  Files         413      413              
  Lines       25551    25564      +13     
  Branches      560      560              
==========================================
+ Hits        18855    18920      +65     
+ Misses       6611     6558      -53     
- Partials       85       86       +1     
Flag Coverage Δ
frontend 75.67% <ø> (-0.15%) ⬇️
ruby-api 43.91% <ø> (ø)
ruby-backend 78.51% <100.00%> (+0.34%) ⬆️

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

Impacted Files Coverage Δ
openc3/lib/openc3/api/interface_api.rb 83.67% <100.00%> (ø)
...lib/openc3/microservices/interface_microservice.rb 83.97% <100.00%> (+17.52%) ⬆️
openc3/lib/openc3/topics/interface_topic.rb 100.00% <100.00%> (ø)
openc3/lib/openc3/version.rb 100.00% <100.00%> (ø)
...enc3-tool-calendar/src/tools/Calendar/Calendar.vue 65.51% <0.00%> (-5.52%) ⬇️
...smonitor/src/tools/LimitsMonitor/LimitsControl.vue 82.22% <0.00%> (+0.74%) ⬆️
openc3/lib/openc3/io/json_rpc.rb 54.54% <0.00%> (+4.27%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

@@ -119,8 +119,8 @@ export class OpenC3Api {
return this.exec('map_target_to_interface', [target_name, interface_name])
}

connect_interface(interface_name) {
return this.exec('connect_interface', [interface_name])
connect_interface(interface_name, interface_params) {
Copy link
Member

Choose a reason for hiding this comment

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

interface_params should default to nil or an empty array

Copy link
Member Author

Choose a reason for hiding this comment

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

Null? this is the javascript side. This is the part I wasn't sure about. I think probably an empty array.

@jmthomas jmthomas merged commit 2b416cf into master Oct 5, 2022
@jmthomas jmthomas deleted the connect_interface_params branch October 5, 2022 23:30
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.

connect_interface does not send parameters
2 participants