mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05:00
Use the template version at the time the notification is created or at the time the job is created.
Update notifications/sms|email endpoint to send the template version to the queue. Update the process_job celery talk to send the template version to the queue. When the send_sms|send_email task runs it will get the template by id and version. Created a data migration script to add the template_vesion column for jobs and notifications. The existing jobs and notifications are given the template_version of the current template. There is a chance this is the wrong template version, but deemed okay since the application is not live. Create unit test for the dao_get_template_versions method. Rename /template/<id>/version to /template/<id>/versions which returns all versions for that template id and service id.
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
"""empty message
|
||||
|
||||
Revision ID: 0013_add_template_version
|
||||
Revises: 0010_events_table
|
||||
Revision ID: 0014_add_template_version
|
||||
Revises: 0012_complete_provider_details
|
||||
Create Date: 2016-05-11 16:00:51.478012
|
||||
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '0013_add_template_version'
|
||||
down_revision = '0010_events_table'
|
||||
revision = '0014_add_template_version'
|
||||
down_revision = '0012_complete_provider_details'
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
Reference in New Issue
Block a user