department-of-veterans-affairs / notification-api

Notification API
MIT License
16 stars 9 forks source link

Update check_and_queue_callback Logic for a callback url #2012

Closed k-macmillan closed 1 month ago

k-macmillan commented 2 months ago

User Story - Business Need

As part of the work to enhance client experience and reduce opportunities for silent failures, we are enabling a callback_url as part of the notification request. If there is a callback_url in the Notification object it will supersede any service-level callback.

User Story(ies)

As a Service using VA Notify I want to be able to specify callbacks at the request-level So that we have more agency

Additional Info and Resources

The check_and_queue_callback_task method was only built with service callbacks in mind.

Acceptance Criteria

QA Considerations

Edge cases such as invalid URLs or clients rejecting the request due to validation.

Potential Dependencies

kbelikova-oddball commented 2 months ago

Hey team! Please add your planning poker estimate with Zenhub @coreycarvalho @cris-oddball @EvanParish @k-macmillan @kalbfled @MackHalliday @mchlwellman

EvanParish commented 1 month ago

I've started writing tests for this and since the blocking ticket is now merged, I am starting implementation work.

EvanParish commented 1 month ago

I made some good progress today, but I have a few questions I'll have to run by Kyle / team tomorrow before I can finish this work.

EvanParish commented 1 month ago

I did some testing yesterday and it's looking promising so far! There were a couple things I wanted to look into today before opening the PR for review, so I'm just wrapping that up.

cris-oddball commented 1 month ago

QA PASSED

Screenshot_2024-10-14_at_11_25_23 AM.jpg

No logs seen for the service callback for this notification.

also the following for each

Screenshot 2024-10-14 at 11.41.09 AM.jpg