Skip to content

Notification system#81

Open
snebo wants to merge 13 commits intomainfrom
notification_system
Open

Notification system#81
snebo wants to merge 13 commits intomainfrom
notification_system

Conversation

@snebo
Copy link
Contributor

@snebo snebo commented Aug 28, 2025

Add Notification System with Audit Trail for Lead Applications and Events

Summary

  • Implemented comprehensive notification system for admin and user interactions
  • Added audit trail functionality for lead applications and event approvals
  • Integrated notifications across event and user endpoints

snebo added 13 commits August 11, 2025 20:36
fixed typo's and bugs in the notification schema
fixed bugs in notifications service that returned incorrect data format
…er and user service from passing any test

aside from some outaded refrences like #register in the controller test file which does not exist on the actual controller file, 'photo' was also removed from user schema. It has been readded since it caused a test to fail.
this took way longer than expected and came as a shock becuase the tests worked just fine
the issue was caused because of the use of 'Inject' rather than the mongoose 'InjectModel' which returns a sting and not the mongoose model itself. which made the dependency undetectable in the test files espicially when 'getModelToken' is used.
added unit tests for event endpoints and ensured presense of proper mock models
modified the events service and controller approve endpoint to accept admin id
added more tests for approval event service
… tests, and injectmodel to work in test, but fail in dev

since we use inject -for document- we need to pass the name which is the name in our custom shcema compiler 'dbmodule' (the name for example now being User.name) directly, rather than usin getModel() since we are not using the convetional model system
…ed issues with lead application guard not allowing users register to be leadd. the userguard was removed from this endpoint, since it first checks the request is from a lead or an admin
@snebo snebo marked this pull request as ready for review August 28, 2025 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant