Rebecca Law
069cf35878
Script to update the international flag from null to false
2017-05-19 10:31:36 +01:00
Rebecca Law
9b79ac2189
Revert "Script to update international flag 10,000 rows at a time."
2017-05-18 15:45:50 +01:00
Rebecca Law
097510b029
Testing the update script
2017-05-18 14:28:49 +01:00
Rebecca Law
a75db81334
Fix name condflicts with migration script
2017-05-18 13:12:05 +01:00
Rebecca Law
38659cc563
Merge branch 'master' into update-international
2017-05-18 11:01:27 +01:00
Martyn Inglis
83a1b1526e
Merge branch 'master' into async-job-stats
...
Conflicts:
app/notifications/notifications_ses_callback.py
2017-05-17 09:49:43 +01:00
Ken Tsang
114d4d84d4
Add service permissions DAO and refactor user service permission mock
2017-05-15 17:28:14 +01:00
Ken Tsang
359c4d2138
add service permissions model + migration script
2017-05-15 12:52:28 +01:00
Martyn Inglis
835dcc6273
Not null job_id and rebuilt the migration script to include this
2017-05-12 13:18:12 +01:00
Martyn Inglis
2643a891fc
Renumber the sql migrations.
2017-05-11 15:43:52 +01:00
Martyn Inglis
d324d72926
Merge branch 'master' into async-job-stats
2017-05-11 15:41:20 +01:00
Rebecca Law
76a267b896
Script to update international flag 10,000 rows at a time.
2017-05-11 15:40:56 +01:00
Martyn Inglis
e993a91a11
Added a created at column to the job stats table.
2017-05-11 15:21:27 +01:00
Imdad Ahad
373c2b029f
Add go live template
2017-05-11 12:38:32 +01:00
Leo Hemsted
c10d4a36e7
populate notification_status_types table, and add foreign keys
2017-05-09 15:46:58 +01:00
Martyn Inglis
9c3ea95dcd
Changed job_stats table to have an update at time stamp
2017-05-09 14:04:07 +01:00
Martyn Inglis
9bedcbc1b3
removed the reference to internation numbers from migration script
2017-05-09 11:22:45 +01:00
Martyn Inglis
d647640b65
Added job statistics table
2017-05-09 11:22:05 +01:00
Leo Hemsted
34e6ab3211
add new notification_status_types static table
...
enums are hard to develop with - it is a slow and unchunkable change
to add a new type or remove an old type. We're slowly moving away from
using enums, in favour of static type tables, where the name is the
primary key.
This commit contains an alembic script that creates that table, and
creates a new nullable column on notifications and
notification_history that refer to it.
2017-05-04 17:08:30 +01:00
Rebecca Law
93e76d2362
Update the valid_from date for the rate that is intended to start at the begining of the financial year.
...
It was the start of the financial year in BST, needed to convert it to UTC.
Small change to the logic to find the rates.
2017-05-03 17:11:48 +01:00
Ken Tsang
d0df5c2180
Adjust rates in line to what admin expects
2017-05-03 13:02:36 +01:00
Leo Hemsted
c8c6675ec6
set migration number
2017-04-26 16:54:24 +01:00
Leo Hemsted
a138ec478a
Merge branch 'master' into sent-status
2017-04-26 16:52:16 +01:00
Leo Hemsted
9afc07175a
fix typo in downgrade
2017-04-26 16:51:40 +01:00
Imdad Ahad
014a29170c
Rebase off master
2017-04-26 11:31:58 +01:00
Imdad Ahad
26b35c5d15
Add intl notificiation fields
2017-04-26 11:31:05 +01:00
Imdad Ahad
c69ee2405a
Fix comment
2017-04-26 10:37:12 +01:00
Imdad Ahad
20d6d9d333
Update migration off master
2017-04-25 17:35:22 +01:00
Imdad Ahad
25ce3851eb
Add international support flag for providers
2017-04-25 17:33:16 +01:00
Leo Hemsted
c87be0f982
add sent notification status
2017-04-25 16:29:07 +01:00
Rebecca Law
3b28a1fa47
Fix db migration merge conflicts
2017-04-25 10:19:57 +01:00
Rebecca Law
e8a7762688
Merge branch 'master' into update-sms-rate
2017-04-25 10:15:54 +01:00
Rebecca Law
43226dc932
Added a new rates table.
...
We only need one rate per channel. This reflects that. The provider_rates has been left for now, it is still not being used.
New dao has been added to select the right rate for the given notification_type and date of notificaiton.
2017-04-24 16:20:03 +01:00
Ken Tsang
04796b39a8
Add international sms feature flag in db
2017-04-24 12:43:19 +01:00
Imdad Ahad
0ce0086639
Add DVLA org migration with default values
2017-04-21 13:27:04 +01:00
Leo Hemsted
c3e56d5d2d
Revert "add DVLA organisations to API"
2017-04-20 18:21:56 +01:00
Leo Hemsted
d514d99a67
add DVLA organisations to API
...
when services are created, they'll have a dvla_org_id of 001, or
HM Government. That can be changed later using a regular update call
2017-04-19 16:31:18 +01:00
Martyn Inglis
5081ffc675
roll error jobs into finished state - unsure where to go with these as these have failed, but this leaves them nowhere to go.
...
Making them finished and the whole job can be re-done.
2017-04-18 14:40:33 +01:00
Martyn Inglis
6a0efd80ab
Add a new status to the job statuses to handle errors.
2017-04-18 11:42:21 +01:00
Leo Hemsted
8865f2db82
fix notify service user email
2017-03-30 15:05:03 +01:00
Rebecca Law
ecb63a8008
Add new job status.
...
ready to send == we have created a dvla file in S3, the job id is in the file name
sent to dvla == we have created an aggregate dvla file to send for the day and have sent the file via sftp
2017-03-10 16:33:15 +00:00
Imdad Ahad
1ccaf08003
Fix migration and small refactor
2017-03-08 09:49:47 +00:00
Imdad Ahad
19df677315
Add created_by to provider and provider history table
2017-03-03 10:54:20 +00:00
Leo Hemsted
f5511a19a2
add letter_contact_block text field to service
2017-03-02 16:42:06 +00:00
Rebecca Law
6386cb968a
Fix tests.
...
Fix copy/paste error in the history table
2017-03-02 12:12:01 +00:00
Rebecca Law
beb7fda32b
Added the provider details for DVLA.
...
The rates are a bogus number.
2017-03-02 11:42:37 +00:00
Leo Hemsted
a47672f7e3
Add current_session_id to the user model, update on login
...
when we change the last logged in time, set the current session id to
a random uuid
this way, we can compare it to the cookie a user has, and if they
differ then we can log them out
also update user.logged_in_at at 2FA rather than password check, since
that feels more accurate
2017-02-22 17:30:55 +00:00
Rebecca Law
31de10ae6f
dB script to default templates/templates_history.process_type = 'normal' and set the column to not null
2017-01-16 11:19:46 +00:00
Rebecca Law
ceb139ca28
Fix foreign key names
2017-01-13 12:29:13 +00:00
Rebecca Law
6c79ddbe41
This is the first deploy in series of deploys to give certain templates priority in processing.
...
If the template is marked as priority the notification will be sent using the `notify` queue.
The `notify` queue is a low volume queue, messages here will not be queue behind a large job and should be delivered with in a more consistent time frame.
- Added templates.process_type and templates_history.process_type column.
- Added a template_process_type table to handle the enum for templates.process_type, initial values are normal and priority
https://www.pivotaltracker.com/story/show/135429147
2017-01-13 12:14:34 +00:00