Rebecca Law
123b0ead3a
Replaced first queries with one queries, which throws a NoResultFound.
...
Able to remove many of the None checks as a result of this.
Fixed the tests were needed.
2016-03-11 15:34:20 +00:00
Martyn Inglis
976a4c06e3
Renamed some files and fixed a bug on deleting the failed notifications
2016-03-10 09:34:27 +00:00
Martyn Inglis
c8a5366484
Scheduled tasks to clean up the database
...
- tasks run hourly
- uses celery beat to schedule the tasks
4 new tasks
- delete verify codes (after 1 day)
- delete invitations (after 1 day)
- delete successful notifications (after 1 day)
- delete failed notifications (after 7 days)
Delete methods in the DAO classes
2016-03-09 17:46:01 +00:00
Rebecca Law
a2b1dc0432
Merge pull request #115 from alphagov/accept-invite
...
[WIP] Start of api for accepting invite.
2016-03-01 15:57:52 +00:00
Adam Shimali
3b66745677
[WIP] Start of api for accepting invite.
2016-03-01 14:13:38 +00:00
Rebecca Law
98c9ba14f7
New endpoint to update invited user.
...
Can be used to update status on invited user.
2016-03-01 13:33:20 +00:00
Adam Shimali
59aec1939c
[WIP] invited user now has comma separated permission values
...
stored against it so that user can be created with correct
permissions.
2016-02-29 14:05:02 +00:00
Adam Shimali
99c9cd608c
[WIP] changed dao query to use .first and return specific not found
...
error message from rest view method.
2016-02-25 12:13:25 +00:00
Adam Shimali
883ad02c25
[WIP] added dao and rest endpoint for retrieving invited users
...
by service and by id.
2016-02-25 11:22:36 +00:00
Adam Shimali
e6fe10cbdc
[WIP] added endpoint and dao to create invites for users.
...
Droped token as later code to send email invite can generate
timebased url to send to user. That can then be checked
against configurable time threshold for expiry. Therefore
no need to store a token.
2016-02-24 14:18:56 +00:00