Carlo Costino
86fbaee27d
Adjust positional arguments flagged by flake8-bugbear
...
The new release of flake8-bugbear is starting to flag positional argument unpacking that comes after keyword arguments in function calls as a style warning that fails. This is a good thing to catch because it can lead to unexpected side effects with function arguments and/or errors thrown by Python.
See the following links for more details:
- https://stackoverflow.com/questions/58961715/python-value-unpacking-order-in-method-parameters
- https://github.com/python/cpython/issues/82741
This changeset fixes a couple of instances where the positional argument unpacking was happening after keyword arguments were being provided.
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov >
2023-11-29 09:39:44 -05:00
Kenneth Kehl
6f9e55cba0
debug and etc
2023-11-10 11:08:52 -08:00
Kenneth Kehl
381315d18a
fix flake8
2023-11-02 14:31:12 -07:00
Kenneth Kehl
5f41eb2ccc
fix flake8
2023-11-02 14:26:11 -07:00
Kenneth Kehl
5da110ded4
merge from main
2023-11-02 14:13:43 -07:00
Andrew Shumway
83767b8ba8
remove import
2023-11-02 16:24:19 -04:00
Andrew Shumway
81f4b1436d
Add notif count and history count together
2023-11-02 16:24:19 -04:00
Andrew Shumway
2fbda1cd0c
Initial front end count steps
2023-11-02 16:24:19 -04:00
Kenneth Kehl
1d1e7747d0
cleanup login.gov work
2023-10-19 12:22:36 -07:00
Kenneth Kehl
8c9721d8e2
notify-api-412 use black to enforce python coding style
2023-08-25 09:12:23 -07:00
Carlo Costino
9e609efa1c
Remove webauthn hooks
...
This changeset removes webauthn from the Notify.gov admin app. We are not using webauthn at all in our implementation and will be looking at an entirely different authentication system in the near future.
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov >
2023-08-14 16:59:38 -04:00
Kenneth Kehl
dc342385ce
notify-admin-641 let platform admins export listing of all users ( #647 )
...
Co-authored-by: Kenneth Kehl <@kkehl@flexion.us >
Co-authored-by: stvnrlly <steven.reilly@gsa.gov >
2023-07-26 12:08:55 -04:00
Kenneth Kehl
00edf5d023
merge from main
2023-07-13 08:15:34 -07:00
Steven Reilly
13d0e46b52
blunt rename of org ( #620 )
2023-07-12 12:09:44 -04:00
Kenneth Kehl
c165589d4c
notify-api-340 remove daily limit
2023-07-11 12:37:27 -07:00
Kenneth Kehl
faf0c9c629
code review feedback
2023-07-03 11:43:16 -07:00
Kenneth Kehl
4056a5d0ca
fix issue with 'process_type'
2023-07-03 10:15:01 -07:00
Andrew Shumway
a1484c62bb
Requested changes in PR review
2023-06-01 15:40:50 -06:00
Andrew Shumway
bd798e78b6
Added global remaining daily messages across services to ui
2023-06-01 10:44:13 -06:00
Kenneth Kehl
54abfb3a4d
remove components related to MOU and agreement ( #476 )
...
Co-authored-by: Kenneth Kehl <@kkehl@flexion.us >
2023-04-28 14:08:12 -04:00
Ryan Ahearn
a42617f776
Add logging around auth{entication,orization} calls
2023-04-26 11:25:24 -04:00
Kenneth Kehl
1a2bd34ccb
merge from main
2023-04-20 11:19:55 -07:00
Kenneth Kehl
65ea248429
#446 remove crown
2023-04-13 07:13:04 -07:00
Ryan Ahearn
de668d7aba
Remove contact-list references from code
2023-04-12 15:35:14 -04:00
stvnrlly
944715ac46
big commit with letters removal
2022-12-05 15:33:44 -05:00
stvnrlly
a2b58c926e
more test fixes & letter trimming
2022-11-22 22:50:47 -05:00
stvnrlly
ca1897973a
test time fixes and bonus letter removal
2022-11-22 17:03:42 -05:00
stvnrlly
f16b5dd1c4
remove broadcast-related code
2022-10-04 03:04:13 +00:00
jimmoffet
69abec0bb3
change dashboard test to reflect demo changes to uploads view
2022-09-09 17:02:48 -07:00
jimmoffet
68e6efdad0
remove redis debug config var
2022-09-08 09:07:54 -07:00
jimmoffet
1f7fa07a79
finally fix redis
2022-09-07 21:32:33 -07:00
jimmoffet
dad051a662
2767 passing
2022-08-05 00:25:03 -07:00
James Moffet
1a204ae872
remove extra logs
2022-07-26 11:39:00 -07:00
James Moffet
4c25a81004
disable cache until we can fix on cloud deployment
2022-07-26 11:17:43 -07:00
James Moffet
ec86fe8d23
clean up
2022-07-19 18:59:48 -07:00
James Moffet
e9302552ee
clean up
2022-07-19 18:58:38 -07:00
James Moffet
6c60183a10
delete log
2022-07-19 18:49:05 -07:00
James Moffet
50e660a73f
devcontainer config
2022-07-19 18:23:48 -07:00
Ben Thorner
4ab7e3ceec
Rename billing API methods to be recognisable
...
I struggled to distinguish which was which as neither mentioned if
the data they returned was monthly or annual.
2022-05-03 16:00:57 +01:00
Leo Hemsted
b3f5bb6435
add new daily sms provider volumes report
...
nearly identical to the daily-volumes-report but sms only, and split up
by provider
2022-04-11 14:40:31 +01:00
Rebecca Law
de46fb6477
Merge pull request #4183 from alphagov/volume_reports
...
Report for total notifications sent per day for each channel.
2022-03-09 15:15:03 +00:00
Chris Hill-Scott
50015c3125
Pass admin URL to API for registration email
...
This follows the pattern for invite emails where the admin app tells the
API which domain to use when generating the link.
2022-03-07 15:11:50 +00:00
Ben Thorner
a5d18cf1a0
Simplify clearing the template cache
...
This is more consistent and more visible than a direct call to a
function. It makes use of the new decorator added in response to [^1].
[^1]: https://github.com/alphagov/notifications-admin/pull/4162#pullrequestreview-896208092
2022-03-07 14:42:55 +00:00
Rebecca Law
971cb745c9
Report for total notifications sent per day for each channel.
...
Daily volumes report: total volumes across the platform aggregated by whole business day (bst_date)
Volumes by service report: total volumes per service aggregated by the date range given.
NB: start and end dates are inclusive
2022-03-07 14:30:11 +00:00
Ben Thorner
8aabaf1f49
Standardise when we clear template cache
...
This is consistent with all other methods: we clear the cache after
the actual change, not before it.
Since the new version of -utils, we're now catching redis exceptions
on delete, so this change has little effect on behaviour.
2022-03-07 13:54:01 +00:00
Ben Thorner
3f2b760efb
Remove redundant deletion decorators
...
These are superseded by the "_delete_template_cache_for_service"
call in each of these methods.
2022-03-07 13:54:00 +00:00
Ben Thorner
81d9c73543
Bump -utils to 55.0.0
...
This renames "delete_cache_keys_by_pattern" to match the new method
name, which will also catch exceptions if Redis is down [1].
Note that this also includes a change to RecipientCSV [2], which has
no effect because the new default is the same as the old behaviour.
[1]: https://github.com/alphagov/notifications-utils/pull/949
[2]: https://github.com/alphagov/notifications-utils/pull/947/files#diff-a8a994bf655634f89dc7439880708b4ff0d780ac1bd8033827d8aaa2692a8e0fR373
2022-03-07 13:53:57 +00:00
Chris Hill-Scott
70186dbe9f
Pass admin URL to API when resetting password
...
This follows the pattern for invite emails where the admin app tells the
API which domain to use when generating the link.
2022-02-02 16:55:44 +00:00
Katie Smith
5b658d924c
Tweak and add test for OrganisationsClient.remove_user_from_organisation
...
This stops adding the current user to the data sent to the API when
removing a user from an organisation. API only needs to know the
organisation_id and the id of the user we want to remove from
the organisation, so we don't need to pass through the id of the
current user too.
The other change made is to clear the user cache of the user who has
been removed from the org. We don't need to clear any of the organisation
caches, since these values don't contain lists of users for the orgs.
2022-01-13 14:08:37 +00:00
Chris Hill-Scott
b998b6bb20
Remove methods for checking service/org name uniqueness
...
We don’t use these now – instead we try to update the name and see if
it works or not.
2022-01-13 10:16:07 +00:00