Commit Graph

988 Commits

Author SHA1 Message Date
Gabriel Horner
3c9c4b3f79 fix: db graph test tasks should have correct class 2024-06-17 13:51:11 -04:00
Tienson Qin
8c88f16a75 fix: tests 2024-06-15 23:23:12 +08:00
Tienson Qin
b294896f8a fix: reuse page uuids when parsing files
This commit also removes `with-id?` because it's too confusing.

Fixes LOG-3143
2024-06-15 22:52:30 +08:00
Gabriel Horner
244a86557f chore: rename :property/value to :property.value/content
property-value is widely being used to refer to the entity or value
associated with a property entity. Naming the content of a
property-entity :property/value is confusing. property-value content is
a unique name and consistent with :block/content. Also rename related
fns which had similarly confusing names
2024-06-14 18:11:20 -04:00
Gabriel Horner
5f2371486e fix: simple query for :number properties
also fixes deps db tests
2024-06-13 23:16:17 -04:00
Gabriel Horner
137f388edd enhance: property ref values can store their
original value optionally with :property/value.
Currently applies to :url and :number and not :default
as :default is meant to be a block and thus highly coupled
to :block/content. By introducing this, functionality that relies
on original property values automatically work e.g.
sorting by :number property for query results just works
2024-06-13 23:03:18 -04:00
Gabriel Horner
7fa3fdf190 Revert "fix: tests"
This reverts commit d893e04925.
2024-06-13 21:25:21 -04:00
Tienson Qin
4d7ab822ff fix: undo redo tests 2024-06-13 09:32:38 +08:00
Gabriel Horner
13f5971d3c chore: mv worker.file.page-rename to appropriate ns
This ns is file graph specific so it should be in a file-graph
specific ns. Its current location was confusing as it was next to
other namespaces in frontend.worker.file.* that are not
file graph specific. Also moved related tests to correct location
2024-06-12 11:38:00 -04:00
rcmerci
9763b01ae4 fix(rtc): filter remote-ops by pending local ops 2024-06-12 16:26:27 +08:00
Gabriel Horner
08c29d8a39 fix: sorting for query table for db graphs
by using property db-idents. Fixes LOG-3075
2024-06-10 16:52:38 -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
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
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
rcmerci
bd0482f60e enhance(rtc): update block position related logic 2024-06-07 13:31:28 +08:00
Gabriel Horner
64c7368489 fix: frontend lint 2024-06-06 17:49:56 -04:00
Gabriel Horner
fd8bd1e3f2 fix: db graph test using :build/tags 2024-06-06 17:47:18 -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
08de1fc84d fix: full text search matches on page-ref uuids
fixes LOG-3147

I also removed properties from search, because it can make the search
results verbose and also increases time on datascript queries.
2024-06-07 01:12:47 +08:00
Gabriel Horner
7e6f5878d6 fix: not filter query bug
for db graphs. not filter was returning all blocks
including all built-in properties. Also fixed a couple
tests to be db-graph compatible
2024-06-06 10:57:34 -04:00
Tienson Qin
d893e04925 fix: tests 2024-06-06 15:02:10 +08:00
Tienson Qin
e0b85c01a6 fix: paste test 2024-06-06 06:33:47 +08:00
Gabriel Horner
62701e1b6e fix: tests with outdated datom counts
I think caused by recent macros parsing or whiteboard changes
2024-06-05 17:06:16 -04: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
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
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
Noah Pederson
b70768daa7 Fix Twitter's rename breaking macro wrapping (#11325)
* FIX twitter's rename causing automatic macro wrapping to not work

* ADD test to check for x => twitter macro expansion
2024-05-31 14:47:10 +08:00
Gabriel Horner
a4d8e05e2f fix: esc saves a tag class with a :db/ident
Also refactor to update class tests to use correct helper
2024-05-29 11:09:09 -04:00
rcmerci
958f306d84 enhance(rtc): update update-schema-op 2024-05-29 19:21:20 +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
rcmerci
98967184a7 enhance(rtc): add update-schema op 2024-05-28 18:42:19 +08:00
rcmerci
4a0f95c79f test(rtc): remove :fix-me for gen-remote-ops-test 2024-05-28 18:42:19 +08:00
rcmerci
fce5adb400 enhance(rtc): watch schema related attrs when db-listen 2024-05-28 16:22:41 +08:00
rcmerci
1b528b2fc6 fix(rtc): invalid datom value nil 2024-05-28 13:00:10 +08:00
Gabriel Horner
0fc01b94a3 fix: tests 2024-05-23 09:45:38 -04:00
rcmerci
ca413fe529 test(rtc): remove :fix-me for apply-remote-remove-ops-test2 2024-05-22 18:31:00 +08:00
rcmerci
701220dd28 chore: lint 2024-05-21 18:48:57 +08:00
rcmerci
c826cf5d4e fix(rtc): fix update-block-attrs, add tests 2024-05-21 18:38:58 +08:00
Gabriel Horner
efab7f403e chore: Remove unnecessary catch and rethrow for notification
Just encode notification in original exception to make conversion
as reusable as possible. Also make properties readable with :original-name
as they are case sensitive
2024-05-17 17:25:53 -04:00
Gabriel Horner
fd27374830 fix: test for removed unused behavior 2024-05-16 21:21:33 -04:00
Gabriel Horner
0284816f22 chore: replace uses of :string in tests and properties graph
Also removed test which tested an unused fn
2024-05-16 16:28:43 -04:00
rcmerci
d5fc88cbd4 test(rtc): remove :fix-me for local-db-tx->remote-ops-test 2024-05-16 21:53:14 +08:00
rcmerci
46a7a41afd test(rtc): remove :fix-me for entity-datoms=>ops-test 2024-05-16 21:38:31 +08:00
rcmerci
a12a0d3d30 refactor(rtc): support refactored update-op, update local db 2024-05-16 19:47:49 +08:00
Tienson Qin
55cec662e9 Add tests for the new undo/redo 2024-05-16 18:31:26 +08:00