Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complete Notification Page Functionality (Backend) #45

Closed
h0ethan04 opened this issue Feb 4, 2024 · 0 comments · Fixed by #53
Closed

Complete Notification Page Functionality (Backend) #45

h0ethan04 opened this issue Feb 4, 2024 · 0 comments · Fixed by #53
Assignees
Labels

Comments

@h0ethan04
Copy link
Contributor

h0ethan04 commented Feb 4, 2024

Instructions

The notifications component is mostly complete, and now it's time to pull complete the functionality. First, we need to update the databases and backend routes to support the notifications:

  • Since the user table doesn’t currently have an “approved” timestamp column or routes to modify the timestamp, add an approved_on column to the database (refer to figma in Resources)
  • Modify the POST request for users to insert the time the account was created
  • Modify PUT request for users to also update the approved_on column to the current time when the user account is approved
  • The Published Schedule database table also doesn’t have a created_on column, add a created_on column to the database (refer to figma in Resources)
  • Modify the POST request for Published Schedule entries to include the time the event was created
  • Modify the GET/POST/PUT/DELETE requests for Published Schedule to also return the created_on property
  • Create a GET request route for Published Schedule to get events that were confirmed within the past week
  • Create a GET request route for Published Schedule events that were added in the past week

Acceptance Criteria

  • Approving an account updates the approval_on column in the Users DB accordingly
  • Creating an account adds the user with correct timestamp
  • Published Schedule events are created with correct timestamp

Resources

@h0ethan04 h0ethan04 added the 8 pts label Feb 4, 2024
@h0ethan04 h0ethan04 changed the title Complete Notification Page Functionality Complete Notification Page Functionality (Backend) Feb 4, 2024
@ThatMegamind ThatMegamind linked a pull request Feb 20, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants