Implemented monitoring of task completion for the following time periods:
year
month
week
all-time
User Metrics Monitoring Description
When a task is completed a new user metric entry if none has been previously added. Otherwise, the user metric is updated, and if the period of the current date no longer falls within the period of the user metrics the period is updated.
Created user_metrics table
The user metrics table keeps track of the user owner and contains nested objects for user metrics for each time period.
Testing (How to view feature)
Login/Register
Create a task
navigate to display tasks http://localhost:3000/display-tasks
Set one of the tasks as completed
Navigate to the mongodb user_metrics and verify that the user_metrics was incremented/altered
Feature Overview:
Implemented monitoring of task completion for the following time periods:
User Metrics Monitoring Description
When a task is completed a new user metric entry if none has been previously added. Otherwise, the user metric is updated, and if the period of the current date no longer falls within the period of the user metrics the period is updated.
Created user_metrics table
The user metrics table keeps track of the user owner and contains nested objects for user metrics for each time period.
Testing (How to view feature)
http://localhost:3000/display-tasks
user_metrics
and verify that the user_metrics was incremented/altered