Tune graph layout affinities
This commit is contained in:
parent
b2165b5a2a
commit
5b6e4faf68
6 changed files with 349 additions and 76 deletions
|
|
@ -271,6 +271,8 @@ def _export_attributes(declaration: Declaration) -> dict[str, Any]:
|
|||
if declaration.kind == "ServiceDeclaration":
|
||||
return {
|
||||
**base,
|
||||
"service_type": spec.get("service_type", ""),
|
||||
"environments": list(spec.get("environments", [])),
|
||||
"provides_capabilities": list(spec.get("provides_capabilities", [])),
|
||||
"exposes_interfaces": list(spec.get("exposes_interfaces", [])),
|
||||
}
|
||||
|
|
@ -290,6 +292,8 @@ def _export_attributes(declaration: Declaration) -> dict[str, Any]:
|
|||
"capability_ids": list(spec.get("capability_ids", [])),
|
||||
"version": spec.get("version", ""),
|
||||
"auth": spec.get("auth", ""),
|
||||
"endpoint": spec.get("endpoint", {}),
|
||||
"environments": list(spec.get("environments", [])),
|
||||
}
|
||||
if declaration.kind == "DependencyDeclaration":
|
||||
requires = spec.get("requires", {})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue