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. Service SMS Sender is not something that changes very often and can safely be cached. We also want to fix a variable and function that are named improperly.
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
get_reply_to_text in app/v2/notifications/post_notifications.py is where the Service SMS Senders are looked up. The check_service_sms_sender_id is already cached, so this issue should handle the case where the template gathers the service's default sms sender. This may involve a new method that does not use the TemplateBase.get_reply_to_text, up to the dev.
Acceptance Criteria
check_service_sms_sender_id renamed to get_service_sms_sender_number
sms_sender_id in the get_reply_to_text method renamed to sms_sender_number
User Story - Business Need
Reducing the number of queries against our data is necessary to maintain a stable product. Service SMS Sender is not something that changes very often and can safely be cached. We also want to fix a variable and function that are named improperly.
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
get_reply_to_text
inapp/v2/notifications/post_notifications.py
is where the Service SMS Senders are looked up. Thecheck_service_sms_sender_id
is already cached, so this issue should handle the case where the template gathers the service's default sms sender. This may involve a new method that does not use theTemplateBase.get_reply_to_text
, up to the dev.Acceptance Criteria
check_service_sms_sender_id
renamed toget_service_sms_sender_number
sms_sender_id
in theget_reply_to_text
method renamed tosms_sender_number
@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: