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

fix: import model app not show #1579

Merged
merged 1 commit into from
Dec 16, 2024
Merged
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
5 changes: 4 additions & 1 deletion console/services/app_import_and_export_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,9 @@ def __save_enterprise_import_info(self, import_record, metadata, arch):
scope=import_record.scope,
describe=app_describe,
pic=pic_url,
arch=arch)
arch=arch,
is_version=True,
)
rainbond_apps.append(rainbond_app)
# create a new app version
rainbond_app_versions.append(self.create_app_version(rainbond_app, import_record, app_template, arch))
Expand Down Expand Up @@ -623,6 +625,7 @@ def __save_import_info(self, tenant, scope, metadata):
pic=pic_url,
app_template=json.dumps(app_template),
is_complete=True,
is_version=True,
template_version=app_template.get("template_version", ""))
rainbond_apps.append(rainbond_app)
rainbond_app_repo.bulk_create_rainbond_apps(rainbond_apps)
Expand Down
2 changes: 1 addition & 1 deletion www/apiclient/regionapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -2947,7 +2947,7 @@ def api_gateway_get_proxy(self, region, tenant_id, path, app_id, query=""):
domain_name = name_split[1].split('p-p')[0]
component_name = component_dict.get(name_split[2], "")
# 如果提供了 query,但 domain_name 和 component_name 都不包含 query,则跳过
if query and (query in domain_name or query in component_name):
if query and (query not in domain_name and query not in component_name):
continue
# 构造域名对象
region_app_id = name_split[0]
Expand Down
Loading