diff --git a/great_expectations/checkpoint/actions.py b/great_expectations/checkpoint/actions.py index 08e1091e5128..89b51cb0a3ea 100644 --- a/great_expectations/checkpoint/actions.py +++ b/great_expectations/checkpoint/actions.py @@ -758,10 +758,17 @@ def _run( if self.data_context.ge_cloud_mode and checkpoint_identifier: contract_ge_cloud_id = checkpoint_identifier.ge_cloud_id + expectation_suite_ge_cloud_id = None + if self.data_context.ge_cloud_mode and expectation_suite_identifier: + expectation_suite_ge_cloud_id = str( + expectation_suite_identifier.ge_cloud_id + ) + return_val = self.target_store.set( validation_result_suite_identifier, validation_result_suite, contract_id=contract_ge_cloud_id, + expectation_suite_id=expectation_suite_ge_cloud_id, ) if self.data_context.ge_cloud_mode: return_val: GeCloudResourceRef diff --git a/great_expectations/data_context/data_context.py b/great_expectations/data_context/data_context.py index 185475ede3eb..c26e2e6183ae 100644 --- a/great_expectations/data_context/data_context.py +++ b/great_expectations/data_context/data_context.py @@ -2084,7 +2084,7 @@ def get_datasource( return datasource def list_expectation_suites(self): - """Return a list of available expectation suite names.""" + """Return a list of available expectation suite keys.""" try: keys = self.expectations_store.list_keys() except KeyError as e: @@ -2276,7 +2276,15 @@ def get_expectation_suite( ) def list_expectation_suite_names(self) -> List[str]: - """Lists the available expectation suite names""" + """ + Lists the available expectation suite names. If in ge_cloud_mode, a list of + GE Cloud ids is returned instead. + """ + if self.ge_cloud_mode: + return [ + suite_key.ge_cloud_id for suite_key in self.list_expectation_suites() + ] + sorted_expectation_suite_names = [ i.expectation_suite_name for i in self.list_expectation_suites() ] diff --git a/great_expectations/data_context/store/ge_cloud_store_backend.py b/great_expectations/data_context/store/ge_cloud_store_backend.py index ec31959f3789..c1f83808921a 100644 --- a/great_expectations/data_context/store/ge_cloud_store_backend.py +++ b/great_expectations/data_context/store/ge_cloud_store_backend.py @@ -31,7 +31,7 @@ class GeCloudStoreBackend(StoreBackend, metaclass=ABCMeta): ALLOWED_SET_KWARGS_BY_RESOURCE_TYPE = { "expectation_suite": {"clause_id"}, "rendered_data_doc": {"source_type", "source_id"}, - "suite_validation_result": {"contract_id"}, + "suite_validation_result": {"contract_id", "expectation_suite_id"}, } def __init__( diff --git a/great_expectations/render/view/templates/page_minimal.j2 b/great_expectations/render/view/templates/page_minimal.j2 new file mode 100644 index 000000000000..0008a6ca0172 --- /dev/null +++ b/great_expectations/render/view/templates/page_minimal.j2 @@ -0,0 +1,35 @@ + + + + Data documentation compiled by Great Expectations + + + {% block title %}{% endblock %} + + {# {# Remove this when not debugging: #} + {# #} + + + + + + + + + {% include 'js_script_imports.j2' %} + {% include 'favicon.j2' %} + + + +
+
+
+ {% for section in sections %} + {% set section_loop = loop -%} + {% include 'section.j2' %} + {% endfor %} +
+
+
+ +