mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-23 15:56:45 -04:00
dont load template contents for job page
rename the notification_status_schema to make it apparent that it involves the template, and then don't use it on the job page - the job page doesn't do anything with the data. won't somebody think of the cpu cycles! (also means it ignores problems with template versions)
This commit is contained in:
@@ -10,7 +10,7 @@ api_spec = APISpec(
|
||||
version='0.0.0'
|
||||
)
|
||||
|
||||
api_spec.definition('NotificationStatusSchema', properties={
|
||||
api_spec.definition('NotificationWithTemplateSchema', properties={
|
||||
"content_char_count": {
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
@@ -106,14 +106,14 @@ api_spec.definition('NotificationStatusSchema', properties={
|
||||
})
|
||||
api_spec.definition('NotificationSchema', properties={
|
||||
"notification": {
|
||||
"$ref": "#/definitions/NotificationStatusSchema"
|
||||
"$ref": "#/definitions/NotificationWithTemplateSchema"
|
||||
}
|
||||
})
|
||||
api_spec.definition('NotificationsSchema', properties={
|
||||
"notifications": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/NotificationStatusSchema"
|
||||
"$ref": "#/definitions/NotificationWithTemplateSchema"
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user