Commit Graph

228 Commits

Author SHA1 Message Date
Gabriel Horner
e0b1f6b2de Move common uses of page-ref to its own ns
By having a specific ns for page-ref utils, our code is more readable
and intention revealing. Also found that
text/{get-page-name,page-ref-un-brackets!} was getting called in
contexts that didn't make sense e.g. query layer was checking for
markdown and org page-refs
2022-08-04 17:25:29 +08:00
Peng Xiao
ab6eec5fc3 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-03 14:12:10 +08:00
Gabriel Horner
49fbdd0244 Merge pull request #6214 from logseq/fix/hidden-properties-in-autocompletion
Fix: Property completion for hidden properties and property ordering
2022-08-01 14:42:06 -04:00
Peng Xiao
45272ef52b Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-01 10:22:15 +08:00
Gabriel Horner
42b7f5d189 Add two editable org built-in properties
Also ported old filetags property tests from b991599244.
2022-07-30 06:33:37 +08:00
Gabriel Horner
b1c98ec09c Fix property ordering for large property maps
Fixes #4907. Issue was that we were losing sort order by converting a
linked/sorted map to a normal unsorted map.  Also ensure
properties-order is a vec to simplify edn serialization
2022-07-28 15:46:18 -04:00
Peng Xiao
66a08f8916 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-07-26 09:31:48 +08:00
Gabriel Horner
c8864e777d Fix page-properties not using :property-pages/* config 2022-07-21 13:59:16 -04:00
Peng Xiao
2bb7ef5919 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-07-18 22:50:43 +08:00
Gabriel Horner
7370716215 Move editable linkable built-in props to var
They were also being referred to elsewhere in block.cljs
Also moved filters to editable as that is existing behavior
Also disabled verbosity of cli tests to allow graph-parser tests to be
more readable
2022-07-15 10:41:35 -04:00
llcc
54a7e61b26 Revert: don't parse some special property key values as pages
Produced two many extra pages.
2022-07-15 16:11:11 +08:00
llcc
cd6c355e8d fix testings 2022-07-15 15:52:00 +08:00
Gabriel Horner
a0087d7792 Add config options to disable property pages and to exclude certain ones 2022-07-15 15:26:09 +08:00
Peng Xiao
0b1119a61f fix tests 2022-07-13 14:46:38 +08:00
Peng Xiao
dbb49fe8d1 lint 2022-07-13 14:33:45 +08:00
Peng Xiao
deb0268ac5 fix graph-parser tests 2022-07-13 14:28:11 +08:00
Peng Xiao
a84ec7a5f3 fix block uuid 2022-07-13 14:20:30 +08:00
Peng Xiao
d33d1cfede wip add more tests 2022-07-13 03:20:22 +08:00
Tienson Qin
e8023b9246 fix: graph parser ci 2022-07-07 01:42:16 +08:00
Gabriel Horner
69ba15252e cli/parse-graph returns ast data as well
This data was not returned and is valuable for CI jobs
and possibly other functionality
2022-06-20 10:06:08 +08:00
Gabriel Horner
6608537909 Move logseq.graph-parser.db* namespaces to their own dep
Also add its own CI file
2022-06-10 15:39:11 +08:00
Gabriel Horner
01b28e26ee Exceptions during block extraction shouldn't delete data
This will prevent future occurrences of #5548
2022-06-08 13:19:50 +08:00
Gabriel Horner
5188c86547 Add tests for bug fix in #5553
Test normal and buggy case. Put these tests in graph-parser as
it allows us to test more user facing assertions and is easier to setup
2022-06-08 13:19:50 +08:00
Tienson Qin
78d1b17743 fix: ignore parsing for :file-path 2022-06-05 12:39:12 +08:00
Gabriel Horner
b142327491 Finish up logseq.graph-parser
- Parser now parses all graph files like the app does, not just pages and journals.
  This required extracting another fn from repo-handler
- Add and tweak CI steps that are specific to graph-parser. All
  namespaces in this library are checked for nbb compatibility
- Cleaned up parser cli API so only one fn is needed for scripts
- Tests were updated to match new parsing behavior
- large_vars.clj can run with a smaller max-line-count after only refactoring two fns
- Add docs
2022-05-27 00:54:30 -04:00
Gabriel Horner
1e299052ce Setup cljs tests for graph-parser
- Also reuse docs graph test assertions to ensure main app
and graph-parser are in sync.
- Removed promesa from extract tests
since they are no longer async
- Added cljs and npm deps that were missing and caught by cljs tests
2022-05-26 18:04:45 -04:00
Gabriel Horner
15b8e5e9df Setup CI jobs that are only for graph-parser
Also move all non graph-parser fns to frontend thanks to carve lint
2022-05-26 18:04:45 -04:00
Gabriel Horner
4813d903d5 Move graph-parser to its own dir 2022-05-26 18:04:45 -04:00