Commit Graph

178 Commits

Author SHA1 Message Date
Dillon Kearns
0c4f1c3a4d Pass in flag in test. 2021-08-09 19:52:56 -07:00
Dillon Kearns
e218a480a5 Fix test output. 2021-08-09 17:32:54 -07:00
Dillon Kearns
bbe33d4b52 Update examples and tests. 2021-08-01 10:25:38 -07:00
Dillon Kearns
b78f8c008b Rename types in ApiRoute module. 2021-07-30 15:35:11 -07:00
Dillon Kearns
9c1b1196b8 Fix reference in test. 2021-07-30 15:23:36 -07:00
Dillon Kearns
8575d56284 Rename internal module. 2021-07-30 15:13:32 -07:00
Dillon Kearns
2a2872e6fa Update docs and move HTTP body functions out of DataSource and into DataSource.Http. 2021-07-29 15:57:44 -07:00
Dillon Kearns
74bad44b7b Remove log in test case. 2021-07-29 12:37:32 -07:00
Dillon Kearns
820198bbc2 Address review errors. 2021-07-29 10:03:42 -07:00
Dillon Kearns
6261f79c9c Remove obsolete test case since HTTP errors are now sent from NodeJS, not Elm. 2021-07-29 09:40:18 -07:00
Dillon Kearns
e97dc19c77 Fix more tests. 2021-07-29 09:38:46 -07:00
Dillon Kearns
2e9a3b219a Add test helper for checking outgoing requests. 2021-07-29 09:32:51 -07:00
Dillon Kearns
dfe6330abf Use ports for HTTP requests in unit tests. 2021-07-29 09:17:36 -07:00
Dillon Kearns
8ece503f7f elm-review fix. 2021-07-28 09:45:45 -07:00
Dillon Kearns
8ad4444fac Use hashing for a test case. 2021-07-28 09:00:34 -07:00
Dillon Kearns
83128c5112 Update tests for single-item flow (not batched page build runs). 2021-07-28 08:06:05 -07:00
Dillon Kearns
f6afc894a3 Fix some compiler errors. 2021-07-27 10:41:18 -07:00
Dillon Kearns
7ce73cc3e3 elm-review fixes. 2021-07-27 09:39:06 -07:00
Dillon Kearns
1b77273cd9 Remove unused mode flag. 2021-07-07 21:28:58 -07:00
Dillon Kearns
e6c2031737 Rename Page builder functions. 2021-06-24 10:05:16 -07:00
Dillon Kearns
aa0381c13d Fix bug where dev server didn't perform some andThen http requests. 2021-06-23 08:22:14 -07:00
Dillon Kearns
35def235b8 Successfully merge two distilled values when they have the same key and same encoded JSON. 2021-06-18 09:00:54 -07:00
Dillon Kearns
fad00c6186 elm-review fixes. 2021-06-17 11:57:42 -07:00
Dillon Kearns
e63678c490 Send errors on non-unique distill keys. 2021-06-17 11:55:22 -07:00
Dillon Kearns
dd07e2ead1 Add distill function. 2021-06-17 10:06:13 -07:00
Dillon Kearns
b809af6e45 Add DataSource.validate. 2021-06-17 10:06:13 -07:00
Dillon Kearns
60eb206470 Fix test. 2021-06-08 15:17:56 -07:00
Dillon Kearns
4af54e4ad5 Fix test. 2021-06-08 10:36:05 -07:00
Dillon Kearns
7a6ca22ad1 Handle 404 pages for found routes but not prerendered, and don't resolve DataSource if it's not pre-rendered. 2021-06-08 09:54:10 -07:00
Dillon Kearns
4c0303d942 Add missing field in test. 2021-06-06 11:11:34 -07:00
Dillon Kearns
03f8ee359f Add new rule. 2021-06-03 17:59:58 -07:00
Dillon Kearns
819dd0d5e2 Add new rule. 2021-06-03 17:57:57 -07:00
Dillon Kearns
ee874f3ba0 Address review fixes. 2021-06-03 17:14:25 -07:00
Dillon Kearns
13ee95ad84 Update error message. 2021-05-31 21:51:31 -07:00
Dillon Kearns
8b4144ef15 Handle merging stripped JSON data from multiple data sources. 2021-05-31 20:59:30 -07:00
Dillon Kearns
99f00c1d85 Fix test. 2021-05-24 11:40:36 -07:00
Dillon Kearns
ab65e84eac Remove PagePath module. 2021-05-23 15:40:01 -07:00
Dillon Kearns
40fbf3a14f Fix test. 2021-05-23 10:53:43 -07:00
Dillon Kearns
5a88903f4e Fix test. 2021-05-23 10:44:39 -07:00
Dillon Kearns
7bcc276929 Add missing argument in test. 2021-05-19 07:58:37 -07:00
Dillon Kearns
075a886adf Add missing argument in test. 2021-05-14 19:38:10 -07:00
Dillon Kearns
ffcaabca77 Remove Site.apiRoutes, since it now lives in Api.elm. 2021-05-07 10:09:04 -07:00
Dillon Kearns
6fab76ab96 Rename ApiHandler -> ApiRoute. 2021-05-06 07:26:21 -07:00
Dillon Kearns
b16f32c1fa Rename field. 2021-05-06 07:16:05 -07:00
Dillon Kearns
4d175558ce Remove obsolete generateFiles. 2021-05-06 07:14:49 -07:00
Dillon Kearns
16b15bf4a4 Wire in initial handling for api requests. 2021-05-04 10:37:37 -07:00
Dillon Kearns
7f59d64151 Remove unused import. 2021-04-23 16:25:12 -07:00
Dillon Kearns
9c09b18812 Fix test failure. 2021-04-23 16:24:26 -07:00
Dillon Kearns
521c3c0cc7 Rename StaticData -> Data. 2021-04-23 16:22:23 -07:00
Dillon Kearns
20f37a4069 Remove obsolete sourceIcon. 2021-04-23 08:47:11 -07:00