openc3 5.10.0 → 5.11.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of openc3 might be problematic. Click here for more details.

Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/Rakefile +3 -2
  4. data/data/config/target.yaml +9 -0
  5. data/ext/openc3/ext/packet/packet.c +3 -0
  6. data/ext/openc3/ext/reducer_microservice/extconf.rb +13 -0
  7. data/ext/openc3/ext/reducer_microservice/reducer_microservice.c +165 -0
  8. data/ext/openc3/ext/structure/structure.c +7 -9
  9. data/lib/openc3/accessors/accessor.rb +53 -3
  10. data/lib/openc3/accessors/binary_accessor.rb +16 -0
  11. data/lib/openc3/accessors/cbor_accessor.rb +3 -3
  12. data/lib/openc3/accessors/form_accessor.rb +78 -0
  13. data/lib/openc3/accessors/http_accessor.rb +145 -0
  14. data/lib/openc3/accessors/json_accessor.rb +19 -3
  15. data/lib/openc3/accessors/xml_accessor.rb +18 -1
  16. data/lib/openc3/accessors.rb +3 -1
  17. data/lib/openc3/config/config_parser.rb +7 -5
  18. data/lib/openc3/config/meta_config_parser.rb +1 -1
  19. data/lib/openc3/core_ext/string.rb +16 -1
  20. data/lib/openc3/interfaces/http_client_interface.rb +202 -0
  21. data/lib/openc3/interfaces/http_server_interface.rb +183 -0
  22. data/lib/openc3/interfaces/interface.rb +86 -16
  23. data/lib/openc3/interfaces/mqtt_interface.rb +6 -5
  24. data/lib/openc3/interfaces/protocols/burst_protocol.rb +11 -11
  25. data/lib/openc3/interfaces/protocols/cobs_protocol.rb +7 -7
  26. data/lib/openc3/interfaces/protocols/crc_protocol.rb +7 -7
  27. data/lib/openc3/interfaces/protocols/length_protocol.rb +6 -6
  28. data/lib/openc3/interfaces/protocols/preidentified_protocol.rb +9 -5
  29. data/lib/openc3/interfaces/protocols/protocol.rb +8 -6
  30. data/lib/openc3/interfaces/protocols/slip_protocol.rb +8 -8
  31. data/lib/openc3/interfaces/protocols/template_protocol.rb +6 -7
  32. data/lib/openc3/interfaces/protocols/terminated_protocol.rb +4 -4
  33. data/lib/openc3/interfaces/simulated_target_interface.rb +2 -0
  34. data/lib/openc3/interfaces/stream_interface.rb +6 -4
  35. data/lib/openc3/interfaces/tcpip_server_interface.rb +2 -0
  36. data/lib/openc3/interfaces/udp_interface.rb +8 -5
  37. data/lib/openc3/interfaces.rb +2 -0
  38. data/lib/openc3/logs/buffered_packet_log_writer.rb +6 -7
  39. data/lib/openc3/logs/log_writer.rb +2 -10
  40. data/lib/openc3/logs/packet_log_constants.rb +13 -3
  41. data/lib/openc3/logs/packet_log_reader.rb +35 -98
  42. data/lib/openc3/logs/packet_log_writer.rb +24 -62
  43. data/lib/openc3/logs/text_log_writer.rb +32 -6
  44. data/lib/openc3/microservices/cleanup_microservice.rb +23 -16
  45. data/lib/openc3/microservices/decom_microservice.rb +8 -20
  46. data/lib/openc3/microservices/log_microservice.rb +3 -1
  47. data/lib/openc3/microservices/reaction_microservice.rb +22 -11
  48. data/lib/openc3/microservices/reducer_microservice.rb +174 -130
  49. data/lib/openc3/{models/notification_model.rb → microservices/scope_cleanup_microservice.rb} +20 -21
  50. data/lib/openc3/microservices/text_log_microservice.rb +2 -5
  51. data/lib/openc3/microservices/timeline_microservice.rb +0 -1
  52. data/lib/openc3/microservices/trigger_group_microservice.rb +6 -3
  53. data/lib/openc3/migrations/20230915000002_no_scope_log_messages.rb +44 -0
  54. data/lib/openc3/models/microservice_model.rb +1 -1
  55. data/lib/openc3/models/scope_model.rb +65 -34
  56. data/lib/openc3/models/target_model.rb +25 -5
  57. data/lib/openc3/models/tool_model.rb +14 -2
  58. data/lib/openc3/models/widget_model.rb +1 -1
  59. data/lib/openc3/packets/json_packet.rb +10 -2
  60. data/lib/openc3/packets/packet.rb +37 -22
  61. data/lib/openc3/packets/packet_config.rb +6 -2
  62. data/lib/openc3/packets/parsers/packet_item_parser.rb +11 -6
  63. data/lib/openc3/packets/structure.rb +19 -12
  64. data/lib/openc3/packets/structure_item.rb +0 -3
  65. data/lib/openc3/script/storage.rb +1 -1
  66. data/lib/openc3/script/web_socket_api.rb +17 -14
  67. data/lib/openc3/topics/command_decom_topic.rb +0 -4
  68. data/lib/openc3/topics/telemetry_decom_topic.rb +0 -4
  69. data/lib/openc3/topics/telemetry_reduced_topics.rb +1 -13
  70. data/lib/openc3/topics/telemetry_topic.rb +2 -1
  71. data/lib/openc3/topics/topic.rb +0 -8
  72. data/lib/openc3/utilities/aws_bucket.rb +40 -38
  73. data/lib/openc3/utilities/bucket_utilities.rb +2 -0
  74. data/lib/openc3/utilities/cli_generator.rb +1 -1
  75. data/lib/openc3/utilities/logger.rb +62 -47
  76. data/lib/openc3/utilities/metric.rb +19 -1
  77. data/lib/openc3/utilities/sleeper.rb +3 -1
  78. data/lib/openc3/utilities/throttle.rb +76 -0
  79. data/lib/openc3/version.rb +5 -5
  80. data/templates/tool_angular/package.json +20 -20
  81. data/templates/tool_angular/yarn.lock +1815 -1009
  82. data/templates/tool_react/package.json +24 -26
  83. data/templates/tool_react/yarn.lock +1269 -902
  84. data/templates/tool_svelte/.prettierrc.js +5 -0
  85. data/templates/tool_svelte/package.json +26 -26
  86. data/templates/tool_svelte/src/services/cable.js +1 -1
  87. data/templates/tool_svelte/src/services/openc3-api.js +173 -173
  88. data/templates/tool_svelte/yarn.lock +981 -735
  89. data/templates/tool_vue/package.json +13 -13
  90. data/templates/tool_vue/yarn.lock +363 -147
  91. data/templates/widget/package.json +14 -14
  92. data/templates/widget/yarn.lock +367 -99
  93. metadata +41 -4
  94. data/lib/openc3/topics/notifications_topic.rb +0 -31
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openc3
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.10.0
4
+ version: 5.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Melton
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-08-05 00:00:00.000000000 Z
12
+ date: 2023-09-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -235,6 +235,20 @@ dependencies:
235
235
  - - "~>"
236
236
  - !ruby/object:Gem::Version
237
237
  version: '2.7'
238
+ - !ruby/object:Gem::Dependency
239
+ name: faraday-follow_redirects
240
+ requirement: !ruby/object:Gem::Requirement
241
+ requirements:
242
+ - - "~>"
243
+ - !ruby/object:Gem::Version
244
+ version: '0.3'
245
+ type: :runtime
246
+ prerelease: false
247
+ version_requirements: !ruby/object:Gem::Requirement
248
+ requirements:
249
+ - - "~>"
250
+ - !ruby/object:Gem::Version
251
+ version: '0.3'
238
252
  - !ruby/object:Gem::Dependency
239
253
  name: aws-sdk-s3
240
254
  requirement: !ruby/object:Gem::Requirement
@@ -459,6 +473,20 @@ dependencies:
459
473
  - - "~>"
460
474
  - !ruby/object:Gem::Version
461
475
  version: '0.3'
476
+ - !ruby/object:Gem::Dependency
477
+ name: webrick
478
+ requirement: !ruby/object:Gem::Requirement
479
+ requirements:
480
+ - - "~>"
481
+ - !ruby/object:Gem::Version
482
+ version: '1.8'
483
+ type: :runtime
484
+ prerelease: false
485
+ version_requirements: !ruby/object:Gem::Requirement
486
+ requirements:
487
+ - - "~>"
488
+ - !ruby/object:Gem::Version
489
+ version: '1.8'
462
490
  - !ruby/object:Gem::Dependency
463
491
  name: websocket
464
492
  requirement: !ruby/object:Gem::Requirement
@@ -691,6 +719,7 @@ extensions:
691
719
  - ext/openc3/ext/packet/extconf.rb
692
720
  - ext/openc3/ext/platform/extconf.rb
693
721
  - ext/openc3/ext/polynomial_conversion/extconf.rb
722
+ - ext/openc3/ext/reducer_microservice/extconf.rb
694
723
  - ext/openc3/ext/string/extconf.rb
695
724
  - ext/openc3/ext/tabbed_plots_config/extconf.rb
696
725
  - ext/openc3/ext/telemetry/extconf.rb
@@ -752,6 +781,8 @@ files:
752
781
  - ext/openc3/ext/platform/platform.c
753
782
  - ext/openc3/ext/polynomial_conversion/extconf.rb
754
783
  - ext/openc3/ext/polynomial_conversion/polynomial_conversion.c
784
+ - ext/openc3/ext/reducer_microservice/extconf.rb
785
+ - ext/openc3/ext/reducer_microservice/reducer_microservice.c
755
786
  - ext/openc3/ext/string/extconf.rb
756
787
  - ext/openc3/ext/string/string.c
757
788
  - ext/openc3/ext/structure/structure.c
@@ -766,7 +797,9 @@ files:
766
797
  - lib/openc3/accessors/accessor.rb
767
798
  - lib/openc3/accessors/binary_accessor.rb
768
799
  - lib/openc3/accessors/cbor_accessor.rb
800
+ - lib/openc3/accessors/form_accessor.rb
769
801
  - lib/openc3/accessors/html_accessor.rb
802
+ - lib/openc3/accessors/http_accessor.rb
770
803
  - lib/openc3/accessors/json_accessor.rb
771
804
  - lib/openc3/accessors/xml_accessor.rb
772
805
  - lib/openc3/api/README.md
@@ -828,6 +861,8 @@ files:
828
861
  - lib/openc3/core_ext/time.rb
829
862
  - lib/openc3/ext/.keep
830
863
  - lib/openc3/interfaces.rb
864
+ - lib/openc3/interfaces/http_client_interface.rb
865
+ - lib/openc3/interfaces/http_server_interface.rb
831
866
  - lib/openc3/interfaces/interface.rb
832
867
  - lib/openc3/interfaces/linc_interface.rb
833
868
  - lib/openc3/interfaces/mqtt_interface.rb
@@ -886,6 +921,7 @@ files:
886
921
  - lib/openc3/microservices/reaction_microservice.rb
887
922
  - lib/openc3/microservices/reducer_microservice.rb
888
923
  - lib/openc3/microservices/router_microservice.rb
924
+ - lib/openc3/microservices/scope_cleanup_microservice.rb
889
925
  - lib/openc3/microservices/text_log_microservice.rb
890
926
  - lib/openc3/microservices/timeline_microservice.rb
891
927
  - lib/openc3/microservices/trigger_group_microservice.rb
@@ -893,6 +929,7 @@ files:
893
929
  - lib/openc3/migrations/20221202214600_add_target_names.rb
894
930
  - lib/openc3/migrations/20221210174900_convert_to_multi.rb
895
931
  - lib/openc3/migrations/20230615000000_autonomic.rb
932
+ - lib/openc3/migrations/20230915000002_no_scope_log_messages.rb
896
933
  - lib/openc3/models/activity_model.rb
897
934
  - lib/openc3/models/auth_model.rb
898
935
  - lib/openc3/models/cvt_model.rb
@@ -908,7 +945,6 @@ files:
908
945
  - lib/openc3/models/migration_model.rb
909
946
  - lib/openc3/models/model.rb
910
947
  - lib/openc3/models/note_model.rb
911
- - lib/openc3/models/notification_model.rb
912
948
  - lib/openc3/models/offline_access_model.rb
913
949
  - lib/openc3/models/ping_model.rb
914
950
  - lib/openc3/models/plugin_model.rb
@@ -1001,7 +1037,6 @@ files:
1001
1037
  - lib/openc3/topics/decom_interface_topic.rb
1002
1038
  - lib/openc3/topics/interface_topic.rb
1003
1039
  - lib/openc3/topics/limits_event_topic.rb
1004
- - lib/openc3/topics/notifications_topic.rb
1005
1040
  - lib/openc3/topics/router_topic.rb
1006
1041
  - lib/openc3/topics/telemetry_decom_topic.rb
1007
1042
  - lib/openc3/topics/telemetry_reduced_topics.rb
@@ -1037,6 +1072,7 @@ files:
1037
1072
  - lib/openc3/utilities/store.rb
1038
1073
  - lib/openc3/utilities/store_autoload.rb
1039
1074
  - lib/openc3/utilities/target_file.rb
1075
+ - lib/openc3/utilities/throttle.rb
1040
1076
  - lib/openc3/utilities/zip.rb
1041
1077
  - lib/openc3/version.rb
1042
1078
  - lib/openc3/win32/excel.rb
@@ -1101,6 +1137,7 @@ files:
1101
1137
  - templates/tool_react/yarn.lock
1102
1138
  - templates/tool_svelte/.gitignore
1103
1139
  - templates/tool_svelte/.prettierignore
1140
+ - templates/tool_svelte/.prettierrc.js
1104
1141
  - templates/tool_svelte/babel.config.js
1105
1142
  - templates/tool_svelte/build/smui.css
1106
1143
  - templates/tool_svelte/jest.config.js
@@ -1,31 +0,0 @@
1
- # encoding: ascii-8bit
2
-
3
- # Copyright 2022 Ball Aerospace & Technologies Corp.
4
- # All Rights Reserved.
5
- #
6
- # This program is free software; you can modify and/or redistribute it
7
- # under the terms of the GNU Affero General Public License
8
- # as published by the Free Software Foundation; version 3 with
9
- # attribution addendums as found in the LICENSE.txt
10
- #
11
- # This program is distributed in the hope that it will be useful,
12
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- # GNU Affero General Public License for more details.
15
-
16
- # Modified by OpenC3, Inc.
17
- # All changes Copyright 2022, OpenC3, Inc.
18
- # All Rights Reserved
19
- #
20
- # This file may also be used under the terms of a commercial license
21
- # if purchased from OpenC3, Inc.
22
-
23
- require 'openc3/topics/topic'
24
-
25
- module OpenC3
26
- class NotificationsTopic < Topic
27
- def self.write_notification(notification, scope:)
28
- Topic.write_topic("#{scope}__openc3_notifications", notification)
29
- end
30
- end
31
- end