Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

...

...

Table of Contents

Identify

Document Owner
Document StatusDraft
Intern Working on this Project
Mentors
Source Codehttps://github.com/ad-os/incubator-fineract
DocumentationNotification API user Developer User Guide

Project Summary

  • Enable generic way of sending notifications - these notifications should be capable of being delivered via the Community App, via the Android app for field officers or Android self-service app.

...

Goal

  •  To allow the user to directly act upon the alert directly from the notification (i.e. approve a client). This is what actionable means.

Approach for designing  a generic notification system

...

This part contains information about how notifications are being generated in the backend and what design they follow for their generation.

...

This part contains information about how notifications are being stored in the database after their generation and what data model design they follow.

...

Two tables are being used for storing the generated notifications.

1. notification_generator :- This table contains the attributes of the generated notification.

idobject_typeobject_identifieractionactoris_system_generatednotification_contentcreated_at

id :- The id of the generated notification.

...

notification_content :- This column contains the text of the generated notification which would be shown to the user for whom it was generated. For e.g A new client with name abc ABC was created by mifos.

created_at :- It contains the date and time of the generated notification.

...................................................................................................................................................................................................................................................................................................................................

2. notification_mapper :- 

...

JIRA Tasks

...

The table maps the id of generated notification with the id of a user for whom it was generated.

idnotification_iduser_idis_readcreated_at

id :- The id of mapped notification.

notification_id :- It contains the id of a notification which has to be mapped to a user. This is coming from the notification_generator table.

user_id :- It contains the id of a user for whom the notification is mapped.

is_read :- It is a boolean value. It tells whether the notification has been read by the user or not.

created_at :-  It contains the date and time of the mapped notification.

Notification Delivery

  • For each REST request which the UI makes the server will send back a response header for e.g 'X-Notification-Refresh' with each response containing the value of either true or false depending upon whether new notifications are present on the server or not.
  • If no REST request has been made for certain time interval then a new REST request is made to check whether there are new notifications on the server or not.

JIRA Tasks

Jira Legacy
serverMifos Atlassian JIRA
columnskey,summary,type,created,priority,status,resolution
maximumIssues20
jqlQueryassignee in ("Adhyan Srivastava")
serverIdfadabfd4-0fae-3a17-93dc-48fcff6b6b6a