Explorar o código

fix: deprecate :favorites for db config

related to LOG-3031. Also comment all known
file graph only config keys
Gabriel Horner hai 1 ano
pai
achega
f6e9e2630f

+ 7 - 0
deps/common/resources/templates/config.edn

@@ -14,6 +14,7 @@
  :preferred-workflow :now
 
  ;; Exclude directories/files.
+ ;; This is _only_ for file graphs.
  ;; Example usage:
  ;; :hidden ["/archived" "/test.md" "../assets/archived"]
  :hidden []
@@ -144,6 +145,7 @@
  ;; :whiteboards-directory "whiteboards"
 
  ;; Enabling this option converts
+ ;; This is _only_ for file graphs.
  ;; [[Grant Ideas]] to [[file:./grant_ideas.org][Grant Ideas]] for org-mode.
  ;; For more information, visit https://github.com/logseq/logseq/issues/672
  ;; :org-mode/insert-file-link? false
@@ -289,6 +291,7 @@
  ;;  :journal?        false} ; Default value: false
 
  ;; Favorites to list on the left sidebar
+ ;; This is _only_ for file graphs.
  :favorites []
 
  ;; Set flashcards interval.
@@ -307,19 +310,23 @@
  ;; :block-hidden-properties #{:public :icon}
 
  ;; Create a page for all properties.
+ ;; This is _only_ for file graphs.
  ;; Default value: true
  :property-pages/enabled? true
 
  ;; Properties to exclude from having property pages
+ ;; This is _only_ for file graphs.
  ;; Example usage:
  ;; :property-pages/excludelist #{:duration :author}
 
  ;; By default, property value separated by commas will not be treated as
  ;; page references. You can add properties to enable it.
+ ;; This is _only_ for file graphs.
  ;; Example usage:
  ;; :property/separated-by-commas #{:alias :tags}
 
  ;; Properties that are ignored when parsing property values for references
+ ;; This is _only_ for file graphs.
  ;; Example usage:
  ;; :ignored-page-references-keywords #{:author :website}
 

+ 3 - 1
src/main/frontend/handler/common/config_edn.cljs

@@ -108,7 +108,9 @@ nested keys or positional errors e.g. tuples"
    ;;  :file/name-format
    "is not used in DB graphs"
    :feature/enable-block-timestamps?
-   "is not used in DB graphs as it is always enabled"})
+   "is not used in DB graphs as it is always enabled"
+   :favorites
+   "is not stored in config for DB graphs"})
 
 (defn detect-deprecations
   "Detects config keys that will or have been deprecated"