Another test and address review feedback that shouldn't be controversial

- Added test for 71514ab36c
- Also removed dependency that is no longer used
This commit is contained in:
Gabriel Horner
2022-09-15 18:01:29 -04:00
parent ecce39d13b
commit edd79954c1
4 changed files with 23 additions and 6 deletions

View File

@@ -78,7 +78,7 @@
(map (fn [tag] {:block/name (gp-util/page-name-sanity-lc tag)
:block/original-name tag})
tags))))]
(update result :block/properties #(dissoc % :tags :alias))))
(update result :block/properties #(apply dissoc % gp-property/editable-linkable-built-in-properties))))
(defn- build-page-map
[properties invalid-properties file page page-name {:keys [date-formatter db from-page]}]

View File

@@ -3,6 +3,7 @@
[goog.string :as gstring]
[clojure.string :as string]
[clojure.set :as set]
[logseq.graph-parser.property :as gp-property]
[logseq.graph-parser.mldoc :as gp-mldoc]
[logseq.graph-parser.util :as gp-util]
[logseq.graph-parser.util.page-ref :as page-ref]))
@@ -135,9 +136,8 @@
(defn separated-by-commas?
[config-state k]
(let [k' (if (keyword? k) k (keyword k))]
(contains? (set/union #{:alias :tags}
(set (get config-state :property/separated-by-commas))
(set (:property/separated-by-commas config-state)))
(contains? (set/union gp-property/editable-linkable-built-in-properties
(set (get config-state :property/separated-by-commas)))
k')))
(defn parse-property