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

Add Endpoints for Notifications #950

Commits on Feb 14, 2023

  1. Create NotificationType Model

    - Create Notifications module and NotificationType model
    - Start migration for adding notifications
    - No functionalities added yet only template code
    Santosh3007 committed Feb 14, 2023
    Configuration menu
    Copy the full SHA
    fcc4cf5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b429644 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d024a75 View commit details
    Browse the repository at this point in the history
  4. Create TimeOption Model

    Santosh3007 committed Feb 14, 2023
    Configuration menu
    Copy the full SHA
    cd20b4a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a580719 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    877220a View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2023

  1. Add Email Field to User Model

    Junyi00 committed Feb 15, 2023
    Configuration menu
    Copy the full SHA
    c8ecd5d View commit details
    Browse the repository at this point in the history
  2. fix: Fix Oban configuration

    Junyi00 committed Feb 15, 2023
    Configuration menu
    Copy the full SHA
    6a6cec7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1b5ca22 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    39367e4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e6cd06c View commit details
    Browse the repository at this point in the history
  6. Add migrations for notification triggers and avenger backlog

    notification entry
    Junyi00 committed Feb 15, 2023
    Configuration menu
    Copy the full SHA
    4cc7b7f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    1802e49 View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2023

  1. Fix formatting errors

    Santosh3007 committed Feb 16, 2023
    Configuration menu
    Copy the full SHA
    0f7b7e4 View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2023

  1. fix: Fix notifications schema typos

    Changes:
    * Replaced is_enable to is_enabled for Notification Preferences
    * Update default is_enabled to true for Notifcation Types
    Junyi00 committed Feb 21, 2023
    Configuration menu
    Copy the full SHA
    dd951e8 View commit details
    Browse the repository at this point in the history
  2. fix: Fix test configurations not being applied

    `import_config` must always appear at the bottom for environment
    specific configurations to be applied correctly. All configurations
    after this line will overwrite configurations that exists in the
    environment specific ones.
    Junyi00 committed Feb 21, 2023
    Configuration menu
    Copy the full SHA
    554054f View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2023

  1. chore: remove unused controllers and views

    - remove auto-generated controllers and views that are not used
    Santosh3007 committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    960d75b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    851a309 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fa4ea44 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6602170 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    669ac75 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e8bff4c View commit details
    Browse the repository at this point in the history
  7. style: fix formatting

    Santosh3007 committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    45bbb34 View commit details
    Browse the repository at this point in the history
  8. fix: Fix bad refactoring

    Junyi00 committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    f6857b9 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    f709625 View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2023

  1. Configuration menu
    Copy the full SHA
    5b43002 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b37f4a5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b0000c6 View commit details
    Browse the repository at this point in the history
  4. chore: Update default behaviour for no time_option in user preference

    If user preference has no time option, use the time_option from
    notification_config instead. This is so that the behaviour of these
    users with no preferences would always follow the default chosen by the
    course admin
    Junyi00 committed Feb 28, 2023
    Configuration menu
    Copy the full SHA
    7003af5 View commit details
    Browse the repository at this point in the history
  5. style: fix formatting

    Santosh3007 committed Feb 28, 2023
    Configuration menu
    Copy the full SHA
    1f25fc0 View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2023

  1. Configuration menu
    Copy the full SHA
    d6d6869 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fdfd195 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    31c7b5c View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2023

  1. fix: Fix testing with Oban

    Oban introduced changes to testing in v2.12, this commit changes the old
    test configurations to the new one recommended by official docs.
    Junyi00 committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    498ca1b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    70823a6 View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2023

  1. Configuration menu
    Copy the full SHA
    cf160f8 View commit details
    Browse the repository at this point in the history
  2. style: fix formatting

    Santosh3007 committed Mar 5, 2023
    Configuration menu
    Copy the full SHA
    83d4943 View commit details
    Browse the repository at this point in the history
  3. style: fix formatting

    Santosh3007 committed Mar 5, 2023
    Configuration menu
    Copy the full SHA
    bf362c7 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2023

  1. style: fix formatting

    Santosh3007 committed Mar 6, 2023
    Configuration menu
    Copy the full SHA
    05aac5c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3b571ff View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8f0e982 View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2023

  1. Configuration menu
    Copy the full SHA
    ba29201 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c07f88f View commit details
    Browse the repository at this point in the history

Commits on Mar 10, 2023

  1. Configuration menu
    Copy the full SHA
    4f120ee View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0b245a9 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2023

  1. chore: Add migration to populate existing nus users' emails

    Current nus users will have their email attribute populated based on
    their username. nus users are identified from the provider attribute.
    
    Future nus users will have their email attribute populated on creation
    ideally.
    Junyi00 committed Mar 11, 2023
    Configuration menu
    Copy the full SHA
    9600d40 View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2023

  1. feat: implement sent_notifications

    - move mailing logic to notification worker
    - insert into sent_notifications when email is sent out successfully
    Santosh3007 committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    22c1391 View commit details
    Browse the repository at this point in the history
  2. fix: fix tests

    Santosh3007 committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    8ef9a59 View commit details
    Browse the repository at this point in the history
  3. style: fix formatting

    Santosh3007 committed Mar 12, 2023
    Configuration menu
    Copy the full SHA
    a516463 View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2023

  1. fix: fix guard clauses

    - move guard clauses to prevent unnecessary querying
    Santosh3007 committed Mar 13, 2023
    Configuration menu
    Copy the full SHA
    8994947 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b93cdbd View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2023

  1. Configuration menu
    Copy the full SHA
    deca215 View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2023

  1. Configuration menu
    Copy the full SHA
    5c321ca View commit details
    Browse the repository at this point in the history
  2. chore: Update notifications endpoints

    * Notification configs now return course and notification preferences
    Junyi00 committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    1422153 View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2023

  1. Configuration menu
    Copy the full SHA
    de920be View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2023

  1. update notifications query to return a single preference

    * Query returns an array of preferences per config due to LEFT OUTER
      JOIN, the change ensures either nil or the first preference is
      returned
    * It is guaranteed there is maximally one preference in the array due to
      the unique constraint in the new migration
    Junyi00 committed Apr 4, 2023
    Configuration menu
    Copy the full SHA
    a0b8eef View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2023

  1. Configuration menu
    Copy the full SHA
    059d969 View commit details
    Browse the repository at this point in the history
  2. Fix Notifications Endpoints

    - Add put upsert time options endpoints
    - Fix changeset issues with upsert noti config endpoints
    Santosh3007 committed Apr 5, 2023
    Configuration menu
    Copy the full SHA
    2cc2f35 View commit details
    Browse the repository at this point in the history

Commits on May 30, 2023

  1. Configuration menu
    Copy the full SHA
    2880a3a View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2023

  1. Configuration menu
    Copy the full SHA
    dc02296 View commit details
    Browse the repository at this point in the history
  2. Fix linting

    Santosh3007 committed Jun 14, 2023
    Configuration menu
    Copy the full SHA
    e8a28d6 View commit details
    Browse the repository at this point in the history
  3. Fix linting

    Santosh3007 committed Jun 14, 2023
    Configuration menu
    Copy the full SHA
    5cc0439 View commit details
    Browse the repository at this point in the history
  4. Fix linting

    Santosh3007 committed Jun 14, 2023
    Configuration menu
    Copy the full SHA
    6206538 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    45f3e1c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5b50c47 View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2023

  1. FIx linting

    Santosh3007 committed Jun 16, 2023
    Configuration menu
    Copy the full SHA
    b620cd3 View commit details
    Browse the repository at this point in the history
  2. Fix avenger backlog tests

    Santosh3007 committed Jun 16, 2023
    Configuration menu
    Copy the full SHA
    1ff2fb1 View commit details
    Browse the repository at this point in the history
  3. Fix Type Checking

    Santosh3007 committed Jun 16, 2023
    Configuration menu
    Copy the full SHA
    bb46771 View commit details
    Browse the repository at this point in the history
  4. Add tests for notifications controller

    * Removed extra unused route
    Junyi00 committed Jun 16, 2023
    Configuration menu
    Copy the full SHA
    95206d4 View commit details
    Browse the repository at this point in the history
  5. Fix credo errors

    Junyi00 committed Jun 16, 2023
    Configuration menu
    Copy the full SHA
    eedaf8c View commit details
    Browse the repository at this point in the history
  6. Fix formatting issues

    Junyi00 committed Jun 16, 2023
    Configuration menu
    Copy the full SHA
    5949366 View commit details
    Browse the repository at this point in the history
  7. Fix module name definition

    Junyi00 committed Jun 16, 2023
    Configuration menu
    Copy the full SHA
    9cc08b4 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    6c242a0 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2023

  1. Configuration menu
    Copy the full SHA
    df05af4 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2023

  1. Configuration menu
    Copy the full SHA
    65a2a8a View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2023

  1. Configuration menu
    Copy the full SHA
    c21e42f View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2023

  1. Configuration menu
    Copy the full SHA
    39fe3cb View commit details
    Browse the repository at this point in the history