Browse Source

chore: rename new property to be feature specific

and encourage for more varied use
Gabriel Horner 2 weeks ago
parent
commit
094b65336a

+ 1 - 1
clj-e2e/test/logseq/e2e/bidirectional_properties_test.clj

@@ -31,7 +31,7 @@
                       (get person "id"))
         (is (string? person-uuid))
         (ls-api-call! :editor.upsertBlockProperty person-uuid
-                      "logseq.property.class/title-plural"
+                      "logseq.property.class/bidirectional-property-title"
                       "People")
         (ls-api-call! :editor.upsertBlockProperty person-uuid
                       "logseq.property.class/enable-bidirectional?"

+ 1 - 1
deps/db/src/logseq/db.cljs

@@ -731,7 +731,7 @@
            (keep (fn [[class-id entities]]
                    (let [class (d/entity db class-id)]
                      (when (true? (:logseq.property.class/enable-bidirectional? class))
-                       (let [custom-title (when-let [custom (:logseq.property.class/title-plural class)]
+                       (let [custom-title (when-let [custom (:logseq.property.class/bidirectional-property-title class)]
                                             (if (string? custom)
                                               custom
                                               (db-property/property-value-content custom)))

+ 4 - 4
deps/db/src/logseq/db/frontend/property.cljs

@@ -182,10 +182,10 @@
                                                  :cardinality :many
                                                  :public? true
                                                  :view-context :never}}
-     :logseq.property.class/title-plural {:title "Plural title"
-                                          :schema {:type :string
-                                                   :public? true
-                                                   :view-context :class}}
+     :logseq.property.class/bidirectional-property-title {:title "Bidirectional property title"
+                                                          :schema {:type :string
+                                                                   :public? true
+                                                                   :view-context :class}}
      :logseq.property.class/enable-bidirectional? {:title "Enable bidirectional properties"
                                                    :schema {:type :checkbox
                                                             :public? true

+ 1 - 1
src/main/frontend/handler/property.cljs

@@ -41,7 +41,7 @@
     :logseq.property/exclude-from-graph-view :logseq.property/template-applied-to
     :logseq.property/hide-empty-value :logseq.property.class/hide-from-node
     :logseq.property/page-tags :logseq.property.class/extends
-    :logseq.property.class/title-plural
+    :logseq.property.class/bidirectional-property-title
     :logseq.property.class/enable-bidirectional?
     :logseq.property/publishing-public? :logseq.property.user/avatar
     :logseq.property.user/email :logseq.property.user/name})

+ 1 - 1
src/main/frontend/worker/db/migrate.cljs

@@ -186,7 +186,7 @@
    ["65.17" {:properties [:logseq.property.publish/published-url]}]
    ["65.18" {:fix deprecated-ensure-graph-uuid}]
    ["65.19" {:properties [:logseq.property/choice-classes :logseq.property/choice-exclusions]}]
-   ["65.20" {:properties [:logseq.property.class/title-plural :logseq.property.class/enable-bidirectional?]}]])
+   ["65.20" {:properties [:logseq.property.class/bidirectional-property-title :logseq.property.class/enable-bidirectional?]}]])
 
 (let [[major minor] (last (sort (map (comp (juxt :major :minor) db-schema/parse-schema-version first)
                                      schema-version->updates)))]