Skip to content
Draft
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
1 change: 1 addition & 0 deletions app/web/src/workers/types/entity_kind_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export enum EntityKind {
// IGNORING THESE
LuminorkDefaultVariant = "LuminorkDefaultVariant",
LuminorkSchemaVariant = "LuminorkSchemaVariant",
LuminorkChangeSetReview = "LuminorkChangeSetReview",
// DEPLOYMENT aka GLOBAL
CachedSchema = "CachedSchema",
CachedSchemaVariant = "CachedSchemaVariant",
Expand Down
1 change: 1 addition & 0 deletions app/web/src/workers/webworker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3682,6 +3682,7 @@ const getReferences = async (
const IGNORE_LIST = new Set<EntityKind>([
EntityKind.LuminorkDefaultVariant,
EntityKind.LuminorkSchemaVariant,
EntityKind.LuminorkChangeSetReview,
]);

const LISTABLE_ITEMS = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"ApiError",
"ApiSuccessString",
"AttributeArgumentBindingRequest",
"AttributeDiffTreeV1",
"BuildingResponseV1",
"CancelActionV1Response",
"ChangeSetViewV1",
Expand All @@ -59,6 +60,7 @@
"ComponentReference",
"ComponentReferenceOneOf",
"ComponentReferenceOneOf1",
"ComponentReviewV1",
"ComponentSearchResult",
"ComponentSearchResultSchema",
"ComponentV1RequestPath",
Expand Down Expand Up @@ -121,6 +123,7 @@
"GetFuncRunV1Response",
"GetFuncV1Response",
"GetManagementFuncJobStateV1Response",
"GetReviewV1Response",
"GetSchemaV1Response",
"GetSchemaVariantV1Response",
"HashMapValue",
Expand Down Expand Up @@ -225,6 +228,7 @@
from system_initiative_api_client.models.api_error import ApiError as ApiError
from system_initiative_api_client.models.api_success_string import ApiSuccessString as ApiSuccessString
from system_initiative_api_client.models.attribute_argument_binding_request import AttributeArgumentBindingRequest as AttributeArgumentBindingRequest
from system_initiative_api_client.models.attribute_diff_tree_v1 import AttributeDiffTreeV1 as AttributeDiffTreeV1
from system_initiative_api_client.models.building_response_v1 import BuildingResponseV1 as BuildingResponseV1
from system_initiative_api_client.models.cancel_action_v1_response import CancelActionV1Response as CancelActionV1Response
from system_initiative_api_client.models.change_set_view_v1 import ChangeSetViewV1 as ChangeSetViewV1
Expand All @@ -234,6 +238,7 @@
from system_initiative_api_client.models.component_reference import ComponentReference as ComponentReference
from system_initiative_api_client.models.component_reference_one_of import ComponentReferenceOneOf as ComponentReferenceOneOf
from system_initiative_api_client.models.component_reference_one_of1 import ComponentReferenceOneOf1 as ComponentReferenceOneOf1
from system_initiative_api_client.models.component_review_v1 import ComponentReviewV1 as ComponentReviewV1
from system_initiative_api_client.models.component_search_result import ComponentSearchResult as ComponentSearchResult
from system_initiative_api_client.models.component_search_result_schema import ComponentSearchResultSchema as ComponentSearchResultSchema
from system_initiative_api_client.models.component_v1_request_path import ComponentV1RequestPath as ComponentV1RequestPath
Expand Down Expand Up @@ -296,6 +301,7 @@
from system_initiative_api_client.models.get_func_run_v1_response import GetFuncRunV1Response as GetFuncRunV1Response
from system_initiative_api_client.models.get_func_v1_response import GetFuncV1Response as GetFuncV1Response
from system_initiative_api_client.models.get_management_func_job_state_v1_response import GetManagementFuncJobStateV1Response as GetManagementFuncJobStateV1Response
from system_initiative_api_client.models.get_review_v1_response import GetReviewV1Response as GetReviewV1Response
from system_initiative_api_client.models.get_schema_v1_response import GetSchemaV1Response as GetSchemaV1Response
from system_initiative_api_client.models.get_schema_variant_v1_response import GetSchemaVariantV1Response as GetSchemaVariantV1Response
from system_initiative_api_client.models.hash_map_value import HashMapValue as HashMapValue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from system_initiative_api_client.models.delete_change_set_v1_response import DeleteChangeSetV1Response
from system_initiative_api_client.models.force_apply_change_set_v1_response import ForceApplyChangeSetV1Response
from system_initiative_api_client.models.get_change_set_v1_response import GetChangeSetV1Response
from system_initiative_api_client.models.get_review_v1_response import GetReviewV1Response
from system_initiative_api_client.models.list_change_set_v1_response import ListChangeSetV1Response
from system_initiative_api_client.models.merge_status_v1_response import MergeStatusV1Response
from system_initiative_api_client.models.purge_open_change_sets_v1_response import PurgeOpenChangeSetsV1Response
Expand Down Expand Up @@ -1180,6 +1181,287 @@ def _get_change_set_serialize(



@validate_call
def get_review(
self,
workspace_id: Annotated[StrictStr, Field(description="Workspace identifier")],
change_set_id: Annotated[StrictStr, Field(description="Change Set identifier")],
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Tuple[
Annotated[StrictFloat, Field(gt=0)],
Annotated[StrictFloat, Field(gt=0)]
]
] = None,
_request_auth: Optional[Dict[StrictStr, Any]] = None,
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> GetReviewV1Response:
"""Get a comprehensive review of all changes in a Change Set


:param workspace_id: Workspace identifier (required)
:type workspace_id: str
:param change_set_id: Change Set identifier (required)
:type change_set_id: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:type _request_timeout: int, tuple(int, int), optional
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the
authentication in the spec for a single request.
:type _request_auth: dict, optional
:param _content_type: force content-type for the request.
:type _content_type: str, Optional
:param _headers: set to override the headers for a single
request; this effectively ignores the headers
in the spec for a single request.
:type _headers: dict, optional
:param _host_index: set to override the host_index for a single
request; this effectively ignores the host_index
in the spec for a single request.
:type _host_index: int, optional
:return: Returns the result object.
""" # noqa: E501

_param = self._get_review_serialize(
workspace_id=workspace_id,
change_set_id=change_set_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
_host_index=_host_index
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "GetReviewV1Response",
'401': None,
'404': None,
'500': "ApiError",
}
response_data = self.api_client.call_api(
*_param,
_request_timeout=_request_timeout
)
response_data.read()
return self.api_client.response_deserialize(
response_data=response_data,
response_types_map=_response_types_map,
).data


@validate_call
def get_review_with_http_info(
self,
workspace_id: Annotated[StrictStr, Field(description="Workspace identifier")],
change_set_id: Annotated[StrictStr, Field(description="Change Set identifier")],
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Tuple[
Annotated[StrictFloat, Field(gt=0)],
Annotated[StrictFloat, Field(gt=0)]
]
] = None,
_request_auth: Optional[Dict[StrictStr, Any]] = None,
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[GetReviewV1Response]:
"""Get a comprehensive review of all changes in a Change Set


:param workspace_id: Workspace identifier (required)
:type workspace_id: str
:param change_set_id: Change Set identifier (required)
:type change_set_id: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:type _request_timeout: int, tuple(int, int), optional
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the
authentication in the spec for a single request.
:type _request_auth: dict, optional
:param _content_type: force content-type for the request.
:type _content_type: str, Optional
:param _headers: set to override the headers for a single
request; this effectively ignores the headers
in the spec for a single request.
:type _headers: dict, optional
:param _host_index: set to override the host_index for a single
request; this effectively ignores the host_index
in the spec for a single request.
:type _host_index: int, optional
:return: Returns the result object.
""" # noqa: E501

_param = self._get_review_serialize(
workspace_id=workspace_id,
change_set_id=change_set_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
_host_index=_host_index
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "GetReviewV1Response",
'401': None,
'404': None,
'500': "ApiError",
}
response_data = self.api_client.call_api(
*_param,
_request_timeout=_request_timeout
)
response_data.read()
return self.api_client.response_deserialize(
response_data=response_data,
response_types_map=_response_types_map,
)


@validate_call
def get_review_without_preload_content(
self,
workspace_id: Annotated[StrictStr, Field(description="Workspace identifier")],
change_set_id: Annotated[StrictStr, Field(description="Change Set identifier")],
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Tuple[
Annotated[StrictFloat, Field(gt=0)],
Annotated[StrictFloat, Field(gt=0)]
]
] = None,
_request_auth: Optional[Dict[StrictStr, Any]] = None,
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
"""Get a comprehensive review of all changes in a Change Set


:param workspace_id: Workspace identifier (required)
:type workspace_id: str
:param change_set_id: Change Set identifier (required)
:type change_set_id: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:type _request_timeout: int, tuple(int, int), optional
:param _request_auth: set to override the auth_settings for an a single
request; this effectively ignores the
authentication in the spec for a single request.
:type _request_auth: dict, optional
:param _content_type: force content-type for the request.
:type _content_type: str, Optional
:param _headers: set to override the headers for a single
request; this effectively ignores the headers
in the spec for a single request.
:type _headers: dict, optional
:param _host_index: set to override the host_index for a single
request; this effectively ignores the host_index
in the spec for a single request.
:type _host_index: int, optional
:return: Returns the result object.
""" # noqa: E501

_param = self._get_review_serialize(
workspace_id=workspace_id,
change_set_id=change_set_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
_host_index=_host_index
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "GetReviewV1Response",
'401': None,
'404': None,
'500': "ApiError",
}
response_data = self.api_client.call_api(
*_param,
_request_timeout=_request_timeout
)
return response_data.response


def _get_review_serialize(
self,
workspace_id,
change_set_id,
_request_auth,
_content_type,
_headers,
_host_index,
) -> RequestSerialized:

_host = None

_collection_formats: Dict[str, str] = {
}

_path_params: Dict[str, str] = {}
_query_params: List[Tuple[str, str]] = []
_header_params: Dict[str, Optional[str]] = _headers or {}
_form_params: List[Tuple[str, str]] = []
_files: Dict[
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
] = {}
_body_params: Optional[bytes] = None

# process the path parameters
if workspace_id is not None:
_path_params['workspace_id'] = workspace_id
if change_set_id is not None:
_path_params['change_set_id'] = change_set_id
# process the query parameters
# process the header parameters
# process the form parameters
# process the body parameter


# set the HTTP header `Accept`
if 'Accept' not in _header_params:
_header_params['Accept'] = self.api_client.select_header_accept(
[
'application/json'
]
)


# authentication setting
_auth_settings: List[str] = [
]

return self.api_client.param_serialize(
method='GET',
resource_path='/v1/w/{workspace_id}/change-sets/{change_set_id}/review',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
body=_body_params,
post_params=_form_params,
files=_files,
auth_settings=_auth_settings,
collection_formats=_collection_formats,
_host=_host,
_request_auth=_request_auth
)




@validate_call
def list_change_sets(
self,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
from system_initiative_api_client.models.api_error import ApiError
from system_initiative_api_client.models.api_success_string import ApiSuccessString
from system_initiative_api_client.models.attribute_argument_binding_request import AttributeArgumentBindingRequest
from system_initiative_api_client.models.attribute_diff_tree_v1 import AttributeDiffTreeV1
from system_initiative_api_client.models.building_response_v1 import BuildingResponseV1
from system_initiative_api_client.models.cancel_action_v1_response import CancelActionV1Response
from system_initiative_api_client.models.change_set_view_v1 import ChangeSetViewV1
Expand All @@ -34,6 +35,7 @@
from system_initiative_api_client.models.component_reference import ComponentReference
from system_initiative_api_client.models.component_reference_one_of import ComponentReferenceOneOf
from system_initiative_api_client.models.component_reference_one_of1 import ComponentReferenceOneOf1
from system_initiative_api_client.models.component_review_v1 import ComponentReviewV1
from system_initiative_api_client.models.component_search_result import ComponentSearchResult
from system_initiative_api_client.models.component_search_result_schema import ComponentSearchResultSchema
from system_initiative_api_client.models.component_v1_request_path import ComponentV1RequestPath
Expand Down Expand Up @@ -96,6 +98,7 @@
from system_initiative_api_client.models.get_func_run_v1_response import GetFuncRunV1Response
from system_initiative_api_client.models.get_func_v1_response import GetFuncV1Response
from system_initiative_api_client.models.get_management_func_job_state_v1_response import GetManagementFuncJobStateV1Response
from system_initiative_api_client.models.get_review_v1_response import GetReviewV1Response
from system_initiative_api_client.models.get_schema_v1_response import GetSchemaV1Response
from system_initiative_api_client.models.get_schema_variant_v1_response import GetSchemaVariantV1Response
from system_initiative_api_client.models.hash_map_value import HashMapValue
Expand Down
Loading