pJeyakumar / noticed_upgrade_project

2 stars 0 forks source link

Upgrade to Noticed 2.3.2 #34

Closed pJeyakumar closed 2 months ago

pJeyakumar commented 2 months ago

Upgrade to Noticed 2.3.2. (from Noticed 1.6.0)

pJeyakumar commented 2 months ago

Discussion w/ Jon:

  1. Push the migration through.
  2. Upgrade Noticed gem (1.6.0 -> 2.3.2), make all the necessary code adjustments, and ApplicationJob to create new notifications from the old notifications.
    • Run the ApplicationJob manually and during off hours to go through all of the old notifications.
    • Have a section to display jobs that are currently running
  3. Remove the ApplicationJob
  4. DROP the old notifications table (maybe, after some time has passed)

Considerations:

  1. Staging's db refreshes based on Production every 24h (meaning if testing and migration takes longer than 24h, our new notification records would be wiped, since Production does not have those records yet)
  2. May need to increase the hourly email limit in Staging (currently is 50 emails per hour).
    • Since we'll need to test a variety of Notifications and Mailers.
  3. Need to update Anony to exclude noticed_events and noticed_notifications
  4. Create RSpec tests for Notification classes

Next Steps:

  1. Run the migration first and then upgrade to the Noticed 2.3.2 gem.
    • to determine that there will be no issues if the tables already exist when we're making the code changes

UPDATE:

After Run the migration first and then upgrade to the Noticed 2.3.2 gem.