It's too expensive to attempt to load all certificates associated with a given notification. Some queries such as `default` are associated with a large number of certificates. We have little control over when these objects are loaded, but when marshalled they are lazyloaded via SQLAlachemy. If a user needs to get all the certificates associated with a certificate they should use the /notifications/<id>/certificates endpoints that support pagination. (#891)
This commit is contained in:
parent
82b43b5a9d
commit
ff87c487c8
|
@ -26,7 +26,6 @@ class NotificationOutputSchema(LemurOutputSchema):
|
||||||
active = fields.Boolean()
|
active = fields.Boolean()
|
||||||
options = fields.List(fields.Dict())
|
options = fields.List(fields.Dict())
|
||||||
plugin = fields.Nested(PluginOutputSchema)
|
plugin = fields.Nested(PluginOutputSchema)
|
||||||
certificates = fields.Nested(AssociatedCertificateSchema, many=True, missing=[])
|
|
||||||
|
|
||||||
@post_dump
|
@post_dump
|
||||||
def fill_object(self, data):
|
def fill_object(self, data):
|
||||||
|
|
Loading…
Reference in New Issue