Commit graph

235 commits

Author SHA1 Message Date
LukeMathWalker c6e88e8f8e Use thiserror. 2021-05-10 09:57:49 +01:00
LukeMathWalker f0aee87a00 Layering. 2021-05-09 18:36:31 +01:00
LukeMathWalker 5f89afe095 Update tracing-bunyan-formatter. 2021-05-02 17:02:25 +01:00
LukeMathWalker faaffbbd98 Add error test. 2021-05-02 17:02:18 +01:00
LukeMathWalker c14296a34d Return 500 if email delivery fails. 2021-05-01 16:51:55 +01:00
LukeMathWalker b778d9f6e2 Return 500 if email delivery fails. 2021-05-01 16:51:38 +01:00
LukeMathWalker 80ba8ace26 Update to latest actix-web. 2021-05-01 16:19:24 +01:00
LukeMathWalker 80aa2a4575 Update to latest actix-web. 2021-05-01 16:19:09 +01:00
LukeMathWalker d05c9c9491 Use once_cell instead of lazy_static for tracing. Use custom sinks instead of filters to disable logging. 2021-05-01 15:54:39 +01:00
LukeMathWalker 77f0e49405 Use once_cell instead of lazy_static for tracing. Use custom sinks instead of filters to disable logging. 2021-05-01 15:53:57 +01:00
Luca Palmieri 517f7e4728 Fix migration script. 2021-04-28 20:42:24 +01:00
Luca Palmieri a0ed17479f Fix migration script. 2021-04-28 20:40:16 +01:00
LukeMathWalker b7ed1b4c28 cargo fmt. 2021-04-02 11:51:39 +01:00
LukeMathWalker 50798e8e67 Update db script. 2021-04-02 11:51:23 +01:00
dkulla01 ac90bcbb79
Exit if dockerized postgres is already running (#86)
This creates the postgres container with a "postgres_<timestamp>" name.
This lets us check for an existing, running, postgres container and
exit early if it already exists. It's a little more clear/explicit than
the "port 5432 already in use" error message that results from rerunning
the script, and it addresses the gotcha in footnote 30
2021-04-02 11:41:14 +01:00
Filmon Arefayne 537f2e783e
Update init_db.sh (#87)
Quote also the user variable
2021-04-02 11:40:49 +01:00
LukeMathWalker 0a6265fe60 Typo. 2021-03-13 15:08:54 +00:00
LukeMathWalker 53b3d4a6d7 Change to main values. 2021-03-13 15:08:33 +00:00
LukeMathWalker 7aaf49585d Update query file. 2021-03-13 11:14:22 +00:00
LukeMathWalker feab2630c7 Fix stage name. 2021-03-13 10:18:31 +00:00
LukeMathWalker 05a38b20cd Add base url in DO configuration. 2021-03-13 10:10:36 +00:00
LukeMathWalker c58675a5a0 Use a SQL transaction. 2021-03-13 10:08:54 +00:00
LukeMathWalker b21e9cc99c Final push. 2021-03-11 23:11:38 +00:00
LukeMathWalker ccf1d84fe9 Fix migration. 2021-03-11 22:30:22 +00:00
LukeMathWalker 915a227fd9 Migration. 2021-03-11 22:09:47 +00:00
LukeMathWalker a8f1bc9024 Generate random token. 2021-03-11 22:07:17 +00:00
LukeMathWalker 9a3420073c Add new test. 2021-03-11 21:40:39 +00:00
LukeMathWalker e820e37275 Refactor. 2021-03-11 21:14:29 +00:00
LukeMathWalker b3ad683b9a Roudntrip test. 2021-03-11 09:24:57 +00:00
LukeMathWalker 967b16b19b Get a 404. 2021-03-09 22:40:14 +00:00
LukeMathWalker 01f1d8758e Red test. 2021-03-09 21:51:11 +00:00
LukeMathWalker a631932f05 Green test. 2021-03-09 21:19:16 +00:00
LukeMathWalker 6e049bab9e Refactor. 2021-03-09 21:12:58 +00:00
LukeMathWalker 28fc5612ae Split test cases. 2021-03-08 23:02:45 +00:00
LukeMathWalker 123e7f139c Fix. 2021-03-08 23:02:39 +00:00
LukeMathWalker 3f3c73a93e Refactor subscribe. 2021-03-08 22:54:17 +00:00
LukeMathWalker bdddc29ac1 Confirmation link (static). 2021-03-08 22:40:58 +00:00
LukeMathWalker 2ac9ccbe97 Red test (confirmation link). 2021-03-08 22:10:23 +00:00
LukeMathWalker 310ffb01a5 Send static confirmation email. 2021-03-08 21:41:34 +00:00
LukeMathWalker f4b066b487 Red test. 2021-03-08 21:10:59 +00:00
LukeMathWalker 0ad3b4429a Last migration. 2021-03-08 20:13:47 +00:00
LukeMathWalker 70334b9fc4 Make status mandatory. 2021-03-07 18:53:52 +00:00
LukeMathWalker d2fd3fe1fa Populate status column. 2021-03-07 18:53:45 +00:00
LukeMathWalker 7e50aef1cd Add new column as optional. 2021-03-07 18:27:54 +00:00
LukeMathWalker d129a77dea Start developing chapter 7, part 2. 2021-03-07 18:17:41 +00:00
mdtro f0d346f4ad
Correcting chapter 5 link in README.md (#54)
The link to the Chapter 5 snapshot was broken. It referred to `root-chapter-05` while the actual link has the last _hyphen_ omitted (`root-chapter05`).
2021-03-07 08:09:09 +00:00
LukeMathWalker fd3d3fd92b Merge remote-tracking branch 'origin/main' into main 2021-02-15 21:26:50 +00:00
LukeMathWalker 3359c5f921 Fix failing test. 2021-02-15 21:26:43 +00:00
Moises Marquez d89c2a36c6
Cache cargo dependencies (#45) 2021-02-15 09:21:49 +00:00
Patrick Barrett cc340b168e
use locked dependencies when installing sqlx-cli (#47)
This change is needed to workaround an incompatibility in the latest
release of a deep dependency that causes a conflict in bitvec, see:
https://github.com/launchbadge/sqlx/issues/1048
2021-02-15 09:18:48 +00:00