Skip to content

Notification system - #179

Draft
maboukerfa wants to merge 23 commits into
masterfrom
notification-system
Draft

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

Conversation

@maboukerfa

@maboukerfa maboukerfa commented Jan 27, 2026

Copy link
Copy Markdown
Collaborator

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

jonquet commented Feb 18, 2026

Copy link
Copy Markdown

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

@maboukerfa

maboukerfa commented Feb 18, 2026

Copy link
Copy Markdown
Collaborator Author

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

Base automatically changed from development to master June 24, 2026 22:45
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