Skip to content
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

Screen autocomplete #97

Merged
merged 3 commits into from
Aug 26, 2022
Merged

Screen autocomplete #97

merged 3 commits into from
Aug 26, 2022

Conversation

jmthomas
Copy link
Member

closes #48

@jmthomas jmthomas requested a review from ryanmelt August 25, 2022 19:59
@codecov-commenter
Copy link

codecov-commenter commented Aug 25, 2022

Codecov Report

Merging #97 (566e454) into master (2db1805) will decrease coverage by 0.83%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master      #97      +/-   ##
==========================================
- Coverage   77.63%   76.80%   -0.84%     
==========================================
  Files         238       29     -209     
  Lines       18644     1319   -17325     
==========================================
- Hits        14475     1013   -13462     
+ Misses       4169      306    -3863     
Impacted Files Coverage Δ
lib/openc3/tools/table_manager/table_parser.rb
lib/openc3/utilities/metric.rb
lib/openc3/packets/packet.rb
lib/openc3/operators/microservice_operator.rb
lib/openc3/utilities/crc.rb
lib/openc3/io/stdout.rb
lib/openc3/core_ext/class.rb
lib/openc3/packets/parsers/xtce_parser.rb
lib/openc3/script/script.rb
lib/openc3/topics/config_topic.rb
... and 199 more

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

else
autocomplete_data = OpenC3::TargetModel.all(scope: scope).flat_map do |target_name, target_info|
OpenC3::TargetModel.packets(target_name, type: type.upcase.intern, scope: scope).flat_map do |packet|
packet_to_autocomplete_hashes(packet, target_info, type)
Copy link
Member

Choose a reason for hiding this comment

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

This isn't going to scale well to lots of packets.

Copy link
Member Author

Choose a reason for hiding this comment

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

Worked ok for 1000 cmd packets generated by loadsim

@@ -169,6 +171,9 @@ export default {
}
this.updateScreens()
})
Api.get('/openc3-api/autocomplete/keywords/screen').then((response) => {
this.keywords = response.data
Copy link
Member

Choose a reason for hiding this comment

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

What about autocomplete for target,packet,item in valueWidgets?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah I punted on that for now. Might be a way to incorporate the existing stuff in there.

Copy link
Member

@ryanmelt ryanmelt left a comment

Choose a reason for hiding this comment

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

Lots of playwright failures still (and long run time)

@jmthomas jmthomas merged commit 117340d into master Aug 26, 2022
@jmthomas jmthomas deleted the screen_autocomplete branch August 26, 2022 01:02
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.

Support auto-complete in screen editor
3 participants