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.

@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "acryl-datahub-cloud",
3
- "version": "0.3.12rc6",
3
+ "version": "0.3.12rc8",
4
4
  "install_requires": [
5
5
  "avro-gen3==0.7.16",
6
6
  "acryl-datahub"
@@ -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(assignees, form.name, urn)
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, form_assignees: List[str], form_name: str, form_urn: str
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": [{"key": "formName", "value": form_name}],
157
+ "parameters": parameters,
148
158
  "recipients": self.recipient_builder.convert_recipients_to_json_objects(
149
159
  recipients
150
160
  ),