Commit graph

213 commits

Author SHA1 Message Date
LukeMathWalker
03edd1e3b6 Missing auth test. 2021-08-14 19:35:46 +01:00
LukeMathWalker
e0c67b8747 Fix coverage job 2021-08-01 21:12:05 +01:00
LukeMathWalker
25dc5d2d5c Add chapter 9 to the README. 2021-08-01 19:21:57 +01:00
LukeMathWalker
9e75751b6b Remove Row. 2021-08-01 15:17:47 +01:00
LukeMathWalker
d54f33858d End of chapter. 2021-08-01 14:57:02 +01:00
LukeMathWalker
d7999e7241 Using two types to fetch. 2021-08-01 11:11:56 +01:00
LukeMathWalker
e9d4b14dcf Add error. 2021-07-28 09:35:34 +01:00
LukeMathWalker
5b87b2449d Add query. 2021-07-27 09:09:20 +01:00
LukeMathWalker
32c03a55c5 Refactor tests. 2021-07-25 17:37:00 +01:00
LukeMathWalker
83826d0166 Add handler. 2021-07-25 16:40:01 +01:00
LukeMathWalker
16ba42dccf Add handler. 2021-07-22 08:31:57 +01:00
LukeMathWalker
2e644faf9d Name helper mock. 2021-07-21 22:21:23 +01:00
LukeMathWalker
725280372d Set expectation on helper mock. 2021-07-21 21:59:32 +01:00
LukeMathWalker
9752cfc71e Use scoped mock. 2021-07-21 21:41:13 +01:00
LukeMathWalker
5299ef1f1d First integration tests for newsletter delivery. 2021-07-17 19:43:47 +01:00
LukeMathWalker
c1caed5404 Fix name conflict with name from the bunyan format. 2021-07-16 09:02:45 +01:00
LukeMathWalker
b3ed5fd21e Fix environment variable for application URL on DO. 2021-07-14 09:32:16 +01:00
LukeMathWalker
6ffdae5742 Use pinned images in Dockerfile 2021-07-11 19:28:05 +01:00
LukeMathWalker
bc22cdca68 Update to actix-web 4.0.0-beta.8. 2021-07-09 08:42:43 +01:00
Luca Palmieri
0c989497fc Proactively verify if psql and sqlx are installed before moving forward with script execution. 2021-07-05 09:00:04 +02:00
Luca Palmieri
6e31366fb2 Use the latest version of sqlx-cli, 0.5.5.
0.5.1 does not work anymore due to a conflict between a constant added to the standard library and a crate in our dependency tree.
2021-07-05 08:05:02 +02:00
Luca Palmieri
2654151d7d Fix image in README. 2021-06-06 14:21:35 +01:00
Luca Palmieri
cf8eb3bbdb Add licensing information. 2021-06-06 14:11:19 +01:00
LukeMathWalker
7f71a5c815 Update README. 2021-05-13 17:12:14 +01:00
LukeMathWalker
97f5c4d91a Merge chapter 8 2021-05-13 17:11:15 +01:00
LukeMathWalker
7b64134fe7 Refactor error handling for confirm handler. 2021-05-12 22:33:43 +01:00
LukeMathWalker
2b3dae3a6a Remove unnecessary log statements. 2021-05-12 22:12:41 +01:00
LukeMathWalker
4e04ade2ed Use anyhow. 2021-05-12 09:08:38 +01:00
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