Skip to content

Load enterprise APIs #1949

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[tools]
node = "20.10"
python = "3.10"
ruby = "3.2"
node = "22.11"
python = "3.12"
ruby = "3.3"
9 changes: 8 additions & 1 deletion openc3/lib/openc3/api/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# GNU Affero General Public License for more details.

# Modified by OpenC3, Inc.
# All changes Copyright 2023, OpenC3, Inc.
# All changes Copyright 2025, OpenC3, Inc.
# All Rights Reserved
#
# This file may also be used under the terms of a commercial license
Expand All @@ -35,6 +35,13 @@
require 'openc3/api/tlm_api'
require 'openc3/utilities/authorization'
require 'openc3/topics/topic'
begin
require 'openc3-enterprise/api/cmd_authority_api'
require 'openc3-enterprise/api/autonomic_api'
rescue LoadError
# LoadError expected for Open Source Edition
end


module OpenC3
module Api
Expand Down
2 changes: 1 addition & 1 deletion openc3/lib/openc3/microservices/interface_microservice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
begin
require 'openc3-enterprise/models/critical_cmd_model'
rescue LoadError
# Should never actual be used in Open Source
# LoadError expected for Open Source Edition
end

module OpenC3
Expand Down
2 changes: 1 addition & 1 deletion openc3/lib/openc3/utilities/metric.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,5 +133,5 @@ def self.add_update_generator(object)
begin
require 'openc3-enterprise/utilities/metric'
rescue LoadError
# Open Source Edition - Do nothing here
# LoadError expected for Open Source Edition
end
8 changes: 7 additions & 1 deletion openc3/python/openc3/api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024 OpenC3, Inc.
# Copyright 2025 OpenC3, Inc.
# All Rights Reserved.
#
# This program is free software; you can modify and/or redistribute it
Expand Down Expand Up @@ -26,3 +26,9 @@
from .stash_api import *
from .target_api import *
from .tlm_api import *
try:
from openc3enterprise.api.cmd_authority_api import *
from openc3enterprise.api.autonomic_api import *
Copy link
Member

Choose a reason for hiding this comment

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

Python autonomic api missing.

except ModuleNotFoundError:
# ModuleNotFoundError expected in Open Source Edition
pass
Loading