mirror of
https://github.com/apache/superset.git
synced 2026-04-20 08:34:37 +00:00
feat(extensions): code-first frontend contributions (#38346)
This commit is contained in:
committed by
GitHub
parent
01d5245cd2
commit
a74d32ab44
@@ -241,7 +241,6 @@ def build_extension_data(extension: LoadedExtension) -> dict[str, Any]:
|
||||
}
|
||||
if manifest.frontend:
|
||||
frontend = manifest.frontend
|
||||
module_federation = frontend.moduleFederation
|
||||
remote_entry_url = (
|
||||
f"/api/v1/extensions/{manifest.publisher}/"
|
||||
f"{manifest.name}/{frontend.remoteEntry}"
|
||||
@@ -249,9 +248,7 @@ def build_extension_data(extension: LoadedExtension) -> dict[str, Any]:
|
||||
extension_data.update(
|
||||
{
|
||||
"remoteEntry": remote_entry_url,
|
||||
"exposedModules": module_federation.exposes,
|
||||
"moduleFederationName": module_federation.name,
|
||||
"contributions": frontend.contributions.model_dump(),
|
||||
"moduleFederationName": frontend.moduleFederationName,
|
||||
}
|
||||
)
|
||||
return extension_data
|
||||
|
||||
Reference in New Issue
Block a user