Commit Graph

102 Commits (942ccf1c40fabe018b0fb47be165ace572451b94)

Author SHA1 Message Date
Tomáš Mládek 942ccf1c40 mark failed jobs with a specific state, prevent from lingering in ui 2021-06-20 16:46:45 +02:00
Tomáš Mládek 682eca3e5a allow insertion of invariants via api 2021-06-20 14:07:15 +02:00
Tomáš Mládek 0beca214df forgotten DIR_HAS attr in FS_DIR 2021-06-19 17:59:54 +02:00
Tomáš Mládek 2a3c1a5326 add more attrs to BLOB type 2021-06-19 15:56:10 +02:00
Tomáš Mládek 86294ebf53 create macros for common (type) inserts 2021-06-19 15:54:32 +02:00
Tomáš Mládek 841dc7c07b mention data in base58 decode fail 2021-06-19 15:01:46 +02:00
Tomáš Mládek b78e38162e forgotten takes_value for --db-path 2021-06-19 13:11:27 +02:00
Tomáš Mládek 06d30433e5 allow specifying path to db on cli 2021-06-19 12:32:05 +02:00
Tomáš Mládek fa1e366e5b logging in query() 2021-06-18 19:01:05 +02:00
Tomáš Mládek 9c71eea8e1 return version info in /api/info 2021-06-18 18:28:18 +02:00
Tomáš Mládek 415450ccae add TYPE_INSTANCED, BLOB is INSTANCED by FS_FILE 2021-06-06 23:50:27 +02:00
Tomáš Mládek e0eb20aba7 add BLOB TYPE 2021-06-04 15:14:58 +02:00
Tomáš Mládek 4468262f50 fix bug adding duplicate Files
initialize digest in _process_directory_entry via once_cell
2021-05-28 23:36:00 +02:00
Tomáš Mládek 8044137531 add vault --name option, /api/info endpoint 2021-05-06 20:23:20 +02:00
Tomáš Mládek 7f358932f6 fix /latest endpoint 2021-05-06 20:10:40 +02:00
Tomáš Mládek 9df88d1ad5 fix clippy hints 2021-04-24 00:08:17 +02:00
Tomáš Mládek 7420fd45d8 add /api/files endpoint, refactor retrieve_file() 2021-04-23 23:28:58 +02:00
Tomáš Mládek c2705d328d get rid of uneccessary expects/unwraps in open_upend; logging 2021-04-19 00:34:01 +02:00
Tomáš Mládek d32334088e [backend] list_roots() returns Addresses directly, fix bug with resolving parentless directories 2021-04-04 23:24:52 +02:00
Tomáš Mládek 4804cea634 rewrite fetch_or_create_dir slightly for more clarity 2021-04-04 18:44:01 +02:00
Tomáš Mládek da4d7e6758 attach mime entry directly to file hash; add mtime & size 2021-03-25 21:29:49 +01:00
Tomáš Mládek 54c1ea711d do not log requests to /api/jobs 2021-03-24 20:37:42 +01:00
Tomáš Mládek c422f89d18 add mime type to filesystem update step 2021-03-22 23:07:39 +01:00
Tomáš Mládek b051529da6 better logging in rescan_vault() 2021-03-20 16:49:01 +01:00
Tomáš Mládek b773dbc49c TYPE_ID attr, type of TYPE
(todo: clean up, deduplicate code...)
2021-03-19 00:03:34 +01:00
Tomáš Mládek 0f006ea32c fix invariant calculation/insertion 2021-03-18 22:42:03 +01:00
Tomáš Mládek e38bab5957 remove ensure_invariant now that it's unnecessary 2021-03-15 22:37:09 +01:00
Tomáš Mládek 2ffbd4934b refer to types via address, not identifier
also rework invariant entries, add addressable trait
2021-03-15 22:32:04 +01:00
Tomáš Mládek ce36c97f2a add basic types 2021-03-14 22:16:28 +01:00
Tomáš Mládek 6f31ef5e15 Address can also refer to an Attribute (String) 2021-03-14 12:41:38 +01:00
Tomáš Mládek 21e7ee7538 finish renaming target/key/value to entity/attribute/value 2021-03-14 10:44:13 +01:00
Tomáš Mládek 6e7cdd9887 rename reimport_directory to rescan_vault 2021-03-06 22:14:17 +01:00
Tomáš Mládek 05d0fa7a87 ignore UniqueViolation errors in inserts 2021-03-06 18:23:31 +01:00
Tomáš Mládek 8751e57433 add latest_files endpoint 2021-02-21 19:51:23 +01:00
Tomáš Mládek 61a470dfe3 models::File uses Hash instead of plain Vec<u8> 2021-02-21 19:43:28 +01:00
Tomáš Mládek 105a9c7e0b fix http error code for PUT /obj 2021-02-21 17:49:34 +01:00
Tomáš Mládek dc05b05873 fix object deletion, identity attr insertion 2021-02-21 17:36:41 +01:00
Tomáš Mládek e462801823 fix entry addresses for /api/obj 2021-02-21 17:08:33 +01:00
Tomáš Mládek 302f435c5d /query returns map with hashes 2021-02-21 12:30:17 +01:00
Tomáš Mládek 550e8d5c0f fix http error code for /query 2021-02-21 10:38:31 +01:00
Tomáš Mládek ed5ea08335 add "jobs", endpoint to query vault update progress 2021-02-20 17:36:19 +01:00
Tomáš Mládek 5096e1eece refactoring: remove query_entries(), from_sexp into TryFrom, query_to_sqlite is a method 2021-02-20 12:39:19 +01:00
Tomáš Mládek 001fad3145 remove "unsafe unwraps" 2021-02-20 12:39:18 +01:00
Tomáš Mládek c0e1f42533 consolidate API routes, remove lookup_by_filename 2021-02-20 12:12:48 +01:00
Tomáš Mládek f5dd4141b1 adjacent tagging for EntryValue 2021-02-20 12:10:03 +01:00
Tomáš Mládek cc4d7209be fix FromStr for Address 2021-02-19 22:35:05 +01:00
Tomáš Mládek ae812b33d1 add hash encode/decode test 2021-02-19 22:27:54 +01:00
Tomáš Mládek 3fb436708b attempt (?) to return hash from insert_entry, improve error logging 2021-02-19 22:18:31 +01:00
Tomáš Mládek 3ad31a482d add an "insert entry" (PUT) endpoint 2021-02-19 21:58:35 +01:00
Tomáš Mládek dc71bec67a implement Serialize/Deserialize for Entry, Address, remove as_json
+ cosmetics (to_str -> to_string)
2021-02-19 21:56:25 +01:00