department-of-veterans-affairs / notification-api

Notification API
MIT License
16 stars 9 forks source link

Spike: review TIME for scheduled_for and determine how to improve it #1439

Open cris-oddball opened 1 year ago

cris-oddball commented 1 year ago

User Story - Business Goal

The v2 and v3 notification routes have a scheduled_for property (a permission that must be added to any service that wishes to use it) that can be sent in the POST payload. Testing has revealed that the routes do send scheduled emails and sms however there is a time factor that must be addressed.

Note that v3 implementation is partial and is also different than the v2 implementation. Review both to determine what changes need to be made to each and create appropriate tickets.

User Story(ies)

As a VANotify I want to spruce up the notifications scheduled_for feature So that I can provide that functionality to clients

Additional Info and Resources

Acceptance Criteria & Checklist

Completed research addresses the problems and/or answers the questions below:

  1. We understand how Scheduled feature works and how to improve it for our clients.
  2. Determine if it is valuable for the client to be able to send along a TZ in the timestamp. The code appears to do a conversion, so the value might be sent in this format:%Y-%m-%dT%H:%M:%S.%fZ
  3. If that is not valuable for the client and we inform the clients that the TZ they send must be in UTC, then the insertion into the DB must be the value that was sent, not a value that adds any amount of time to it.
  4. Determine if it makes more sense for the app and the DB to be in the same timezone (and what impact, if any, the current state has on billing data)
kbelikova-oddball commented 3 months ago

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

mjones-oddball commented 3 months ago

@cris-oddball can you migrate a PDF copy of your testing document to the team repo (or make into an MD file) and update the links in the ticket when you get a chance?

cris-oddball commented 3 months ago

@mjones-oddball will do, on my todo list!

cris-oddball commented 3 months ago

Testing doc added to team repo and linked in description.

npmartin-oddball commented 1 month ago

Still broken/still needed.