justicenation / slashclock

/clock concept as a new Slack app
GNU General Public License v3.0
0 stars 0 forks source link

Clock in #1

Closed martyychang closed 7 years ago

martyychang commented 7 years ago

As a user, I want to clock in by typing /clock in when I'm starting to work, so I can begin tracking time on any given day.

Solution design

A TimeEntry__c object will be created to store time entries. Each time entry will have at minimum four fields.

It's important to note that trying to clock in twice without clocking out should cause an error to be generated along the lines of "Hey, you've already clocked in!"

Conditions of satisfaction

Not clocked in scenario...

Clocked in scenario...

martyychang commented 7 years ago

Relying on the trigger to produce the validation error doesn't work, as I get a System.DmlException instead of the custom SlashclockException I threw