Browse Source

enhance(rtc): adjust some properties' rtc config

rcmerci 7 months ago
parent
commit
b342d122f2
1 changed files with 8 additions and 20 deletions
  1. 8 20
      deps/db/src/logseq/db/frontend/property.cljs

+ 8 - 20
deps/db/src/logseq/db/frontend/property.cljs

@@ -430,6 +430,9 @@
                                      {:type :coll
                                      {:type :coll
                                       :hide? true
                                       :hide? true
                                       :public? false}
                                       :public? false}
+                                     ;; ignore this property when rtc,
+                                     ;; since users frequently click the sort button to view table content temporarily,
+                                     ;; but this action does not need to be synchronized with other clients.
                                      :rtc {:rtc/ignore-attr-when-init-upload true
                                      :rtc {:rtc/ignore-attr-when-init-upload true
                                            :rtc/ignore-attr-when-init-download true
                                            :rtc/ignore-attr-when-init-download true
                                            :rtc/ignore-attr-when-syncing true}}
                                            :rtc/ignore-attr-when-syncing true}}
@@ -438,47 +441,32 @@
                                      :schema
                                      :schema
                                      {:type :map
                                      {:type :map
                                       :hide? true
                                       :hide? true
-                                      :public? false}
-                                     :rtc {:rtc/ignore-attr-when-init-upload true
-                                           :rtc/ignore-attr-when-init-download true
-                                           :rtc/ignore-attr-when-syncing true}}
+                                      :public? false}}
 
 
      :logseq.property.table/hidden-columns {:title "View hidden columns"
      :logseq.property.table/hidden-columns {:title "View hidden columns"
                                             :schema
                                             :schema
                                             {:type :keyword
                                             {:type :keyword
                                              :cardinality :many
                                              :cardinality :many
                                              :hide? true
                                              :hide? true
-                                             :public? false}
-                                            :rtc {:rtc/ignore-attr-when-init-upload true
-                                                  :rtc/ignore-attr-when-init-download true
-                                                  :rtc/ignore-attr-when-syncing true}}
+                                             :public? false}}
 
 
      :logseq.property.table/ordered-columns {:title "View ordered columns"
      :logseq.property.table/ordered-columns {:title "View ordered columns"
                                              :schema
                                              :schema
                                              {:type :coll
                                              {:type :coll
                                               :hide? true
                                               :hide? true
-                                              :public? false}
-                                             :rtc {:rtc/ignore-attr-when-init-upload true
-                                                   :rtc/ignore-attr-when-init-download true
-                                                   :rtc/ignore-attr-when-syncing true}}
+                                              :public? false}}
 
 
      :logseq.property.table/sized-columns {:title "View columns settings"
      :logseq.property.table/sized-columns {:title "View columns settings"
                                            :schema
                                            :schema
                                            {:type :map
                                            {:type :map
                                             :hide? true
                                             :hide? true
-                                            :public? false}
-                                           :rtc {:rtc/ignore-attr-when-init-upload true
-                                                 :rtc/ignore-attr-when-init-download true
-                                                 :rtc/ignore-attr-when-syncing true}}
+                                            :public? false}}
      :logseq.property.table/pinned-columns {:title "Table view pinned columns"
      :logseq.property.table/pinned-columns {:title "Table view pinned columns"
                                             :schema
                                             :schema
                                             {:type :property
                                             {:type :property
                                              :cardinality :many
                                              :cardinality :many
                                              :hide? true
                                              :hide? true
-                                             :public? false}
-                                            :rtc {:rtc/ignore-attr-when-init-upload true
-                                                  :rtc/ignore-attr-when-init-download true
-                                                  :rtc/ignore-attr-when-syncing true}}
+                                             :public? false}}
      :logseq.property/view-for {:title "This view belongs to"
      :logseq.property/view-for {:title "This view belongs to"
                                 :schema
                                 :schema
                                 {:type :node
                                 {:type :node