Commit Graph

5019 Commits

Author SHA1 Message Date
Dillon Kearns
ef0f091790 Make BackendTask.Http.get take an Expect, add Http.getJson and Http.post helpers. 2023-01-07 10:38:52 -08:00
Dillon Kearns
2ffea79f0b Merge requestWithOptions into a Maybe Options for BackendTask.Http.Request. 2023-01-07 10:22:10 -08:00
Dillon Kearns
55e94c3970 Update withMetadata to accept a combine function. 2023-01-07 09:56:51 -08:00
Dillon Kearns
f3170ecb81 Review fixes. 2023-01-07 09:52:12 -08:00
Dillon Kearns
89bf2b8167 Fix tests. 2023-01-07 09:48:40 -08:00
Dillon Kearns
9025b116ff Fix compiler error in test. 2023-01-06 19:31:55 -08:00
Dillon Kearns
23aa988413 Review fixes. 2023-01-06 18:24:34 -08:00
Dillon Kearns
223f2b69d5 Remove obsolete onError. 2023-01-06 18:24:15 -08:00
Dillon Kearns
33fc85b1b8
Merge pull request #7 from dillonkearns/json-data-optimization
Avoid creating unnecessary Elm Dicts by directly using JSON values fo…
2023-01-06 18:19:11 -08:00
Dillon Kearns
2abf10a468 Replace BackendTask.Http.expect*Response helpers with a more composable withMetadata expect builder. 2023-01-06 18:17:36 -08:00
Dillon Kearns
9c07ae57b8 Pass through caching options from request. 2023-01-06 12:53:48 -08:00
Dillon Kearns
b98b5bd7f3 Update docs. 2023-01-06 10:35:10 -08:00
Dillon Kearns
7b4aafa03e Fix renderer code error. 2023-01-06 10:34:57 -08:00
Dillon Kearns
9db4a351c4 Change test name. 2023-01-06 10:21:05 -08:00
Dillon Kearns
89491a9515 Use HTTP conditional requests, and fix some handling of HTTP error cases for BackendTask error paths (return the error data instead of handling them as build errors). 2023-01-06 10:03:19 -08:00
Dillon Kearns
fef2cbf6a4 Avoid creating unnecessary Elm Dicts by directly using JSON values for CLI Batch data from resolving BackendTask data. 2023-01-03 08:52:20 -08:00
Dillon Kearns
0e4c33e01b Add Exception import when needed. 2023-01-02 11:31:59 -08:00
Dillon Kearns
b1afe428e4 Update docs.json. 2023-01-02 11:04:11 -08:00
Dillon Kearns
a2a558992a Handle port-data-source errors in BackendTasks. 2023-01-02 11:02:22 -08:00
Dillon Kearns
4146ed1a11 Use raw string instead of TerminalText to let user use whichever ansi package they prefer. 2023-01-01 16:54:36 -08:00
Dillon Kearns
7f23779816 Rename DataSource -> BackendTask. 2023-01-01 14:45:54 -08:00
Dillon Kearns
5d4953a92f Use errors with more formatting. 2023-01-01 14:41:10 -08:00
Dillon Kearns
dd11836490 Remove unused. 2023-01-01 14:23:13 -08:00
Dillon Kearns
a24b3fb6e5 Remove unused. 2022-12-31 13:31:30 -08:00
Dillon Kearns
6bd91eb68e Make DataSource.Port error catchable. 2022-12-31 13:24:00 -08:00
Dillon Kearns
1f109fca7c Add missing doc comment. 2022-12-31 13:19:08 -08:00
Dillon Kearns
aeafc07d36 Update error message in test. 2022-12-31 13:14:44 -08:00
Dillon Kearns
dddaea17f2 Use Http error type in Http module. 2022-12-31 12:45:01 -08:00
Dillon Kearns
049e508fc9 Address review errors. 2022-12-31 12:15:45 -08:00
Dillon Kearns
b9902c2c8c Remove Debug.todo in example. 2022-12-31 12:00:02 -08:00
Dillon Kearns
6cff8a7000 Merge branch 'master' into backend-tasks 2022-12-31 11:46:15 -08:00
Dillon Kearns
804e9015ae Fix errors in example. 2022-12-30 18:03:43 -08:00
Dillon Kearns
0a9cfa60e6 Use reference to import alias for Exception.fromString. 2022-12-30 17:48:49 -08:00
Dillon Kearns
e5d8ada046 Remove some Debug.todo's. 2022-12-30 17:10:58 -08:00
Dillon Kearns
6c54713f02 Fix test. 2022-12-29 16:38:13 -08:00
Dillon Kearns
e65218834b Fix example. 2022-12-29 17:33:55 -07:00
Dillon Kearns
499390aeae Fix errors. 2022-12-29 14:14:08 -07:00
Dillon Kearns
ac153f6494 Fix test error. 2022-12-29 14:03:10 -07:00
Dillon Kearns
12935c577b Expose Script.Error type. 2022-12-29 13:45:46 -07:00
Dillon Kearns
18c5cb7d9e Update function name. 2022-12-29 07:36:14 -07:00
Dillon Kearns
ad42776fb2 Update docs. 2022-12-28 19:29:08 -07:00
Dillon Kearns
09e5c389b5 Update docs and fix some errors in elm-pages run. 2022-12-28 19:22:58 -07:00
Dillon Kearns
c982947c7d Make Throwable/Catchable exceptions. 2022-12-28 18:45:49 -07:00
Dillon Kearns
c5b4bfd13a
Merge pull request #1 from dillonkearns/uncached-requests
DataSource architecture changes
2022-12-26 11:36:42 -08:00
Dillon Kearns
81888ea995 Handle new Vite format in diff cleaning for tests. 2022-12-26 12:03:58 -07:00
Dillon Kearns
d78a3ca91d Add initial prototype for error type variable in DataSources. 2022-12-26 10:53:06 -07:00
Dillon Kearns
643abc0591 Increase cypress timeout duration for tests. 2022-12-22 16:04:59 -08:00
Dillon Kearns
888bfa2bc4 Upgrade to latest Vite. 2022-12-22 16:03:56 -08:00
Dillon Kearns
fa7b1a1682 Remove some more ignored files from ReviewConfig. 2022-12-22 15:26:33 -08:00
Dillon Kearns
b619970a7d Remove some ignored paths in ReviewConfig. 2022-12-22 15:22:52 -08:00