Skip to content

Latest commit

 

History

History
63 lines (56 loc) · 2.98 KB

planning.org

File metadata and controls

63 lines (56 loc) · 2.98 KB

DWSMS Planning file

Planning [16/19]

Get URL Resources loaded into DW server

Serve static files using AssetBundle

Should build simple HTML pages with FreeMarker backed views

Should use FreeMarker inheritance to have flexible html

Parse a user submitted date into a LocalDateTime object

Load the date format string from config file, pass to whoever needs it

Setup a timer task to eventually pull from Message Database

Pass needed config to MessageSender

Load the “from” phone number from config file

Setup Backbone/Marionette app

Is this needed?

  • yeah, it’s nice to see things update as they happen instead of going through a refresh cycle.

Maybe do SPA as a stretch goal

  • no just keep it simple

Backbone should prune list of enqueued messages

  • set a timer when one is made?
  • constantly check with the current list?
  • should i poll /sms for new messages submitted by other people?

Should load Twilio dev tokens from config.json

should put all logs to /logs folder

Change submission to take a delta into the future instead of absolute date

  • minutes, days, weeks
  • simple dropdowns

User can submit a future message [3/3]

message is a phone number, text, and date

message is stored in a priortity queue based on date

have a Resource to view submitted messages to verify they were saved

Validate that message length is below a maximum

  • SMS can be only 160 chars
  • Twilio trial account starts with a 38 char message

Better validation in general

  • frontend should react when a bad form is submitted
  • should check that number being submitted is valid
    • valid for USA or the world?

Set a max length in config file

Server and client should always use UTC time

  • seconds until send could work, but then every time i request it the send value is different
  • UTC is better for co-ordination (right there in the name), need to adjust java backend to deal with timezone :(
  • frontend has to do conversion to and from UTC, should be easy with moment.js

Final report: it was easy to do UTC stuff with the server & moment.js on the frontend

Notes

Don’t consider timezones

Uhh, timezones. Always giving problems. The server will run in whatever timezone, and everything will be considerd in that timezone.

Does Twilio provide timezone of message that is received?

something to read in the docs or talk to people