mirror of
https://github.com/logseq/logseq.git
synced 2026-04-28 16:15:21 +00:00
enhance(cli): Add validate command for local graph(s)
Improves :errors of invalid errors to be more user friendly. Also enable closed-value validation optionally as it is useful to have higher data quality for non RTC graphs
This commit is contained in:
5
deps/db/script/validate_db.cljs
vendored
5
deps/db/script/validate_db.cljs
vendored
@@ -27,7 +27,10 @@
|
||||
(pprint/pprint ent-errors)
|
||||
humanize
|
||||
(pprint/pprint (map #(-> (dissoc % :errors-by-type)
|
||||
(update :errors (fn [errs] (me/humanize {:errors errs}))))
|
||||
(update :errors (fn [errs]
|
||||
(->> (me/humanize {:errors errs})
|
||||
vals
|
||||
(apply merge-with into)))))
|
||||
ent-errors))
|
||||
:else
|
||||
(pprint/pprint (map :entity ent-errors))))
|
||||
|
||||
Reference in New Issue
Block a user