Commit Graph

385 Commits

Author SHA1 Message Date
Gabriel Horner
8f411fad42 enhance: allow user properties with other namespaces
to allow for imported properties to have a different namespace than the
one the editor generates. Update schema example graph which now imports
properties as :schema.property/X
2024-04-19 16:54:06 -04:00
Gabriel Horner
449d4d3600 fix: generate schema graph with new properties
Also remove unused bindings and basic validation to graph creation
2024-04-19 10:45:30 -04:00
Gabriel Horner
390892e524 fix: build all closed value property types correctly
Fixes building of :url and :number closed value properties which
affected properties graph and would effect future built-in properties.
Also simplify translation of property values by keeping it only
in create-graph namespaces
2024-04-17 15:52:55 -04:00
Gabriel Horner
0aa4bda66c fix: inlined db-based-graph? calls in db-property
Addressed fixmes for db-based-graph fns that were inlined to prevent
circular dependencies b/n db-property and sqlite-util.  Moved multi
graph fns to db-property-util and existing db-property-util to
db-property-build to address this
2024-04-16 14:43:28 -04:00
Gabriel Horner
90a7fe62c6 fix: generating graph with properties 2024-04-12 17:07:58 -04:00
Gabriel Horner
cbcff4bae8 fix: schema graph creation for previous properties schema
Also add db/id to query script and fix outdated case insensitive
constraint on property db idents
2024-04-11 17:46:49 -04:00
Tienson Qin
419eac1b16 Merge branch 'feat/db' into refactor/db-properties-schema 2024-04-11 19:56:34 +08:00
rcmerci
5d28129f81 fix(lang): remove non-exist key 2024-04-11 14:47:50 +08:00
Gabriel Horner
4f8d76c79f Merge branch 'feat/db' into refactor/db-properties-schema 2024-04-09 16:29:46 -04:00
Gabriel Horner
aa41e64bdf fix typo 2024-04-09 16:29:34 -04:00
Gabriel Horner
a42e5f659a fix: new graphs don't create unused hidden pages for
date and page closed properties. Observed with properties graph
2024-04-09 14:53:47 -04:00
Gabriel Horner
d44bd44ace fix: generate date and page closed properties in properties graph 2024-04-09 09:27:08 -04:00
Gabriel Horner
6a2b6d2913 fix: adding class properties can result
in clobbered db idents. Also rename fn to make its
purpose explicit
2024-04-08 16:32:27 -04:00
rcmerci
ef834cdaf7 feat: add defkeyword to define keyword
- add docstring for common used keywords
- support jump to definition in editors
- register malli-schema for keywords if provided
2024-04-07 15:40:30 +08:00
rcmerci
2b27969b05 dev: add bb dev:lint-and-test 2024-04-07 00:02:40 +08:00
Gabriel Horner
009e5b6d62 enhance: consistently create sanitized property ident
for new properties. Also made build-new-property easier to
use by making property name optional
2024-04-05 16:55:40 -04:00
Gabriel Horner
608d627544 fix: add back properties validation
and fix closed validation. Also temporarily comment out properties graph parts
that are still invalid
2024-04-04 21:09:28 -04:00
Gabriel Horner
661cdc8636 fix: built-in properties with :name have incorrect names
Properties like logseq.table.version weren't available to add.
Also added conflict detection on properties graph which is how I
indirectly found this bug
2024-04-02 15:57:33 -04:00
Gabriel Horner
3d49585078 fix: create properties graph and validate graph script 2024-04-02 13:58:52 -04:00
Gabriel Horner
12c667fabb Update nbb-logseq to latest datascript 2024-04-02 09:36:28 -04:00
Gabriel Horner
c4fc3a193e fix: new graph should be valid
closed values were invalid. Also fixed a couple db tests
2024-04-01 16:40:01 -04:00
Tienson Qin
1ea6b6fff3 fix: property tests 2024-04-01 13:54:04 +08:00
Tienson Qin
8d6916cfd7 wip: fix property-related tests 2024-04-01 12:24:41 +08:00
Tienson Qin
958507262e Merge branch 'feat/db' into refactor/db-properties-schema 2024-03-29 15:51:28 +08:00
Tienson Qin
8d31f94b24 Remove :block/uuid and :block/name for properties 2024-03-28 17:37:28 +08:00
Gabriel Horner
c5f72221ea fix: update schema and script to use new attribute 2024-03-26 12:20:41 -04:00
Gabriel Horner
8296426614 fix: lookup hardcoded db names by db/ident
also fix lint
2024-03-25 10:07:24 -04:00
Gabriel Horner
b6177c758c fix: remove built-in pages for CLI db graphs
built-in pages no longer called for DB graphs. Related to LOG-3046.
Also fixed frontend lint
2024-03-14 09:56:50 -04:00
Gabriel Horner
00ddbdea7a enhance: properties graph script supports additional config
e.g. `-c '{:publishing/all-pages-public? true}'` to turn on publishing
by default
2024-03-11 16:29:04 -04:00
Gabriel Horner
96b35c0252 Update nbb-logseq to stub in cljs-bean.transit 2024-03-11 15:19:50 -04:00
Gabriel Horner
15825bd2ea fix: page-property queries for closed values
Also update properties graph to demo all the page property equivalents
to block property examples
2024-03-09 00:16:54 -05:00
Gabriel Horner
62e6084b45 fix: page/date closed values for *property queries
Also updated example graph to show closed value queries working
2024-03-08 10:17:22 -05:00
Tienson Qin
22a9b61b32 fix: remove :block/metadata
Use built-in properties
2024-03-08 01:01:55 +08:00
Gabriel Horner
c6e358c983 fix: outliner test failing b/c not nbb compatible
bumped to latest nbb-logseq which is
2024-03-06 11:06:18 -05:00
Gabriel Horner
121bc212e5 chore: simplify create script with date helpers now available in dep 2024-02-07 12:42:00 -05:00
Gabriel Horner
b1bcc1b2dd fix: unit test, lint + script 2024-02-07 04:09:01 +08:00
Gabriel Horner
42c1785bb8 enhance: add script to build large graphs with configurable sizes 2024-02-06 12:51:02 -05:00
Gabriel Horner
e0059892aa chore: mv file-based repo and repo-config fns as well nfs
to file-based namespaces. Confirmed and QAed these are only for
file-based. This moves the majority of graph-parser/parse-file calls
into file-based namespaces. The only ones left are in handler.file which
can be done later
2024-02-02 14:40:05 -05:00
Gabriel Horner
1448ac8b7e fix lint failing due to moved dir 2024-02-01 08:50:49 -05:00
Gabriel Horner
28e637e855 chore: merge 2 new property fns together
refactor possible since page-name-sanity-lc in common-util
2024-01-29 09:55:34 -05:00
Gabriel Horner
c4f6873a58 fix: schema.org graph silently failing to use new tasks
A new existing page was silently being overwritten by a schema.org page
Added detection for future conflicts with existing pages as well
as conflicts of renamed pages. Renamed conflicting properties
in same way as classes. Also added a debug option to create an edn
file which is idempotent and helpful to confirm there are no
regressions
2024-01-26 12:58:40 -05:00
Gabriel Horner
c0569e83c5 fix: publishing --dev with file graphs 2024-01-24 09:24:19 -05:00
Gabriel Horner
b55fe07768 Merge branch 'master' into feat/db 2024-01-24 09:08:41 -05:00
Gabriel Horner
dc5127b48a enhance: publishing --dev also watches frontend
also provide a dedicated backend command for simpler
rebuilding of backend
2024-01-24 08:53:48 -05:00
Gabriel Horner
3cd7b2d762 enhance: add a --dev mode to publishing that pairs with shadow's watch 2024-01-24 08:53:48 -05:00
Taylor Hoffmann
8710bb9d61 enhance: added brazilian portuguese translations (#10891) 2024-01-24 08:39:37 -05:00
Gabriel Horner
77bc1d5d6b chore: update better-sqlite3 and mldoc in deps to match app 2024-01-23 11:36:32 -05:00
Gabriel Horner
0768809a86 fix: lints and disable intermittent failing test
- Reverted config/db-based-graph? check in a db only namespace
- Removed unused ns as it appears we just used another fn instead.
- /cc @RCmerci on failing test
2024-01-23 10:48:14 -05:00
Gabriel Horner
7831476c70 enhance: add a --dev mode to publishing that pairs with shadow's watch 2024-01-22 14:35:36 -05:00
Tienson Qin
b06b01b88b Merge branch 'master' into feat/db 2024-01-22 12:08:37 +08:00