acryl-datahub-cloud 0.3.12rc6__py3-none-any.whl → 0.3.12rc8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of acryl-datahub-cloud might be problematic. Click here for more details.
- acryl_datahub_cloud/_codegen_config.json +1 -1
- acryl_datahub_cloud/datahub_forms_notifications/forms_notifications_source.py +13 -3
- acryl_datahub_cloud/metadata/_urns/urn_defs.py +1856 -1856
- acryl_datahub_cloud/metadata/schema.avsc +23385 -23855
- acryl_datahub_cloud/metadata/schema_classes.py +644 -644
- acryl_datahub_cloud/metadata/schemas/ConstraintInfo.avsc +1 -1
- acryl_datahub_cloud/metadata/schemas/DataHubPolicyInfo.avsc +1 -1
- acryl_datahub_cloud/metadata/schemas/MetadataChangeEvent.avsc +1 -1
- acryl_datahub_cloud/metadata/schemas/SubscriptionKey.avsc +2 -1
- acryl_datahub_cloud/sdk/assertion/assertion_base.py +176 -26
- acryl_datahub_cloud/sdk/assertion_input/volume_assertion_input.py +650 -0
- acryl_datahub_cloud/sdk/assertions_client.py +685 -45
- acryl_datahub_cloud/sdk/subscription_client.py +47 -11
- {acryl_datahub_cloud-0.3.12rc6.dist-info → acryl_datahub_cloud-0.3.12rc8.dist-info}/METADATA +35 -35
- {acryl_datahub_cloud-0.3.12rc6.dist-info → acryl_datahub_cloud-0.3.12rc8.dist-info}/RECORD +18 -17
- {acryl_datahub_cloud-0.3.12rc6.dist-info → acryl_datahub_cloud-0.3.12rc8.dist-info}/WHEEL +0 -0
- {acryl_datahub_cloud-0.3.12rc6.dist-info → acryl_datahub_cloud-0.3.12rc8.dist-info}/entry_points.txt +0 -0
- {acryl_datahub_cloud-0.3.12rc6.dist-info → acryl_datahub_cloud-0.3.12rc8.dist-info}/top_level.txt +0 -0
|
@@ -119,10 +119,16 @@ class DataHubFormsNotificationsSource(Source):
|
|
|
119
119
|
for urn, form in self.get_forms():
|
|
120
120
|
if not self.is_form_complete(urn, form.type):
|
|
121
121
|
assignees = self.get_form_assignees(urn, form)
|
|
122
|
-
self.process_notify_on_publish(
|
|
122
|
+
self.process_notify_on_publish(
|
|
123
|
+
assignees, form.name, urn, form.description
|
|
124
|
+
)
|
|
123
125
|
|
|
124
126
|
def process_notify_on_publish(
|
|
125
|
-
self,
|
|
127
|
+
self,
|
|
128
|
+
form_assignees: List[str],
|
|
129
|
+
form_name: str,
|
|
130
|
+
form_urn: str,
|
|
131
|
+
form_details: str | None,
|
|
126
132
|
) -> None:
|
|
127
133
|
"""
|
|
128
134
|
Take in form assignees, find the ones who haven't been notified on publish, and build a notification for them.
|
|
@@ -139,12 +145,16 @@ class DataHubFormsNotificationsSource(Source):
|
|
|
139
145
|
self.report.notifications_sent += recipient_count
|
|
140
146
|
self.report.forms_count += 1
|
|
141
147
|
|
|
148
|
+
parameters = [{"key": "formName", "value": form_name}]
|
|
149
|
+
if form_details is not None:
|
|
150
|
+
parameters.append({"key": "formDetails", "value": form_details})
|
|
151
|
+
|
|
142
152
|
response = self.execute_graphql_with_retry(
|
|
143
153
|
GRAPHQL_SEND_FORM_NOTIFICATION_REQUEST,
|
|
144
154
|
variables={
|
|
145
155
|
"input": {
|
|
146
156
|
"type": "BROADCAST_COMPLIANCE_FORM_PUBLISH",
|
|
147
|
-
"parameters":
|
|
157
|
+
"parameters": parameters,
|
|
148
158
|
"recipients": self.recipient_builder.convert_recipients_to_json_objects(
|
|
149
159
|
recipients
|
|
150
160
|
),
|