Browse Source

Merge branch 'master' into feat/capacitor-new

Tienson Qin 5 months ago
parent
commit
7d7a50075d

+ 1 - 1
.github/workflows/build.yml

@@ -6,7 +6,7 @@ on:
     paths-ignore:
     paths-ignore:
       - '*.md'
       - '*.md'
   pull_request:
   pull_request:
-    branches: [master, "feat/db"]
+    branches: [master]
     paths-ignore:
     paths-ignore:
       - '*.md'
       - '*.md'
 
 

+ 1 - 1
.github/workflows/clj-e2e.yml

@@ -10,7 +10,7 @@ on:
       - deps/**
       - deps/**
       - packages/**
       - packages/**
   pull_request:
   pull_request:
-    branches: [master, "feat/db"]
+    branches: [master]
     paths:
     paths:
       - 'clj-e2e/**'
       - 'clj-e2e/**'
       - '.github/workflows/clj-e2e.yml'
       - '.github/workflows/clj-e2e.yml'

+ 1 - 1
.github/workflows/clj-rtc-e2e.yml

@@ -10,7 +10,7 @@ on:
       - deps/**
       - deps/**
       - packages/**
       - packages/**
   pull_request:
   pull_request:
-    branches: [master, "feat/db"]
+    branches: [master]
     paths:
     paths:
       - 'clj-e2e/**'
       - 'clj-e2e/**'
       - '.github/workflows/clj-rtc-e2e.yml'
       - '.github/workflows/clj-rtc-e2e.yml'

+ 1 - 1
.github/workflows/db.yml

@@ -9,7 +9,7 @@ on:
       - '.github/workflows/db.yml'
       - '.github/workflows/db.yml'
       - '!deps/db/**.md'
       - '!deps/db/**.md'
   pull_request:
   pull_request:
-    branches: [master, "feat/db"]
+    branches: [master]
     paths:
     paths:
       - 'deps/db/**'
       - 'deps/db/**'
       - '.github/workflows/db.yml'
       - '.github/workflows/db.yml'

+ 1 - 0
.github/workflows/e2e.yml

@@ -24,6 +24,7 @@ env:
 
 
 jobs:
 jobs:
   e2e-test-build:
   e2e-test-build:
+    if: false                   # disabled
     name: Build Test Artifact
     name: Build Test Artifact
     runs-on: ubuntu-22.04
     runs-on: ubuntu-22.04
     steps:
     steps:

+ 1 - 1
.github/workflows/graph-parser.yml

@@ -12,7 +12,7 @@ on:
       - '.github/workflows/graph-parser.yml'
       - '.github/workflows/graph-parser.yml'
       - '!deps/graph-parser/**.md'
       - '!deps/graph-parser/**.md'
   pull_request:
   pull_request:
-    branches: [master, "feat/db"]
+    branches: [master]
     paths:
     paths:
       - 'deps/graph-parser/**'
       - 'deps/graph-parser/**'
       - 'deps/db/**'
       - 'deps/db/**'

+ 1 - 1
.github/workflows/logseq-common.yml

@@ -9,7 +9,7 @@ on:
       - '.github/workflows/logseq-common.yml'
       - '.github/workflows/logseq-common.yml'
       - '!deps/common/**.md'
       - '!deps/common/**.md'
   pull_request:
   pull_request:
-    branches: [master, "feat/db"]
+    branches: [master]
     paths:
     paths:
       - 'deps/common/**'
       - 'deps/common/**'
       - '.github/workflows/logseq-common.yml'
       - '.github/workflows/logseq-common.yml'

+ 1 - 1
.github/workflows/outliner.yml

@@ -12,7 +12,7 @@ on:
       - '.github/workflows/outliner.yml'
       - '.github/workflows/outliner.yml'
       - '!deps/outliner/**.md'
       - '!deps/outliner/**.md'
   pull_request:
   pull_request:
-    branches: [master, "feat/db"]
+    branches: [master]
     paths:
     paths:
       - 'deps/outliner/**'
       - 'deps/outliner/**'
       - 'deps/db/**'
       - 'deps/db/**'

+ 1 - 1
.github/workflows/publishing.yml

@@ -12,7 +12,7 @@ on:
       - '.github/workflows/publishing.yml'
       - '.github/workflows/publishing.yml'
       - '!deps/publishing/**.md'
       - '!deps/publishing/**.md'
   pull_request:
   pull_request:
-    branches: [master, "feat/db"]
+    branches: [master]
     paths:
     paths:
       - 'deps/publishing/**'
       - 'deps/publishing/**'
       - 'deps/db/**'
       - 'deps/db/**'

+ 20 - 22
clj-e2e/test/logseq/e2e/rtc_extra_test.clj

@@ -255,9 +255,7 @@
           (w/click (format ".ls-block :text('%s')" (str title-prefix "-" 0)))
           (w/click (format ".ls-block :text('%s')" (str title-prefix "-" 0)))
           (b/delete-blocks)))
           (b/delete-blocks)))
       (validate-2-graphs))
       (validate-2-graphs))
-    (comment
-      "this case is failing now"
-      (testing "
+    (testing "
 origin:
 origin:
 - block2
 - block2
 - block3
 - block3
@@ -270,22 +268,22 @@ page2:
 ;; block2 deleted
 ;; block2 deleted
 - block4
 - block4
   - block3"
   - block3"
-        (rtc/with-stop-restart-rtc
-          [@*page1 @*page2]
-          [@*page1 (rtc/with-wait-tx-updated (b/new-block "page1-done-2"))
-           @*page2 (rtc/with-wait-tx-updated (b/new-block "page2-done-2"))]
-          (w/with-page @*page1
-            (w/click (format ".ls-block :text('%s')" (str title-prefix "-" 3)))
-            (b/indent)
-            (k/arrow-down)
-            (b/indent)
-            (b/indent))
-          (w/with-page @*page2
-            (w/click (format ".ls-block :text('%s')" (str title-prefix "-" 2)))
-            (b/delete-blocks)
-            (w/click (format ".ls-block :text('%s')" (str title-prefix "-" 3)))
-            (k/shift+arrow-down)
-            (k/meta+shift+arrow-down)
-            (k/enter)
-            (b/indent)))
-        (validate-2-graphs)))))
+      (rtc/with-stop-restart-rtc
+        [@*page1 @*page2]
+        [@*page1 (rtc/with-wait-tx-updated (b/new-block "page1-done-2"))
+         @*page2 (rtc/with-wait-tx-updated (b/new-block "page2-done-2"))]
+        (w/with-page @*page1
+          (w/click (format ".ls-block :text('%s')" (str title-prefix "-" 3)))
+          (b/indent)
+          (k/arrow-down)
+          (b/indent)
+          (b/indent))
+        (w/with-page @*page2
+          (w/click (format ".ls-block :text('%s')" (str title-prefix "-" 2)))
+          (b/delete-blocks)
+          (w/click (format ".ls-block :text('%s')" (str title-prefix "-" 3)))
+          (k/shift+arrow-down)
+          (k/meta+shift+arrow-down)
+          (k/enter)
+          (b/indent)))
+      (validate-2-graphs))))

+ 3 - 1
deps/db/src/logseq/db/common/view.cljs

@@ -50,7 +50,9 @@
                                          (into {})))
                                          (into {})))
         get-property-value-fn (fn [entity]
         get-property-value-fn (fn [entity]
                                 (if (de/entity? property)
                                 (if (de/entity? property)
-                                  (get-property-value-for-search entity property)
+                                  (if (= :date (:logseq.property/type property))
+                                    (:block/journal-day (get entity db-ident))
+                                    (get-property-value-for-search entity property))
                                   (get entity db-ident)))]
                                   (get entity db-ident)))]
     (fn [entity]
     (fn [entity]
       (cond
       (cond