Skip to content

Notification system#179

Draft
maboukerfa wants to merge 23 commits intodevelopmentfrom
notification-system
Draft

Notification system#179
maboukerfa wants to merge 23 commits intodevelopmentfrom
notification-system

Conversation

@maboukerfa
Copy link
Collaborator

@maboukerfa maboukerfa commented Jan 27, 2026

Notification

Built on top of Sidekiq for handling email notifications asynchronously.

Drawing 2026-01-23 10 11 16

PostgreSQL Integration

Integrated a relational database to handle the notification system.

All data related to notifications will be stored in this database, and all notification-related actions will be managed within the ontologies_api project.
We currently have 2 models stored there:

  1. Notifications (new)
  2. Subscriptions (migrated the old one from ontologies_linked_data)

Email templates

Emails are being migrated to HTML templates to stay faithful to the MVP architecture and achieve better layouts.

Screenshot 2026-02-20 at 10 23 18

Notifiable Actions

Action From To Channels Status
New User System - User (Welcome Message)
- Support
in-app, email Done
New Ontology Creator - Support email Done
New Submission Creator - Support email Done
Submission Processed Creator - Ontology::AdministratedBy
- Subscribers
- Support
- Contact
in-app, email
Password reset Creator - User in-app, email Done
New Note Creator - Ontology::AdministratedBy
- Subscribers
in-app, email Done
Obofoundry Sync System - Support email

Submissions Parsing Notification Flow

Drawing 2026-02-13 09 46 49 excalidraw

Notes and ontology subscriptions

  • We create in-app and email notifications for all ontology subscribers at new note creation

To do

  • We send notifications the ontology owners once a day for new subscriptions
    -Add mappings and Review Norifictions
  • Actions:
    • New Project
    • New Agent

- Introduced NotificationsController to manage user notifications.
- Implemented EmailNotificationJob for sending email notifications using Pony.
- Enhanced Notification model to support multiple channels (in-app and email).
- Added Notifier class for sending welcome emails and notifying support.
- Updated UsersController to send welcome emails upon user creation.
- Created views for email templates: welcome_email, new_user, and new_note.
- Updated Docker configuration to include necessary volumes and commands.
- Added support for SMTP configuration in the application settings.
- Created migration for notifications table with new fields.
@jonquet
Copy link

jonquet commented Feb 18, 2026

@maboukerfa Be sure to describe the PR or evebn for you it will become quickly too much things to remember/handle.

@maboukerfa
Copy link
Collaborator Author

maboukerfa commented Feb 18, 2026

Oui tout est documenté et schématisé dans mes notes, je recopierai ici plus tard

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.

2 participants