Rebecca Law
3e2b8190b9
- Added a scheduled task to create or update billing for the month, yesterday is used to calculate the start and end date for the month.
...
- The new task has not been added to the beat application yet.
- Added an updated_at column to the monthly billing table, we may want to only calculate from the last updated date rather than the entire month.
2017-07-24 15:13:18 +01:00
Rebecca Law
793248a74f
Fix data migration merge conflict
2017-07-19 15:47:12 +01:00
Rebecca Law
bc4afb25ae
Merge branch 'master' into month-billing-table
2017-07-19 14:33:19 +01:00
Rebecca Law
4b05c32b62
Create a new table to warehouse the monthly billing numbers
2017-07-13 17:22:11 +01:00
Imdad Ahad
555dac76a8
Remove old notification status column
2017-07-12 16:24:18 +01:00
Ken Tsang
f53c0cfb8a
Rename migration script
2017-07-12 12:05:03 +01:00
Ken Tsang
1ca59c4b44
Renamed migration script
2017-07-12 12:01:50 +01:00
Ken Tsang
3b1f229384
Renamed migration script and refactor code
2017-07-12 12:01:50 +01:00
Ken Tsang
a6df96213b
Update model and migration script
2017-07-12 12:01:50 +01:00
Rebecca Law
9bf1efd16a
Fix merge conflict with db migration script
2017-07-10 15:44:01 +01:00
Rebecca Law
53507314ea
Merge branch 'master' into drop-template_stats-table
2017-07-10 15:35:49 +01:00
Rebecca Law
8a01a76e33
Remove the archived table template_statistics. The last time the table we updated was August 30 2016, it's safe to say we are done with it.
...
I updated the InboundSms and TemplateRedacted model to include an index in the db.
Dropped service_permissions.updated_at column since we are not auditting the table
2017-07-10 14:43:46 +01:00
Imdad Ahad
ae388a3cfc
Make Noti and NotiHis status column nullable:
...
This is in preparation for deprecating this old column
2017-07-10 12:09:02 +01:00
Chris Hill-Scott
ce96d59cf4
Add OPG to letter organisations
...
Logo was added here:
https://github.com/alphagov/notifications-template-preview/pull/19
2017-07-06 12:31:02 +01:00
Chris Hill-Scott
1bd5e88979
Add more organisations for letter branding
...
> The logos are now ready to go on DVLA side- so far we've got:
> 001 = HM Government
> 002 = OPG
> 003 = DWP
> 004 = GEO
2017-07-06 12:27:55 +01:00
Leo Hemsted
c24edcf388
add historical redaction data
...
every current template gets a row in the template_redacted table -
this inserts one for any template that doesn't already have a row,
with redact set to false, the user set to NOTIFY_USER since it was
just a script, and the updated_at set to the time the script is run
2017-06-29 12:54:48 +01:00
Leo Hemsted
29fc81090e
add template personalisation redaction
...
If passing in `redact_personalisation` to the template update endpoint,
we should mark that template permanently as redacted - this means that
we won't ever return the personalisation for any notifications for it.
This is to be used with templates containing one time passwords, 2FA
codes or other sensitive information that you may not want service
workers to be able to see.
This is implemented via a separate table, `template_redacted`, which
just contains when the template was redacted.
2017-06-28 15:53:08 +01:00
Rebecca Law
096b1f8b04
Remove name from organisation
2017-06-26 14:03:02 +01:00
Rebecca Law
49dc93d0fd
Revert "Remove name from organisation"
2017-06-26 13:52:01 +01:00
Rebecca Law
9f2b806b18
Remove name from organisation
2017-06-26 13:10:36 +01:00
Rebecca Law
4fe62ac121
Add organisation values for the Enterprise Europe Network.
2017-06-26 11:48:04 +01:00
Leo Hemsted
9f307fd1c5
add created_by to notifications
...
this is so one-off notifications can be tied to a user
(jobs have a created_by, and api notifications don't make sense
to have one)
2017-06-20 11:51:17 +01:00
Chris Hill-Scott
24b9e7b059
Unpick migration conflict
...
Inbound provider and Dial-a-Ride migrations happened at the same time
and got the same revision numbers.
This commit puts DAR after inbound provider.
2017-06-20 10:56:50 +01:00
Chris Hill-Scott
92c92ba368
Merge pull request #1035 from alphagov/tfl-dar
...
Add organisation for TFL Dial a Ride
2017-06-20 10:47:26 +01:00
Rebecca Law
6202da7dea
Update model to remove the string length restriction.
...
Moved logic to the dao from the endpoint.
2017-06-19 12:25:05 +01:00
Rebecca Law
effb99dca8
Add fetch request for service inbound api.
...
Add unique constraint on service_id for service_inbound_api.
2017-06-15 16:19:12 +01:00
Chris Hill-Scott
87565c1e60
Add organisation for TFL Dial a Ride
...
References image added in:
- [ ] https://github.com/alphagov/notifications-admin/pull/1321
2017-06-15 14:59:36 +01:00
Rebecca Law
828d5cd493
New table to store the inbound api information for a service. The table is versioned.
...
There is a new endpoint to create the inbound api and one to update it.
2017-06-15 11:32:51 +01:00
Rebecca Law
b186cad046
Add a new table to store the api information for a service inbound sms message.
...
Including:
- url to push the inbound sms to
- bearer_token to be added to the header of the request.
The services will be expected to manage these properties.
2017-06-13 15:27:13 +01:00
Martyn Inglis
9bbb3c6a56
Merge branch 'master' into firetext-inbound-sms-not-null-provider
...
Conflicts:
tests/app/db.py
2017-06-09 11:56:32 +01:00
Rebecca Law
7b58886d04
Update the new job_statistics columns with the right values.
2017-06-08 16:24:16 +01:00
Rebecca Law
0cee176d8b
Fix merge conflicts
2017-06-08 15:24:18 +01:00
Rebecca Law
4e931733fd
Merge branch 'master' into ken-migrate-default-service-permissions
2017-06-08 15:21:08 +01:00
Rebecca Law
1b4097cb16
Add three new columns to job_statistics for sent, delivered and failed.
...
A job only ever has one notification type.
This is the first deploy, where the columns are added and populated.
Next a data migration will happen to populate these new columns for the older jobs that do not have the values set.
Then we stop populating the old columns and remove them.
This refactoring of the table structure will make the queries to the table much easier to handle.
2017-06-07 11:15:05 +01:00
Rebecca Law
d488c592f4
Fix conflict in db migration script
2017-06-06 10:59:01 +01:00
minglis
e3fecd1d57
Merge pull request #1016 from alphagov/data-gov-uk
...
Add data.gov.uk to the list of organisations
2017-06-06 10:25:05 +01:00
Chris Hill-Scott
6b01cfd5b5
Add data.gov.uk to the list of organisations
...
We need to send an email with data.gov.uk branding.
The image for the logo doesn’t exist yet, but doing this migration so
we’re ready when it the logo does exist.
2017-06-05 16:22:02 +01:00
Martyn Inglis
21a5f01804
Not null in own PR
2017-06-05 13:10:54 +01:00
Martyn Inglis
687b8443d1
Merge branch 'populate_provider_column' into firetext-inbound-sms-not-null-provider
2017-06-05 11:57:39 +01:00
Martyn Inglis
efb045fc68
Removed pre-populate column to run after migration
2017-06-05 11:55:13 +01:00
Martyn Inglis
b296e736f2
Reorder the migrations.
2017-06-05 11:51:30 +01:00
Martyn Inglis
f15d235d1e
Merge branch 'master' into firetext-inbound-sms
2017-06-05 11:33:53 +01:00
Martyn Inglis
400096520d
Not null the provider column on the inbound SMS table.
2017-06-02 16:51:27 +01:00
Martyn Inglis
199c43c507
Migration script to populate the provider.
...
- initial build of this ONLY support MMG so we can assume that all existing entries are all MMG, so any nulls == MMG.
- This PR will put in fire text so not so safe to keep doing this back and forward.
2017-06-02 16:49:11 +01:00
Martyn Inglis
012f8d2675
Adds provider onto the inbound sms table so we know where this came from.
2017-06-02 16:37:57 +01:00
Rebecca Law
9d80bdc70f
Merge branch 'master' into letters-billing-table
...
Conflicts:
app/models.py
2017-06-02 14:47:28 +01:00
Martyn Inglis
3df868823d
Fixed DB migration order
2017-06-01 15:58:15 +01:00
Martyn Inglis
c57e2a6894
Merge branch 'master' into inbound-sms
...
Conflicts:
app/notifications/receive_notifications.py
tests/app/notifications/test_receive_notification.py
2017-06-01 15:56:33 +01:00
Leo Hemsted
ab50a3557e
fix versions
2017-06-01 13:18:56 +01:00
Leo Hemsted
3e47519045
Merge pull request #1006 from alphagov/revert-1001-revert-988-non-null-again
...
Revert "Revert "Remove nulls from sms_sender""
2017-06-01 13:14:03 +01:00