Commit Graph
150 Commits
Author SHA1 Message Date
ccostino bcd872b492 Merge pull request #1546 from GSA/notify-admin-2180
add endpoint for 'recent' notifications
2025-02-27 11:16:21 -05:00
Kenneth Kehl cd8564204f remove pytz remnants 2025-02-24 10:32:39 -08:00
Kenneth Kehl b1712964a8 remove pytz remnants 2025-02-24 10:18:33 -08:00
Kenneth Kehl dae0f9cf6d fix test 2025-01-31 13:59:08 -08:00
Kenneth Kehl 048126caca fix test 2025-01-31 13:49:53 -08:00
Kenneth Kehl aefa66baea fix test 2025-01-31 13:33:58 -08:00
Kenneth Kehl 68ddbf7775 fix test 2025-01-31 13:01:10 -08:00
Kenneth Kehl e755459041 fix test 2025-01-31 12:49:07 -08:00
Kenneth Kehl b5b7885ce4 fix test 2025-01-31 12:30:47 -08:00
Kenneth Kehl c266cdaefe update to support status dropdown 2025-01-31 12:01:43 -08:00
Kenneth Kehl b566119c8f update to support status dropdown 2025-01-31 11:51:24 -08:00
Kenneth Kehl 7e3bf20477 update to support status dropdown 2025-01-31 11:40:44 -08:00
Kenneth Kehl 08211d211d fix test 2025-01-30 16:51:18 -08:00
Kenneth Kehl 2fbf837168 fix test 2025-01-30 16:23:39 -08:00
Kenneth Kehl 88d1b0ef0f fix test 2025-01-30 16:09:49 -08:00
Kenneth Kehl 68f1f97a94 fix test 2025-01-30 16:01:55 -08:00
Kenneth Kehl 10dee6cdd3 fix test 2025-01-30 15:52:50 -08:00
Kenneth Kehl 343383e6e0 fix test 2025-01-30 15:44:22 -08:00
Kenneth Kehl 0d032cfeec fix test 2025-01-30 15:35:18 -08:00
Kenneth Kehl a3fe9e24bf fix test 2025-01-30 15:22:01 -08:00
Kenneth Kehl 6d82567b0e fix test 2025-01-30 14:52:48 -08:00
Kenneth Kehl 2dc07b9cee fix test 2025-01-30 14:41:14 -08:00
Kenneth Kehl 78b5f90f67 fix test 2025-01-30 14:21:48 -08:00
Kenneth Kehl dd9c47e151 add endpoint for 'recent' notifications 2025-01-30 13:34:44 -08:00
Kenneth Kehl 5409c2a183 down to line 179 2024-10-16 12:32:23 -07:00
Kenneth Kehl 905df17f65 remove datetime.utcnow() 2024-05-23 13:59:51 -07:00
Kenneth Kehl b777249b6f merge from main 2024-03-01 13:50:09 -08:00
Cliff Hill 06d1e0236f String cleanup complete.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-02-28 12:58:23 -05:00
Cliff Hill e9f9a3c6f1 Lots more cleanup.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-02-28 12:58:23 -05:00
Cliff Hill 43a8b6539f More fixes, removing literal "created" from code.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-02-28 12:58:22 -05:00
Cliff Hill cf1db4dbf4 Cleaning house a bit.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-02-28 12:44:21 -05:00
Cliff Hill 64adb09182 More stuff done.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-02-28 12:44:21 -05:00
Cliff Hill e0b9ac0827 Even more cleanup.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-02-28 12:43:34 -05:00
Cliff Hill 8c6046b03b Cleaning up tests.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2024-02-28 12:43:33 -05:00
Kenneth Kehl 6dc9828663 fix tests 2024-01-22 10:55:09 -08:00
Kenneth Kehl ed3a356ad1 merge from main and fix some tests 2024-01-19 08:58:24 -08:00
Kenneth Kehl c13ed73d23 substitute phone numbers back in when sending data to reports 2024-01-17 09:04:04 -08:00
Kenneth Kehl 937dd77f4f fix some tests 2023-11-03 10:27:45 -07:00
Kenneth Kehl 1ecb747c6d reformat 2023-08-29 14:54:30 -07:00
Kenneth Kehl 08c1ad75c8 notify-260 remove server-side timezone handling 2023-05-10 08:39:50 -07:00
Ryan Ahearn e07b596857 Remove contact list db, dao, and s3 code 2023-04-12 15:01:24 -04:00
Steven Reilly ff4190a8eb Remove letters-related code (#175)
This deletes a big ol' chunk of code related to letters. It's not everything—there are still a few things that might be tied to sms/email—but it's the the heart of letters function. SMS and email function should be untouched by this.

Areas affected:

- Things obviously about letters
- PDF tasks, used for precompiling letters
- Virus scanning, used for those PDFs
- FTP, used to send letters to the printer
- Postage stuff
2023-03-02 20:20:31 -05:00
stvnrlly 9e7ee1c0f8 migrate bst_date to local_date 2022-11-21 11:49:59 -05:00
stvnrlly 3528bd37e1 update time handling for more tests 2022-11-10 16:54:48 -05:00
Ben Thorner 0312e2a528 Split generating authorization headers by type
In response to [1].

[1]: https://github.com/alphagov/notifications-api/pull/3300#discussion_r681653248
2021-08-04 15:13:52 +01:00
Ben Thorner a91fde2fda Run auto-correct on app/ and tests/ 2021-03-12 11:45:45 +00:00
Chris Hill-Scott 3b0b96834d Do extra code style checks with flake8-bugbear
Flake8 Bugbear checks for some extra things that aren’t code style
errors, but are likely to introduce bugs or unexpected behaviour. A
good example is having mutable default function arguments, which get
shared between every call to the function and therefore mutating a value
in one place can unexpectedly cause it to change in another.

This commit enables all the extra warnings provided by Flake8 Bugbear,
except for:
- the line length one (because we already lint for that separately)
- B903 Data class should either be immutable or use `__slots__` because
  this seems to false-positive on some of our custom exceptions
- B902 Invalid first argument 'cls' used for instance method because
  some SQLAlchemy decorators (eg `declared_attr`) make things that
  aren’t formally class methods take a class not an instance as their
  first argument

It disables:
- _B306: BaseException.message is removed in Python 3_ because I think
  our exceptions have a custom structure that means the `.message`
  attribute is still present

Matches the work done in other repos:
- https://github.com/alphagov/notifications-admin/pull/3172/files
2020-12-22 16:26:45 +00:00
Chris Hill-Scott 10e1fe6902 Revert "Don’t return jobs sent from contact lists"
This reverts commit 061c0a0050.
2020-12-01 15:18:32 +00:00
Chris Hill-Scott 061c0a0050 Don’t return jobs sent from contact lists
Now that we’re grouping jobs sent from contact lists within their
parent, they shouldn’t also be listed on the jobs page at the top level.
2020-12-01 11:56:34 +00:00
Chris Hill-Scott 4cee47da68 Add more tests for scheduled job stats
Ensures we don’t count jobs that are in a different status, or belong to
another service.
2020-09-28 13:15:39 +01:00