canvas 0.37.0__py3-none-any.whl → 0.38.0__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 canvas might be problematic. Click here for more details.
- {canvas-0.37.0.dist-info → canvas-0.38.0.dist-info}/METADATA +1 -1
- {canvas-0.37.0.dist-info → canvas-0.38.0.dist-info}/RECORD +6 -6
- canvas_sdk/v1/data/staff.py +47 -1
- plugin_runner/plugin_runner.py +6 -5
- {canvas-0.37.0.dist-info → canvas-0.38.0.dist-info}/WHEEL +0 -0
- {canvas-0.37.0.dist-info → canvas-0.38.0.dist-info}/entry_points.txt +0 -0
|
@@ -239,7 +239,7 @@ canvas_sdk/v1/data/practicelocation.py,sha256=5Z6dq-XFsdo8fqr8nm4b8IvxDMgPgoViHM
|
|
|
239
239
|
canvas_sdk/v1/data/protocol_override.py,sha256=nHB425UiPUi6YbyLR1UhRuQhY-hZ9pj2avjXeccZgTY,2183
|
|
240
240
|
canvas_sdk/v1/data/questionnaire.py,sha256=qsa-2hf2VtSw9B1gMwHh9QIvDAkW6gOErzm9d6Fk4Hk,7185
|
|
241
241
|
canvas_sdk/v1/data/reason_for_visit.py,sha256=lE0Fu5FCMlHPJzdE5fT5MQsuKd0dX2cEMRmDYYDgZRo,657
|
|
242
|
-
canvas_sdk/v1/data/staff.py,sha256=
|
|
242
|
+
canvas_sdk/v1/data/staff.py,sha256=tdVQmAJa-fq9CWixkijZ_u0fLXXAZ5WPf0lYSA83B6A,4955
|
|
243
243
|
canvas_sdk/v1/data/task.py,sha256=wmwgt70ocpboV_ov2GUAFbwcL-qGaotMgOk7DIpe6I0,3634
|
|
244
244
|
canvas_sdk/v1/data/team.py,sha256=9i5EKhq9Nhmx52nt2RLC3qOVRddKsAQbhfoP5Z9xDbE,2861
|
|
245
245
|
canvas_sdk/v1/data/user.py,sha256=Go2Mxso7RlMr0uhamPMenKt75RsyJCPnd9BscHxt6OA,435
|
|
@@ -274,7 +274,7 @@ plugin_runner/aws_headers.py,sha256=wZ8584E1fTW0CdGxOCnLSF8alH27z-URcUyoc6y6ohg,
|
|
|
274
274
|
plugin_runner/exceptions.py,sha256=YnRZiQVzbU3HrVlmEXLje_np99009YnhTRVHHyBCtqc,433
|
|
275
275
|
plugin_runner/installation.py,sha256=LLjtnzPk-w4go3UbXnBItJTKz1ajR_5kGQbFXTaWTFU,7693
|
|
276
276
|
plugin_runner/load_all_plugins.py,sha256=4T2gW2YljhIx4xfwf1c0F_8oIbE1ubsLj0ShkHRtlVY,5847
|
|
277
|
-
plugin_runner/plugin_runner.py,sha256=
|
|
277
|
+
plugin_runner/plugin_runner.py,sha256=Z7ySPJSY4AMGRR0PtdXA_I3z8rxlDpjssuMspHIc79U,21655
|
|
278
278
|
plugin_runner/sandbox.py,sha256=nkYwIhuyCLkvpf7tyL9B-5sJMNREwSDmqHhIjz75JZw,28340
|
|
279
279
|
protobufs/canvas_generated/messages/effects.proto,sha256=IsJLxjJPQzEK110hvwURxnA2t_EpmYgqh7F4TKtMMlQ,8424
|
|
280
280
|
protobufs/canvas_generated/messages/events.proto,sha256=iA6bzwcuPllCgKLjzw87wuSr6ynLxBtqPq_oLHvafuE,48552
|
|
@@ -282,7 +282,7 @@ protobufs/canvas_generated/messages/plugins.proto,sha256=oNainUPWFYQjgCX7bJEPI9_
|
|
|
282
282
|
protobufs/canvas_generated/services/plugin_runner.proto,sha256=doadBKn5k4xAtOgR-q_pEvW4yzxpUaHNOowMG6CL5GY,304
|
|
283
283
|
pubsub/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
284
284
|
pubsub/pubsub.py,sha256=PHIvJ5SD3M-jQSYeGGSj1FuG6CvP6BQffAoGax9Uudk,1423
|
|
285
|
-
canvas-0.
|
|
286
|
-
canvas-0.
|
|
287
|
-
canvas-0.
|
|
288
|
-
canvas-0.
|
|
285
|
+
canvas-0.38.0.dist-info/METADATA,sha256=YcszCvlmLX5cGQvbgWSb2mCDiX8yDVYpM64ah9_KJKo,4447
|
|
286
|
+
canvas-0.38.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
287
|
+
canvas-0.38.0.dist-info/entry_points.txt,sha256=0Vs_9GmTVUNniH6eDBlRPgofmADMV4BES6Ao26M4AbM,47
|
|
288
|
+
canvas-0.38.0.dist-info/RECORD,,
|
canvas_sdk/v1/data/staff.py
CHANGED
|
@@ -3,6 +3,9 @@ from django.db import models
|
|
|
3
3
|
from timezone_utils.fields import TimeZoneField
|
|
4
4
|
|
|
5
5
|
from canvas_sdk.v1.data.common import (
|
|
6
|
+
AddressState,
|
|
7
|
+
AddressType,
|
|
8
|
+
AddressUse,
|
|
6
9
|
ContactPointState,
|
|
7
10
|
ContactPointSystem,
|
|
8
11
|
ContactPointUse,
|
|
@@ -86,4 +89,47 @@ class StaffContactPoint(models.Model):
|
|
|
86
89
|
staff = models.ForeignKey(Staff, on_delete=models.DO_NOTHING, related_name="telecom")
|
|
87
90
|
|
|
88
91
|
|
|
89
|
-
|
|
92
|
+
class StaffAddress(models.Model):
|
|
93
|
+
"""StaffAddress."""
|
|
94
|
+
|
|
95
|
+
class Meta:
|
|
96
|
+
managed = False
|
|
97
|
+
db_table = "canvas_sdk_data_api_staffaddress_001"
|
|
98
|
+
|
|
99
|
+
id = models.UUIDField()
|
|
100
|
+
dbid = models.BigIntegerField(primary_key=True)
|
|
101
|
+
line1 = models.CharField()
|
|
102
|
+
line2 = models.CharField()
|
|
103
|
+
city = models.CharField()
|
|
104
|
+
district = models.CharField()
|
|
105
|
+
state_code = models.CharField()
|
|
106
|
+
postal_code = models.CharField()
|
|
107
|
+
use = models.CharField(choices=AddressUse.choices)
|
|
108
|
+
type = models.CharField(choices=AddressType.choices)
|
|
109
|
+
longitude = models.FloatField()
|
|
110
|
+
latitude = models.FloatField()
|
|
111
|
+
start = models.DateField()
|
|
112
|
+
end = models.DateField()
|
|
113
|
+
country = models.CharField()
|
|
114
|
+
state = models.CharField(choices=AddressState.choices)
|
|
115
|
+
staff = models.ForeignKey(Staff, on_delete=models.DO_NOTHING, related_name="addresses")
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
class StaffPhoto(models.Model):
|
|
119
|
+
"""StaffPhoto."""
|
|
120
|
+
|
|
121
|
+
class Meta:
|
|
122
|
+
managed = False
|
|
123
|
+
db_table = "canvas_sdk_data_api_staffphoto_001"
|
|
124
|
+
|
|
125
|
+
dbid = models.BigIntegerField(primary_key=True)
|
|
126
|
+
created = models.DateTimeField()
|
|
127
|
+
modified = models.DateTimeField()
|
|
128
|
+
staff = models.ForeignKey(Staff, on_delete=models.CASCADE, related_name="photos")
|
|
129
|
+
url = models.CharField(
|
|
130
|
+
default="https://d3hn0m4rbsz438.cloudfront.net/avatar1.png", max_length=512
|
|
131
|
+
)
|
|
132
|
+
title = models.CharField(max_length=255, blank=True, default="")
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
__exports__ = ("Staff", "StaffContactPoint", "StaffAddress", "StaffPhoto")
|
plugin_runner/plugin_runner.py
CHANGED
|
@@ -66,11 +66,12 @@ if SENTRY_DSN:
|
|
|
66
66
|
# we want the exceptions themselves, not these error lines
|
|
67
67
|
ignore_logger("plugin_runner_logger")
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
69
|
+
global_scope = sentry_sdk.get_global_scope()
|
|
70
|
+
|
|
71
|
+
global_scope.set_tag("customer", CUSTOMER_IDENTIFIER)
|
|
72
|
+
global_scope.set_tag("logger", "python")
|
|
73
|
+
global_scope.set_tag("source", "plugin-runner")
|
|
74
|
+
global_scope.set_tag("production_customer", "yes" if IS_PRODUCTION_CUSTOMER else "no")
|
|
74
75
|
|
|
75
76
|
# when we import plugins we'll use the module name directly so we need to add the plugin
|
|
76
77
|
# directory to the path
|
|
File without changes
|
|
File without changes
|