Commit Graph

281 Commits (eb618e0ccdc230d6d6fa0004816edf729b4a65f5)

Author SHA1 Message Date
Tomáš Mládek 6fdc3e2f48
add `join` queries to the language (fixes #3) 2022-04-16 00:55:09 +02:00
Tomáš Mládek 459eede174
...
reformat
2022-04-15 22:43:40 +02:00
Tomáš Mládek eec4f96293
reorganize query code in preparation for lang upgrade 2022-04-15 20:35:26 +02:00
Tomáš Mládek 3b82b0ee69
remove play button overlay on video thumbnails 2022-04-09 21:37:10 +02:00
Tomáš Mládek ab345bf50b
replace `???` with actual errors 2022-04-02 22:12:51 +02:00
Tomáš Mládek 1a05157a9d
fix and/or expressions generating incorrect sql 2022-03-30 12:29:52 +02:00
Tomáš Mládek 8c60a617a2
query lang - addresses are denoted by @, values need not match db deserialization format
e.g.` (matches @address ? ?)`, and `(matches ? ? "foo")` instead of "Sfoo"
2022-03-30 12:29:52 +02:00
Tomáš Mládek fd72034571
code cosmetics, lints
useless format! in tests
use raw strings where appropriate
2022-03-30 12:29:51 +02:00
Tomáš Mládek 39272a5cb0
add (failing) query lang tests 2022-03-30 12:29:28 +02:00
Tomáš Mládek 78b6bac7aa
rudimentary test for db queries 2022-03-28 17:34:11 +02:00
Tomáš Mládek 5bb36e9ec6 rudimentary optional authentication for mutating operations 2022-03-24 11:12:59 +01:00
Tomáš Mládek 9ee905b3a8 ignore "Undefined" EXIF values during extraction 2022-03-23 12:43:02 +01:00
Tomáš Mládek 0213b3c9c1 limit video thumbnails to max 300s into a video file
(didn't realize the majority of the time is spent seeking!)
2022-03-21 00:04:48 +01:00
Tomáš Mládek 5051ac25c6 decode valueless entires as NaN
since NaN == NULL in SQLite, apparently
2022-03-20 23:44:10 +01:00
Tomáš Mládek 1b823bcce4
respect exif image orientation in previews 2022-03-16 11:30:06 +01:00
Tomáš Mládek c9a79492de
first iteration of EXIF data extraction 2022-03-15 17:20:50 +01:00
Tomáš Mládek b9ea04109e
add explicit autocheckpoint, change db option traces! to debugs! 2022-03-14 14:02:03 +01:00
Tomáš Mládek 376d929232
return attribute labels in /all/attributes endpoint 2022-03-02 22:39:05 +01:00
Tomáš Mládek ef3a130855
refactor Jobs and their handling, really fix infinitely hanging jobs 2022-03-02 22:27:51 +01:00
Tomáš Mládek 1c316427ab
extract all metadata on vault rescan 2022-03-02 22:27:07 +01:00
Tomáš Mládek 1aa779e816
also add attribute labels on id3 extraction 2022-03-02 22:24:17 +01:00
Tomáš Mládek 4f36bff549
id3 improvements - extract year/bpm as numbers; fix id3 extract job name; exit early if file isn't audio
also add EntryValue::guess_from
2022-03-02 08:13:35 +01:00
Tomáš Mládek 82c7bfcb64
run (all) extractors for manually added blobs and addresses 2022-02-28 22:43:23 +01:00
Tomáš Mládek 506727356c
add ID3 metadata extractor 2022-02-28 22:34:38 +01:00
Tomáš Mládek 920e67a283
add an "is_needed" check for extractors; add tests for web extractor 2022-02-28 22:34:38 +01:00
Tomáš Mládek 27cc6eb31c
refactor - remove unnecessary async fns, add helper fn for running blocking tasks in background
also impl Error for JobInProgressError
2022-02-28 22:34:31 +01:00
Tomáš Mládek ce50f5ad80
implement Drop for Job - prevent jobs from hanging in progress forever 2022-02-28 17:00:27 +01:00
Tomáš Mládek d03998915c
add web::block to all db actions in route handlers 2022-02-27 15:03:15 +01:00
Tomáš Mládek 0e1b1765ae
skip over paths which failed to canonicalize 2022-02-23 15:56:22 +01:00
Tomáš Mládek 9541c397e3 better handling of invalid paths in store view 2022-02-21 22:25:48 +01:00
Tomáš Mládek 583fea153c add store info display // all blob listing 2022-02-21 22:01:31 +01:00
Tomáš Mládek 4e54c19ee5
disallow empty attributes in entries 2022-02-19 17:30:55 +01:00
Tomáš Mládek 5a393b4ec0
jobs can also have indeterminate progress 2022-02-19 16:31:51 +01:00
Tomáš Mládek dc808aab22
explicit NULL entryvalue 2022-02-19 14:59:21 +01:00
Tomáš Mládek 6820e9a174
create extractor trait 2022-02-15 13:32:46 +01:00
Tomáš Mládek add8371776
send cache-control (immutable, 31) for /raw/{hash} 2022-02-15 01:21:04 +01:00
Tomáš Mládek 0ef7ea5b3a
also impl From<f64> and From<Address> 2022-02-13 12:56:29 +01:00
Tomáš Mládek b417dad0ec
impl From<AsRef<str>> for EntryValue, replace where appropriate 2022-02-13 12:56:29 +01:00
Tomáš Mládek e81d520993
fix empty string value handling 2022-02-13 12:56:29 +01:00
Tomáš Mládek 75f9282ea2
don't label newly created uuids 2022-02-12 22:22:08 +01:00
Tomáš Mládek a74e86e70d
allow uuid generation by server 2022-02-12 21:48:29 +01:00
Tomáš Mládek ebf48c0e5f
allow inserting multiple entries (in transaction) in /api/obj 2022-02-12 14:55:54 +01:00
Tomáš Mládek 038e4fd7d2
move InEntry/InAddress to routes 2022-02-12 14:51:28 +01:00
Tomáš Mládek 471c60c19e
fix entry PUTting 2022-02-12 13:56:41 +01:00
Tomáš Mládek 689350aed5
only return in progress jobs by default on /api/jobs 2022-02-10 15:20:15 +01:00
Tomáš Mládek 7c38406b16
thumbnail creation as jobs 2022-02-10 15:11:38 +01:00
Tomáš Mládek 0dd5616e9c
allow overriding mime for thumbs 2022-02-10 14:58:00 +01:00
Tomáš Mládek 423e039d0a
forgotten debug prints 2022-02-10 11:39:04 +01:00
Tomáš Mládek 674663028d
add metadata to urls on insert 2022-02-10 11:38:45 +01:00
Tomáš Mládek bbc871ccf6
typeless jobs 2022-02-10 10:47:10 +01:00