Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ def from_api(cls, entity: dict[str, Any]) -> CatalogOrganization:
allowed_origins=safeget(ea, ["allowed_origins"]),
oauth_issuer_location=safeget(ea, ["oauth_issuer_location"]),
oauth_client_id=safeget(ea, ["oauth_client_id"]),
data_center=safeget(ea, ["data_center"]),
region=safeget(ea, ["region"]),
)

identity_provider_id = safeget(er, ["identityProvider", "data", "id"])
Expand Down Expand Up @@ -87,6 +89,8 @@ class CatalogOrganizationAttributes(Base):
allowed_origins: Optional[list[str]] = None
oauth_issuer_location: Optional[str] = None
oauth_client_id: Optional[str] = None
data_center: Optional[str] = None
region: Optional[str] = None

@staticmethod
def client_class() -> type[JsonApiOrganizationInAttributes]:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ interactions:
- enableUserManagement
- enableRawExports
- enableFlexibleDashboardLayout
dataCenter: null
region: null
id: default
type: organization
links:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ def _default_organization_check(organization: CatalogOrganization):
assert organization.id == "default"
assert organization.attributes.name == "Default Organization"
assert organization.attributes.hostname == "localhost"
assert organization.attributes.data_center is None
assert organization.attributes.region is None


def _default_jwk(jwk_id=_default_jwk_id, alg=None, kid=None):
Expand Down
Loading