Tienson Qin
ea3f5973b7
Merge branch 'feat/db' into feat/datascript-storage
2023-12-06 01:10:23 +08:00
Tienson Qin
1b2a3cc1c1
fix: tests
2023-12-05 19:48:29 +08:00
Tienson Qin
3df099a15e
fix: don't retract attributes for db if block content is not updated
2023-12-05 18:07:48 +08:00
Tienson Qin
67fd609170
fix: typing a normal page as a tag silently changes its page type
...
User can choose to create either a page or a class with '#' now.
FIXES LOG-2742
2023-12-05 17:31:21 +08:00
Tienson Qin
d6e5e2b0b4
fix: tests
2023-12-04 20:31:39 +08:00
Tienson Qin
336c6cfd08
fix: lint warnings
2023-12-04 20:12:49 +08:00
Tienson Qin
00b11d6cb0
Add db-based model tests
2023-12-04 20:07:52 +08:00
Tienson Qin
aff14668fc
Add page rename tests
2023-12-04 18:15:47 +08:00
Tienson Qin
f4309bdc2b
Add recents test
2023-12-04 17:08:21 +08:00
Tienson Qin
dae27861d2
Finish db-based property tests
2023-12-04 16:44:01 +08:00
Tienson Qin
fbb8f96191
fix: tests
2023-12-04 16:26:12 +08:00
Tienson Qin
e6bc77e8b5
Add text block test
2023-12-04 16:07:39 +08:00
Tienson Qin
c2a216e4e1
Add closed values related tests
2023-12-04 15:15:15 +08:00
Gabriel Horner
f5e339293f
fix: add validation for property types and :schema attributes
...
Part of LOG-2953. We shouldn't persist unusuable property type
configurations as shown by this bug. By enumerating what schema
attributes are allowed for each type, we can prevent future bugs
like this. When changing between property types, this also cleans up
:classes, :position and :values that were accidentally hanging around
for certain types. Also modify test since we don't allow users
to use a :default property with :cardinality
2023-11-30 16:24:11 -05:00
Gabriel Horner
4a9f310937
fix: upstream tests failing
2023-11-29 14:52:19 -05:00
Tienson Qin
2f514bf089
Add class properties related test
2023-11-30 02:18:22 +08:00
Tienson Qin
a57fbe6d6c
Add delete-property-value! test and fix lint
2023-11-30 01:00:24 +08:00
Tienson Qin
f342303e6a
Add initial tests on property handler
2023-11-30 00:34:04 +08:00
rcmerci
b54c39e8a6
fix(rtc): fix add-ops-to-block-uuid->ops & add testcase
2023-11-17 01:20:18 +08:00
rcmerci
16208a877e
test(rtc): entity-datoms=>ops
2023-11-16 22:15:43 +08:00
Gabriel Horner
d656c75428
fix: improve property type ux by locking once property is used
...
fixes LOG-2900. Also fixed lint
2023-11-13 10:05:54 -05:00
rcmerci
fa0efe2872
test(rtc): add testcases for :link
2023-11-11 18:12:43 +08:00
rcmerci
471d3978ae
enhance(rtc): support receive s3-presign-url from ws-conn
2023-11-09 23:10:25 +08:00
rcmerci
561422143f
fix(rtc): fix testcase
2023-11-08 20:22:12 +08:00
rcmerci
fdb0f4e853
fix(rtc): ensure return a promise
2023-11-08 20:16:09 +08:00
Gabriel Horner
8f6deb15a7
fix test failure introduced by last commit
2023-11-07 13:50:52 -05:00
rcmerci
73a6232c56
chore: fix lint
2023-11-07 21:37:17 +08:00
rcmerci
a7cd7b92bf
enhance(rtc): refactor client-op related ns
2023-11-07 21:31:56 +08:00
rcmerci
7752a8f75f
fix(rtc): sort entity-datoms-coll when generate local-ops
2023-11-01 23:01:16 +08:00
rcmerci
536852b103
enhance(rtc): add testcase
2023-11-01 18:12:12 +08:00
Tienson Qin
abf2c0c126
fix: delete non consecutive blocks
2023-10-31 23:33:29 +08:00
rcmerci
23bd9c1d76
enhance(rtc): add testcases, fix filter-remote-data-by-local-unpushed-ops
2023-10-31 21:22:10 +08:00
rcmerci
dc44e672d4
enhance(rtc): add testcase
2023-10-30 23:23:32 +08:00
rcmerci
9eb2806305
enhance(rtc): add testcases, mock idb-keyval ns
2023-10-30 22:25:22 +08:00
rcmerci
af416ec352
enhance(rtc): update testcase
2023-10-28 01:23:15 +08:00
rcmerci
1ed2a9151a
enhance(rtc): update frontend.db.rtc.op fns return value type
2023-10-28 01:00:18 +08:00
Gabriel Horner
94036c015d
fix: disable test which is failing test suite hard
...
Tests should be green and not fail hard so others can rely on tests
2023-10-27 11:58:23 -04:00
rcmerci
fb8fc533e6
fix: bb dev:lint
2023-10-27 23:15:57 +08:00
rcmerci
7ba2811e11
dev(rtc): some test helpers & mock utils for rtc
2023-10-27 23:06:36 +08:00
Gabriel Horner
211dd6aea7
enhance: disable preferred-format and setting org-mode
...
for db graphs. Also deprecate in config
2023-10-24 17:15:05 -04:00
Gabriel Horner
edaf9b286a
chore: move frontend db namespaces to a dedicated parent ns
...
Moved these namespaces to logseq.db.frontend.* to make their purpose
explicit and make the namespaces easier to maintain
2023-10-16 17:24:51 -04:00
Gabriel Horner
b1b830c872
fix tests I forgot to update with :block/format fix
2023-10-16 16:14:53 -04:00
Gabriel Horner
89dafea094
fix: test failing due to unrealistic non-string content
2023-10-11 16:14:15 -04:00
Tienson Qin
307258343e
fix: lint warnings
2023-10-08 19:14:25 +08:00
Gabriel Horner
4b0100cb25
chore: cleanup page-property file based ns
...
All of frontend.util.page-property was file based except for one line.
Moved that ns to a file-based ns and moved the line out to the more
appropriate property-handler
2023-10-02 15:59:43 -04:00
Gabriel Horner
fceb6ddb72
chore: split up page-handler into file-based, db-based and graph
...
Did this cleanup as I noticed that multiple fns were checking if they are in a
db context when they didn't need to. By organizing these namespaces, the
db and file versions will be easier to maintain.
While doing this refactor, I didn't change any logic except for removing
unnecessary db-based-graph? checks. Also renamed a few fns to remove
redundant file- and db- prefixes
2023-10-02 14:32:02 -04:00
Gabriel Horner
5f66ca027e
enhance: Use path-refs calculation in CLI namespaces
...
Also moved path-refs truncation into outliner so that it applies consistently
across environments
2023-09-08 11:57:35 -04:00
Gabriel Horner
41bd76a704
Merge branch 'master' into feat/db
2023-09-07 17:52:25 -04:00
Gabriel Horner
a93fe4d81b
Move recalculate-block-path-refs to outliner dep
...
Moved dependent query fns also into the outliner dep. Removed
get-block-children-ids from model as there was only one use of it after
the refactor. Also setup testing for outliner and moved in a test for it
2023-09-06 16:20:29 -04:00
Gabriel Horner
ea8d6679de
Fix frontend and graph-parser tests
...
A number of outliner tests were failing which is distracting when trying
to separate out outliner namespaces. Most failures were caused by
introduction of state/get-selection-blocks into outliner layer. A few
are caused by trivial count change in datoms. Removed config/test? from
outliner as it's unused
2023-09-06 11:57:41 -04:00