You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reducing the number of queries against our data is necessary to maintain a stable product. Collection of bearer tokens is done on every callback update status.
Ticket is understood, and QA has been contacted (if the ticket has a QA label).
User Story(ies)
As a VA Notify reliability dev I want to reduce unnecessary DB calls So that our db is only used when necessary
Additional Info and Resources
It all starts inside check_and_queue_service_callback_task and you likely want a dataclass with the following fields:
id
url
bearer_token (set with Encryption.encrypt)
include_provider_payload
callback_type
⚠️json.dumps does not like bytes
Acceptance Criteria
Uses a dataclass for the necessary fields of ServiceCallback (see Additional Info)
Uses Encryption.encrypt method and Encryption.decrypt
User Story - Business Need
Reducing the number of queries against our data is necessary to maintain a stable product. Collection of bearer tokens is done on every callback update status.
User Story(ies)
As a VA Notify reliability dev
I want to reduce unnecessary DB calls
So that our db is only used when necessary
Additional Info and Resources
It all starts inside
check_and_queue_service_callback_task
and you likely want a dataclass with the following fields:Encryption.encrypt
)json.dumps
does not like bytesAcceptance Criteria
ServiceCallback
(see Additional Info)Encryption.encrypt
method andEncryption.decrypt
@cached(cache=TTLCache(maxsize=1024, ttl=600))
QA Considerations
Should be no difference for end-users.
Potential Dependencies
The text was updated successfully, but these errors were encountered: