Commit Graph

279 Commits

Author SHA1 Message Date
Gabriel Horner
17d2462343 Move rules into db dep as it's useful for external apps
- rules is already used by logseq-query and will be useful for
  nbb-logseq
- Updated db jobs to run in deps/db by default. Less typing but
  more importantly discourages independent libraries from depending on
  external scripts.
- Moved lint-rules task into db since it is db specific now
- Also remove nbb-logseq from top-level as all nbb compatibility is in
  deps.
2022-06-10 15:39:11 +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
Tienson Qin
f4f1ff1ba2 fix: outdent blocks and re-enable outliner tests
related to #5604
2022-06-08 13:06:10 +08:00
Tienson Qin
09a9cda59c fix: re-enable outliner core random tests 2022-06-07 01:25:55 +08:00
Tienson Qin
4ff98966da fix: copy paste
related to #5561
2022-06-06 13:21:57 +08:00
Tienson Qin
f49a28fa7b Merge pull request #5420 from logseq/enhance/graph-parser-part-four
Enhance: Finish up graph-parser
2022-06-02 10:00:30 +08:00
Tienson Qin
5f21e2d07e fix: move blocks 2022-06-01 12:56:39 +08:00
Gabriel Horner
83a4e62bfd Merge branch 'master' into enhance/graph-parser-part-four 2022-05-30 10:18:34 -04:00
Tienson Qin
3c886f4330 Merge pull request #5374 from jonasdiemer/calc-pretty-floats
Calculator: improved output of float numbers
2022-05-30 18:19:26 +08:00
Tienson Qin
cc735fffc7 fix: tests 2022-05-29 16:31:17 +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
Gabriel Horner
2b48d95493 Move frontend db namespaces that graph-parser depends on
graph-parser should be independent of the app
2022-05-26 18:04:45 -04:00
Gabriel Horner
e999ebc149 Automatically set extract-options correctly
- Removed state paths [:config :text-formats], [:config :img-formats]
  and [:me :settins :date-formatter] as they have been unused since
  their introduction in 2020
- Converted incorrect js/Error refs
- Also merged db.config test helpers
2022-05-26 18:04:45 -04:00
Gabriel Horner
11d3d5b3cd Remove unused :me/* attributes
These were removed in b3f67c69b1.
Also removed related, unused spec
2022-05-26 18:04:45 -04:00
Gabriel Horner
89d73bc178 Reuse starting db conn
Also move circular dep hack to ns that both nbb and cljs can use
2022-05-26 18:04:45 -04:00
Gabriel Horner
3bc2479181 First pass at main graph-parser ns
- Copied tests pass!
- Still a number of TODOs left
2022-05-26 18:04:45 -04:00
Tienson Qin
e2359c61f0 chore: disable random-inserts and random-deletes tests 2022-05-24 23:42:31 +08:00
Tienson Qin
ab662fa67d chore: disable random-moves testing for now 2022-05-24 23:31:26 +08:00
Andelf
356d80d603 fix(test): test condition 2022-05-24 17:22:49 +08:00
Jonas Diemer
f047f58990 Adjusted test to work with BigNums 2022-05-23 15:00:25 +02:00
Gabriel Horner
b9bbd0c605 Finish migrating extract to nbb 2022-05-13 15:47:54 -04:00
Gabriel Horner
a832564782 Migrate most of extract ns to nbb 2022-05-13 11:52:35 -04:00
Gabriel Horner
b1e226745d Finish migration block ns to nbb 2022-05-12 16:58:26 -04:00
Gabriel Horner
2c725ca5af Remove unused test namespaces
frontend.react was only used in a test and never used elsewhere
2022-05-12 16:57:28 -04:00
Gabriel Horner
b83f6bbd19 Migrate half the block deps to be nbb compatible 2022-05-12 16:57:28 -04:00
Gabriel Horner
22ddae8998 Move graph-parser related block code to proper ns and nbb migration wip 2022-05-12 16:57:28 -04:00
Gabriel Horner
112e6e2d97 Test second nbb ns thanks to upstream nbb fix :) 2022-05-11 12:33:17 -04:00
Gabriel Horner
44bc0e8f40 Add a few more mldoc unit tests
Also remove local integration test
2022-05-10 20:22:48 -04:00
Gabriel Horner
a184b1ccac Reuse helpers b/n repo and mldoc 2022-05-10 20:22:48 -04:00
Gabriel Horner
b79b1ca36e Mldoc tests run under nbb 2022-05-10 20:22:48 -04:00
Gabriel Horner
20b8b9624d Moved nbb ns into graph-parser. nbb mldoc tests wip 2022-05-10 20:22:48 -04:00
Gabriel Horner
65804b4183 Split out text ns to graph-parser 2022-05-10 20:22:48 -04:00
Gabriel Horner
f529777d78 frontend.text conversion WIP
Removed extract-level-spaces b/c it's not used
2022-05-10 20:22:48 -04:00
Gabriel Horner
67461aaede Necessary parts of mldoc are nbb compatible
Also merged in parser tests which were not running
2022-05-10 20:22:48 -04:00
Gabriel Horner
657bb09591 Add mldoc integration test and start mldoc split 2022-05-10 20:22:48 -04:00
Tienson Qin
2841fd4844 fix: lint warnings and tests 2022-05-09 00:46:27 +08:00
Tienson Qin
3f4ca7c4ba Merge branch 'master' into enhance/graph-parser-part-one 2022-05-08 09:53:54 +08:00
Gabriel Horner
ac066ac671 Disable two outliner tests which fail intermittently the most 2022-05-07 15:04:29 +08:00
Gabriel Horner
a58a411567 Move config fns and remaining util fns that mldoc depends on 2022-05-04 12:02:36 -04:00
Gabriel Horner
6c91854c71 Mark generative tests to exclude them for fast local test runs 2022-05-04 12:02:36 -04:00
Gabriel Horner
a1fe34f85e Split out test fn that is getting out of control 2022-05-04 12:02:36 -04:00
Gabriel Horner
0f5711afa8 More high level graph parsing tests 2022-05-04 12:02:36 -04:00
Gabriel Horner
c1a024c060 Add ref count to parse test 2022-05-04 12:02:36 -04:00
Gabriel Horner
efd53b4591 Basic test for parsing docs graph 2022-05-04 12:02:36 -04:00
Tienson Qin
198efb164c fix: lint warnings 2022-04-24 11:52:32 +08:00
Tienson Qin
50f8954886 fix: markdown fenced code parsing 2022-04-24 11:48:30 +08:00
Tienson Qin
98ac07d990 fix: only reorder the first matched ordered list 2022-04-21 21:39:09 +08:00