Gabriel Horner
0ce4e1b65e
fix: query table not displaying user property columns
...
Also fixed rendering property values for all property types
2024-06-10 16:05:33 -04:00
Gabriel Horner
2d1073fa5b
fix: remove outdated clauses for property values
...
This became outedated with to property values as refs
2024-06-10 13:26:21 -04:00
Gabriel Horner
04b25a9240
chore: add basic tests for sqlite.build
...
and added a couple db-graph specific for query-dsl. Also
moved fns in pu that should be in db-pu
2024-06-10 11:52:39 -04:00
Tienson Qin
03a0e99b65
enhance: add block-order malli schema
2024-06-09 11:39:00 +08:00
Gabriel Horner
9636fbe7ab
fix: remaining query dsl tests for db graphs
...
Re-enable CI step for testing query-dsl and db graphs
2024-06-07 18:02:32 -04:00
Gabriel Horner
7f3e22c8eb
fix: priority filters for db graphs
2024-06-07 17:58:49 -04:00
Tienson Qin
214eefbf67
enhance: drop -page for filter properties
2024-06-08 05:33:41 +08:00
Tienson Qin
b2e113d8eb
refactor: db based filters
...
Uses properties :logseq.property.linked-references/included-pages
and :logseq.property.linked-references/excluded-pages to store filters
instead of a map.
Fixes LOG-3074
2024-06-08 05:28:55 +08:00
Gabriel Horner
039da828ac
enhance: infer property schema and add new-pages from properties
...
for sqlite-build graphs. Also fixed numbered page query not working for
db graphs and related tests
2024-06-07 12:10:15 -04:00
Gabriel Horner
516192fa92
fix: db lint
2024-06-06 17:22:02 -04:00
Gabriel Horner
938dd04811
enhance: add :build/tags and :auto-create-ontology?
...
for tested+generated graphs. :build/tags allows easy generation of
objects as seen in fixed up inferred graph
2024-06-06 17:05:13 -04:00
Tienson Qin
9b1da32028
fix: simplify deleting refed blocks
...
The new implementation will replace refs of the current deleting block
with the nearby block (if exists).
2024-06-06 19:36:40 +08:00
Tienson Qin
9e5a002cf8
enhance: avoid replacing page refs if there's no special chars
2024-06-06 15:15:01 +08:00
Tienson Qin
8a6b44bb31
fix: :block/content should be string including :number properties
2024-06-06 14:53:26 +08:00
Tienson Qin
fb01f99a4d
fix: outliner tests
2024-06-06 07:11:09 +08:00
Gabriel Horner
8f6f52d630
fix: sort-by filter for db graphs
...
Also fixed a dsl-query sorting bug where nil property values where
incorrectly being treated as greater than non-nil values. Also
fixed a bug where blocks with an explicit :block/created-at weren't
being set for sqlite-build
2024-06-05 16:57:51 -04:00
Gabriel Horner
29faedc4d0
fix: db graph tests with children, created-at properties
...
and journal pages
2024-06-05 14:47:38 -04:00
Gabriel Horner
916fef8336
enhance: generate any outline structure with :build/children
...
Already useful for testing and will be for more interesting generation
cases
2024-06-05 12:15:12 -04:00
Gabriel Horner
e7f795103d
fix: simple task queries and start fixing db dsl-query tests
...
Tests caught that task query wasn't working. Also disabled
namaspace test and rule for db graphs since they aren't supported
there
2024-06-04 15:53:36 -04:00
Gabriel Horner
05227f475b
chore: mv more tests to appropriate dep enabled by :build/journal
2024-06-04 12:02:25 -04:00
Gabriel Horner
14222a546f
enhance: make journals easier to generate with :build/journal
...
Use it in tests that more appropriately belong in db dep.
Also did minor cleanup around page prep for page-uuids
2024-06-04 12:02:25 -04:00
Gabriel Horner
13066001cd
fix: storing and querying of :number property values
2024-06-03 17:41:32 -04:00
Gabriel Horner
5ecb3fe3d4
fix: lints
2024-06-03 14:13:55 -04:00
Gabriel Horner
df10beb325
enhance: add schema and validation to sqlite.build
...
Also renamed block-level keys that are specific to the ns to have
a :build namespace. A lot easier to read, maintain and extend later.
Also cleaned up page naming to consistently require :block/original-name
2024-06-03 12:46:53 -04:00
Gabriel Horner
a67e2c8c23
chore: use easier way to build db graph test data
...
in rules tests
2024-06-03 12:46:53 -04:00
Gabriel Horner
2456deb097
enhance: create sqlite.build ns as a better
...
load-test-files helper for db graphs and deps.
Most of this ns is split off from create-graph.
Migrated pipeline-test to correct outliner dep and
moved previous pipeline-test to correct db dep
2024-06-03 12:46:53 -04:00
Tienson Qin
e7de721dde
fix: broken block ref after deleting source blocks
2024-06-03 15:33:49 +08:00
rcmerci
8a94b856bd
enhance(rtc): add debug prn when failed to transact
2024-06-02 21:19:59 +08:00
Gabriel Horner
03167ae19c
enhance: extract block content refs for generated graphs
...
Also update content with ids and create pages as needed
2024-05-31 17:19:25 -04:00
Gabriel Horner
ec7839fcce
fix: simple queries in db graphs for most property types
...
Also fix parse-query was being called in multiple places
without a correct default value for :db-graph? option
2024-05-30 15:54:20 -04:00
Gabriel Horner
790d0460a1
fix: remove + disable :block/macros for db graphs
...
part of LOG-3137
2024-05-30 11:01:37 -04:00
Tienson Qin
9ce7f5d709
fix: eager loading nested blocks for short pages
2024-05-30 20:01:31 +08:00
Tienson Qin
13b19a1b9c
perf: render less blocks and improve app start time
...
1. load only 1 journal when app starts
2. fix can't load more journals
3. pretend all the unloaded pages as long pages to avoid more
rendering
4. don't send <get-block queries if there're already requests
2024-05-30 18:31:19 +08:00
Gabriel Horner
effde81161
enhance: all user classes have :db/ident
...
This is important as a user's ontology (properties + classes) is now describable
with unique identifiers. This will allow for easy sharing and
importing of ontologies between users.
Also <create-class! now exists to create classes consistently. Will
be helpful when we want to provide some validation for classes
2024-05-28 16:52:12 -04:00
Tienson Qin
6ced3bff8f
enhance: property editing support shortcut
2024-05-27 20:08:43 +08:00
Gabriel Horner
d2ea12fab6
refactor: simplify schema and creation of kv ents
2024-05-24 09:50:22 -04:00
Tienson Qin
8458b6b21b
enhance: rename :key/value to :kv/value
2024-05-24 15:21:10 +08:00
Tienson Qin
db7c4e2145
refactor: use one attribute :key/value for all kvs
2024-05-24 14:22:09 +08:00
Tienson Qin
b2f38f6f0c
Revert "chore: rename :db/type to :logseq.db/type"
...
This reverts commit 32e6433c44 .
2024-05-24 14:06:39 +08:00
Tienson Qin
32e6433c44
chore: rename :db/type to :logseq.db/type
2024-05-24 14:02:16 +08:00
Gabriel Horner
32ca012635
enhance: pretty print + colorize query script by default
2024-05-23 14:58:55 -04:00
Gabriel Horner
0fc01b94a3
fix: tests
2024-05-23 09:45:38 -04:00
Gabriel Horner
26cf70f6cf
fix: update schema and remove unused :name in :icon key
2024-05-23 09:45:38 -04:00
Tienson Qin
c118271fdd
refactor: property position support left/right/below
...
Removed the limitation that only properties with closed values can
have custom positions.
2024-05-23 20:48:04 +08:00
Tienson Qin
1cfc426486
enhance: properties ux
...
1. add icons to priorities
2. hide task properties so that blocks are not collapsable
3. block positions support end of block
2024-05-23 17:18:23 +08:00
Tienson Qin
f218732b17
fix: property path-refs
...
1. :block/refs support to page properties
2. don't add built-in properties to refs
3. don't add current block or parents' other properties to :default blocks
2024-05-22 23:30:00 +08:00
Gabriel Horner
04e71a9a23
Bump datascript for nbb-logseq
2024-05-22 09:37:16 -04:00
Gabriel Horner
50698c190d
fix: update db's nbb.edn to match deps.edn
...
Looks like we forgot to add malli to deps.edn awhile back
2024-05-22 08:53:13 -04:00
Tienson Qin
b4bfd5cc9a
chore: use clj-fractional-indexing
2024-05-22 15:21:35 +08:00
Gabriel Horner
cfe22e4acc
fix: lints
2024-05-21 16:14:05 -04:00