openc3 6.0.1 → 6.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/openc3cli +31 -2
- data/data/config/tool.yaml +2 -2
- data/lib/openc3/models/auth_model.rb +9 -5
- data/lib/openc3/version.rb +5 -5
- data/templates/tool_angular/package.json +2 -2
- data/templates/tool_react/package.json +1 -1
- data/templates/tool_svelte/package.json +1 -1
- data/templates/tool_vue/package.json +3 -3
- data/templates/widget/package.json +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7cb703367de9f45fc0ffb6d7fd9e2d4fbf075d3c2be95081468558a757df2f6
|
4
|
+
data.tar.gz: 2580ce86c27ac4dc6a8dcdaa2e8c8531de1ff3ad5fb803516b70e4c8ac74c90f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43cb5951f41970eed0b27f355894d5c014b3f69132abe381640e6d9c1d9d04ab7eab8aecaf14c8e7ec1a51353ec953c68ee4e1ba7783f6d58014ae545dde48cf
|
7
|
+
data.tar.gz: a146e2222479e99a6afe1b726bc0e5c08863db658203538d3781ba83d06e3944f74e41e85b49572f52ddd59d56b55428b937e4ab3a6902277a4dd34df2746e22
|
data/bin/openc3cli
CHANGED
@@ -31,6 +31,7 @@ require 'openc3/models/scope_model'
|
|
31
31
|
require 'openc3/models/plugin_model'
|
32
32
|
require 'openc3/models/gem_model'
|
33
33
|
require 'openc3/models/migration_model'
|
34
|
+
require 'openc3/models/python_package_model'
|
34
35
|
require 'openc3/models/tool_model'
|
35
36
|
require 'openc3/packets/packet_config'
|
36
37
|
require 'openc3/bridge/bridge'
|
@@ -258,6 +259,30 @@ def update_plugin(plugin_file_path, plugin_name, variables: nil, plugin_txt_line
|
|
258
259
|
end
|
259
260
|
end
|
260
261
|
|
262
|
+
def wait_process_complete_internal(process_name, scope:)
|
263
|
+
STDOUT.flush
|
264
|
+
state = 'Running'
|
265
|
+
status = nil
|
266
|
+
while true
|
267
|
+
status = OpenC3::ProcessStatusModel.get(name: process_name, scope: scope)
|
268
|
+
state = status['state']
|
269
|
+
break if state != 'Running'
|
270
|
+
sleep(5)
|
271
|
+
print '.'
|
272
|
+
STDOUT.flush
|
273
|
+
end
|
274
|
+
puts "\nFinished: #{state}"
|
275
|
+
puts "Output:\n"
|
276
|
+
puts status['output']
|
277
|
+
if state == 'Complete'
|
278
|
+
puts "Success!"
|
279
|
+
exit 0
|
280
|
+
else
|
281
|
+
puts "Failed!"
|
282
|
+
exit 1
|
283
|
+
end
|
284
|
+
end
|
285
|
+
|
261
286
|
def wait_process_complete(process_name)
|
262
287
|
STDOUT.flush
|
263
288
|
state = 'Running'
|
@@ -433,7 +458,9 @@ def cli_pkg_install(filename, scope:)
|
|
433
458
|
if File.extname(filename) == '.gem'
|
434
459
|
OpenC3::GemModel.install(filename, scope: scope)
|
435
460
|
else
|
436
|
-
OpenC3::PythonPackageModel.install(filename, scope: scope)
|
461
|
+
process_name = OpenC3::PythonPackageModel.install(filename, scope: scope)
|
462
|
+
print "Installing..."
|
463
|
+
wait_process_complete_internal(process_name, scope: scope)
|
437
464
|
end
|
438
465
|
else
|
439
466
|
# Outside Cluster
|
@@ -451,7 +478,9 @@ def cli_pkg_uninstall(filename, scope:)
|
|
451
478
|
if File.extname(filename) == '.rb'
|
452
479
|
OpenC3::GemModel.destroy(filename)
|
453
480
|
else
|
454
|
-
OpenC3::PythonPackageModel.destroy(filename, scope: scope)
|
481
|
+
process_name = OpenC3::PythonPackageModel.destroy(filename, scope: scope)
|
482
|
+
print "Uninstalling..."
|
483
|
+
wait_process_complete_internal(process_name, scope: scope)
|
455
484
|
end
|
456
485
|
else
|
457
486
|
# Outside Cluster
|
data/data/config/tool.yaml
CHANGED
@@ -23,11 +23,11 @@ TOOL:
|
|
23
23
|
values: .+
|
24
24
|
INLINE_URL:
|
25
25
|
summary: Internal url to load a tool
|
26
|
-
description: The url of the javascript file used to load the tool into single-SPA. Defaults to "
|
26
|
+
description: The url of the javascript file used to load the tool into single-SPA. Defaults to "main.js".
|
27
27
|
parameters:
|
28
28
|
- name: Url
|
29
29
|
required: true
|
30
|
-
description: The inline url. If not given defaults to
|
30
|
+
description: The inline url. If not given defaults to main.js. Generally should not be given unless using a non-standard filename.
|
31
31
|
values: .+
|
32
32
|
WINDOW:
|
33
33
|
summary: How to display the tool when navigated to
|
@@ -43,6 +43,15 @@ module OpenC3
|
|
43
43
|
end
|
44
44
|
|
45
45
|
def self.verify(token)
|
46
|
+
# Handle a service password - Generally only used by ScriptRunner
|
47
|
+
# TODO: Replace this with temporary service tokens
|
48
|
+
service_password = ENV['OPENC3_SERVICE_PASSWORD']
|
49
|
+
return true if service_password and service_password == token
|
50
|
+
|
51
|
+
return verify_no_service(token)
|
52
|
+
end
|
53
|
+
|
54
|
+
def self.verify_no_service(token)
|
46
55
|
return false if token.nil? or token.empty?
|
47
56
|
|
48
57
|
time = Time.now
|
@@ -60,11 +69,6 @@ module OpenC3
|
|
60
69
|
@@token_cache_time = time
|
61
70
|
return true if @@token_cache == token_hash
|
62
71
|
|
63
|
-
# Handle a service password - Generally only used by ScriptRunner
|
64
|
-
# TODO: Replace this with temporary service tokens
|
65
|
-
service_password = ENV['OPENC3_SERVICE_PASSWORD']
|
66
|
-
return true if service_password and service_password == token
|
67
|
-
|
68
72
|
return false
|
69
73
|
end
|
70
74
|
|
data/lib/openc3/version.rb
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# encoding: ascii-8bit
|
2
2
|
|
3
|
-
OPENC3_VERSION = '6.0.
|
3
|
+
OPENC3_VERSION = '6.0.2'
|
4
4
|
module OpenC3
|
5
5
|
module Version
|
6
6
|
MAJOR = '6'
|
7
7
|
MINOR = '0'
|
8
|
-
PATCH = '
|
8
|
+
PATCH = '2'
|
9
9
|
OTHER = ''
|
10
|
-
BUILD = '
|
10
|
+
BUILD = '30bcab7b66f6a10baacea338b83fc5bfb89e68d6'
|
11
11
|
end
|
12
|
-
VERSION = '6.0.
|
13
|
-
GEM_VERSION = '6.0.
|
12
|
+
VERSION = '6.0.2'
|
13
|
+
GEM_VERSION = '6.0.2'
|
14
14
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "<%= tool_name %>",
|
3
|
-
"version": "6.0.
|
3
|
+
"version": "6.0.2",
|
4
4
|
"scripts": {
|
5
5
|
"ng": "ng",
|
6
6
|
"start": "ng serve",
|
@@ -23,7 +23,7 @@
|
|
23
23
|
"@angular/platform-browser-dynamic": "^18.2.6",
|
24
24
|
"@angular/router": "^18.2.6",
|
25
25
|
"@astrouxds/astro-web-components": "^7.24.0",
|
26
|
-
"@openc3/js-common": "6.0.
|
26
|
+
"@openc3/js-common": "6.0.2",
|
27
27
|
"rxjs": "~7.8.0",
|
28
28
|
"single-spa": "^5.9.5",
|
29
29
|
"single-spa-angular": "^9.2.0",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "<%= tool_name %>",
|
3
|
-
"version": "6.0.
|
3
|
+
"version": "6.0.2",
|
4
4
|
"private": true,
|
5
5
|
"type": "module",
|
6
6
|
"scripts": {
|
@@ -11,8 +11,8 @@
|
|
11
11
|
},
|
12
12
|
"dependencies": {
|
13
13
|
"@astrouxds/astro-web-components": "^7.24.0",
|
14
|
-
"@openc3/js-common": "6.0.
|
15
|
-
"@openc3/vue-common": "6.0.
|
14
|
+
"@openc3/js-common": "6.0.2",
|
15
|
+
"@openc3/vue-common": "6.0.2",
|
16
16
|
"axios": "^1.7.7",
|
17
17
|
"date-fns": "^4.1.0",
|
18
18
|
"lodash": "^4.17.21",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "<%= widget_name %>",
|
3
|
-
"version": "6.0.
|
3
|
+
"version": "6.0.2",
|
4
4
|
"private": true,
|
5
5
|
"type": "module",
|
6
6
|
"scripts": {
|
@@ -8,7 +8,7 @@
|
|
8
8
|
},
|
9
9
|
"dependencies": {
|
10
10
|
"@astrouxds/astro-web-components": "^7.24.0",
|
11
|
-
"@openc3/vue-common": "6.0.
|
11
|
+
"@openc3/vue-common": "6.0.2",
|
12
12
|
"vuetify": "^3.7.1"
|
13
13
|
},
|
14
14
|
"devDependencies": {
|
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: 6.0.
|
4
|
+
version: 6.0.2
|
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:
|
12
|
+
date: 2025-01-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|