unigraph-dev / unigraph-dev Goto Github PK
View Code? Open in Web Editor NEWA local-first and universal knowledge graph, personal search engine, and workspace for your life.
Home Page: https://unigraph.dev/
License: MIT License
A local-first and universal knowledge graph, personal search engine, and workspace for your life.
Home Page: https://unigraph.dev/
License: MIT License
It's probably a styling problem.
A ToDo should be able to link to another item, e.g. a note. Currently when entering [[]]
while creating a task, a drop-down with items to link to isn't displayed as it is when entering note content. Entering the name of an existing note, e.g. Another note
doesn't result in a navigable link, and renders as below:
Windows 11, Unigraph 16d448f
it's not actually implemented. I'm on it.
After pulling latest I get the following error on doing yarn backend-start
:
❯ yarn backend-start
yarn run v1.22.17
$ yarn workspace unigraph-dev-backend start
warning package.json: No license field
$ yarn build && node --trace-warnings dist
warning package.json: No license field
$ run-script-os
warning package.json: No license field
$ pwsh -Command "tsc && (Copy-Item ../../secrets.env.json.gpg -Destination dist)"
D:\dev\projects-open-source\unigraph-dev\node_modules\@grpc\grpc-js\build\src\call.js:31
return Object.assign(new Error(message), status);
^
Error: 2 UNKNOWN: Schema does not contain a matching predicate for field definition in type Type
at Object.callErrorFromStatus (D:\dev\projects-open-source\unigraph-dev\node_modules\@grpc\grpc-js\build\src\call.js:31:26)
at Object.onReceiveStatus (D:\dev\projects-open-source\unigraph-dev\node_modules\@grpc\grpc-js\build\src\client.js:176:52)
at Object.onReceiveStatus (D:\dev\projects-open-source\unigraph-dev\node_modules\@grpc\grpc-js\build\src\client-interceptors.js:336:141)
at Object.onReceiveStatus (D:\dev\projects-open-source\unigraph-dev\node_modules\@grpc\grpc-js\build\src\client-interceptors.js:299:181)
at D:\dev\projects-open-source\unigraph-dev\node_modules\@grpc\grpc-js\build\src\call-stream.js:145:78
at processTicksAndRejections (node:internal/process/task_queues:78:11) {
code: 2,
details: 'Schema does not contain a matching predicate for field definition in type Type',
metadata: Metadata {
internalRepr: Map(1) { 'content-type' => [ 'application/grpc' ] },
options: {}
}
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed.
Exit code: 1
Command: C:\Program Files\nodejs\node.exe
Arguments: d:\dev\nvm\v16.13.1\node_modules\yarn\lib\cli.js start
Directory: D:\dev\projects-open-source\unigraph-dev\packages\unigraph-dev-backend
Output:
info Visit https://yarnpkg.com/en/docs/cli/workspace for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Windows 11, Unigraph a82ac19
When using ((Some note))
and choosing to create that note on the fly, it is created and the title of the transcluded note is shown in the parent note, but it is not obvious that it is a transcluded note rather than just being a regular line of content.
In the note above, This is a transcluded note
is not marked as being a transcluded note until some content is added to it. At that time, it does get the vertical bar indicating transclusion.
Windows 11, Unigraph 16d448f
Getting the following error after pulling latest and doing yarn, yarn build-deps, yarn backend-start
.
❯ yarn backend-start
yarn run v1.22.17
$ yarn workspace unigraph-dev-backend start
warning package.json: No license field
$ yarn build && node --trace-warnings dist
warning package.json: No license field
$ run-script-os
warning package.json: No license field
$ pwsh -Command "tsc && (Copy-Item ../../secrets.env.json.gpg -Destination dist)"
Actually doing the upsert...
Error: 2 UNKNOWN: : Query couldn't be executed
at Object.callErrorFromStatus (D:\dev\projects-open-source\unigraph-dev\node_modules\@grpc\grpc-js\build\src\call.js:31:26)
at Object.onReceiveStatus (D:\dev\projects-open-source\unigraph-dev\node_modules\@grpc\grpc-js\build\src\client.js:176:52)
at Object.onReceiveStatus (D:\dev\projects-open-source\unigraph-dev\node_modules\@grpc\grpc-js\build\src\client-interceptors.js:336:141)
at Object.onReceiveStatus (D:\dev\projects-open-source\unigraph-dev\node_modules\@grpc\grpc-js\build\src\client-interceptors.js:299:181)
at D:\dev\projects-open-source\unigraph-dev\node_modules\@grpc\grpc-js\build\src\call-stream.js:145:78
at processTicksAndRejections (node:internal/process/task_queues:76:11) {
code: 2,
details: ": Query couldn't be executed",
metadata: Metadata {
internalRepr: Map(1) { 'content-type' => [Array] },
options: {}
}
}
D:\dev\projects-open-source\unigraph-dev\packages\unigraph-dev-backend\dist\dgraphClient.js:257
const tns = res.getLatency().getTotalNs();
^
TypeError: res.getLatency is not a function
at DgraphClient.queryDgraph (D:\dev\projects-open-source\unigraph-dev\packages\unigraph-dev-backend\dist\dgraphClient.js:257:25)
at processTicksAndRejections (node:internal/process/task_queues:94:5)
at async DgraphClient.getSchemasFromTable (D:\dev\projects-open-source\unigraph-dev\packages\unigraph-dev-backend\dist\dgraphClient.js:303:22)
at async Object.cache.updateNow (D:\dev\projects-open-source\unigraph-dev\packages\unigraph-dev-backend\dist\datamodelManager.js:43:25)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed.
Exit code: 1
Command: C:\Program Files\nodejs\node.exe
Arguments: d:\dev\nvm\v15.14.0\node_modules\yarn\lib\cli.js start
Directory: D:\dev\projects-open-source\unigraph-dev\packages\unigraph-dev-backend
Output:
info Visit https://yarnpkg.com/en/docs/cli/workspace for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
adi@VESUVIUS D:\dev\projects-open-source\unigraph-dev main ↑5 [22:02]
$ sudo docker build -t unigraph-devserver .
...
warning " > @babel/[email protected]" has unmet peer dependency "@babel/core@>=7.11.0".
warning " > [email protected]" has unmet peer dependency "@babel/plugin-syntax-flow@^7.14.5".
warning " > [email protected]" has unmet peer dependency "@babel/plugin-transform-react-jsx@^7.14.9".
warning "workspace-aggregator-bbae34d0-3434-4676-9bdc-8442d98e1ea5 > unigraph-dev-explorer > @monaco-editor/[email protected]" has incorrect peer dependency "monaco-editor@^0.23.0".
warning "workspace-aggregator-bbae34d0-3434-4676-9bdc-8442d98e1ea5 > unigraph-dev-explorer > @sandstreamdev/[email protected]" has unmet peer dependency "prop-types@^15.7.2".
warning "workspace-aggregator-bbae34d0-3434-4676-9bdc-8442d98e1ea5 > unigraph-dev-explorer > [email protected]" has incorrect peer dependency "eslint@^7.0.0".
warning "workspace-aggregator-bbae34d0-3434-4676-9bdc-8442d98e1ea5 > unigraph-dev-explorer > [email protected]" has unmet peer dependency "prop-types@^15.5.0".
warning "workspace-aggregator-bbae34d0-3434-4676-9bdc-8442d98e1ea5 > unigraph-dev-explorer > [email protected]" has incorrect peer dependency "react@^15.5.0 || ^16.0.0".
warning "workspace-aggregator-bbae34d0-3434-4676-9bdc-8442d98e1ea5 > unigraph-dev-explorer > @testing-library/[email protected]" has unmet peer dependency "@testing-library/dom@>=5".
[5/5] Building fresh packages...
error /app/node_modules/nlapack, /app/packages/unigraph-dev-electron/node_modules/nlapack: Command failed.
Exit code: 1
Command: npm run build
Arguments:
Directory: /app/packages/unigraph-dev-electron/node_modules/nlapack
Output:
> [email protected] build
> node-gyp rebuild -j max
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3"
gyp http GET https://nodejs.org/download/release/v16.17.0/node-v16.17.0-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v16.17.0/node-v16.17.0-headers.tar.gz
gyp http GET https://nodejs.org/download/release/v16.17.0/SHASUMS256.txt
gyp http 200 https://nodejs.org/download/release/v16.17.0/SHASUMS256.txt
(node:116) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
(Use `node --trace-deprecation ...` to show where the warning was created)
gyp info spawn /usr/bin/python3
gyp info spawn args [
gyp info spawn args '/app/node_modules/@npmcli/run-script/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/app/packages/unigraph-dev-electron/node_modules/nlapack/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/app/node_modules/@npmcli/run-script/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/root/.cache/node-gyp/16.17.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/16.17.0',
gyp info spawn args '-Dnode_gyp_dir=/app/node_modules/@npmcli/run-script/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/16.17.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/app/packages/unigraph-dev-electron/node_modules/nlapack',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack at getNotFoundError (/app/node_modules/@npmcli/run-script/node_modules/which/which.js:10:17)
gyp ERR! stack at /app/node_modules/@npmcli/run-script/node_modules/which/which.js:57:18
gyp ERR! stack at new Promise (<anonymous>)
gyp ERR! stack at step (/app/node_modules/@npmcli/run-script/node_modules/which/which.js:54:21)
gyp ERR! stack at /app/node_modules/@npmcli/run-script/node_modules/which/which.js:71:22
gyp ERR! stack at new Promise (<anonymous>)
gyp ERR! stack at subStep (/app/node_modules/@npmcli/run-script/node_modules/which/which.js:69:33)
gyp ERR! stack at /app/node_modules/@npmcli/run-script/node_modules/which/which.js:80:22
gyp ERR! stack at /app/node_modules/isexe/index.js:42:5
gyp ERR! stack at /app/node_modules/isexe/mode.js:8:5
gyp ERR! System Linux 5.15.0-48-generic
gyp ERR! command "/usr/bin/node" "/app/node_modules/.bin/node-gyp" "rebuild" "-j" "max"
gyp ERR! cwd /app/packages/unigraph-dev-electron/node_modules/nlapack
gyp ERR! node -v v16.17.0
gyp ERR! node-gyp -v v7.1.2
gyp ERR! not ok
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
The command '/bin/sh -c cd /app && yarn --network-timeout 600000' returned a non-zero code: 1
Using checkout 1613443.
Ubuntu 22.04.1 LTS
Opening either Apps or Connection view does nothing and shows "Error rendering component"
I am attempting to run unigraph locally on an ubuntu machine, following the readme.
When starting the server, dgraph starts without issues, but the backend server bootstrap fails. After a few successful upserts, I get the following error message:
[Subscription] Refreshing subscriptions...
[Subscription] Total of 0 type queries, 0 object queries, and 1 query queries,
[Subscription] Merged into 1 queries.
/home/unigraph/unigraph-dev/packages/unigraph-dev-common/lib/utils/entityUtils.js:415
entries = lodash_1.default.merge(entries, { _value: makePart(schemaMap[type]._definition, depth + 1, true) });
^
TypeError: Cannot read properties of undefined (reading '_definition')
at makePart (/home/unigraph/unigraph-dev/packages/unigraph-dev-common/lib/utils/entityUtils.js:415:90)
at /home/unigraph/unigraph-dev/packages/unigraph-dev-common/lib/utils/entityUtils.js:438:36
at Array.forEach (<anonymous>)
at makePart (/home/unigraph/unigraph-dev/packages/unigraph-dev-common/lib/utils/entityUtils.js:437:47)
at makePart (/home/unigraph/unigraph-dev/packages/unigraph-dev-common/lib/utils/entityUtils.js:459:56)
at /home/unigraph/unigraph-dev/packages/unigraph-dev-common/lib/utils/entityUtils.js:423:41
at Array.map (<anonymous>)
at makePart (/home/unigraph/unigraph-dev/packages/unigraph-dev-common/lib/utils/entityUtils.js:420:58)
at makePart (/home/unigraph/unigraph-dev/packages/unigraph-dev-common/lib/utils/entityUtils.js:415:65)
at /home/unigraph/unigraph-dev/packages/unigraph-dev-common/lib/utils/entityUtils.js:438:36
error Command failed with exit code 1.
I instrumented, and found that the type
is subentity
; the loop is called successfully (thrice) with type executable
.
Getting that error for a whole bunch of files when doing yarn explorer-start
. Might want to not enforce the linebreak style.
Windows 11, Unigraph 8eff74b
Building daily notes, "Welcome to Unigraph" stays with the header of the Daily Notes views.
I would expect that the text input box is cleared and focused after an item is entered using the ADD
button, so that a new item can rapidly be entered. As is, the previously entered text remains there and must be cleared.
Windows 11, Unigraph 16d448f
This option seems to do the opposite of what it says.
The note From Another Window
is actually the latest.
Windows 11, Unigraph 16d448f
It should be possible to rearrange content rows in notes using both keyboard shortcuts (e.g. alt + <up-arrow|down-arrow>
or via drag-drop.
Windows 11, Unigraph 16d448f
When I try to launch Unigraph on my Intel Mac with macOS 10.14.6, the app creates a window with a progress bar on top and then it crashes. Crash report is attached: Unigraph_2022-04-19-204630_MacBook-Air.crash.zip
Only create a new note view if an existing view for the linked note doesn't exist. A new view should be opened only if the link is followed with a modifier, e.g. ctrl + click
. In the example below, the link to Another note
was followed from the note A note for today
by clicking it. As shown, a new view for Another note
was opened despite one already existing.
Windows 11, Unigraph 16d448f
Click here to start writing
should be selected and focused so that one can just start typing note content.
Windows 11, Unigraph 16d448f
Currently, every line of content in a note has a leading bullet marker. This is quite a heavy marker visually and should be optional.
Windows 11, Unigraph 16d448f
Currently Unigraph fetches whole object (including children) for each linked reference but that's not efficient.
We should fetch UIDs only for linked references, then use object-specific queries to speed up the process.
External links are properly rendered in content, but it doesn't seem possible to follow them. In a note, a single click on a link just expands text to show the link markup. In a ToDo, a single click does nothing. In either case, a ctrl + click
or other key/mouse combination also doesn't follow the link to display it, e.g., in a browser/Unigraph view, etc.
Windows 11, Unigraph 16d448f
This leads to duplicate schema declarations with same unigraph.id but not combined.
When a task/to-do is completed, it disappears. Choosing no-filter
for the To-Dos view doesn't show completed items, as would be expected.
Windows 11, Unigraph 16d448f
Things to do:
ERROR: failed to solve: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount2422556431/.Dockerfile.base: no such file or directory
Once created, the text of ToDo items is not editable as it should be.
Windows 11, Unigraph 16d448f
Continuing discussion from #454
I was considering adding a patch to the build pipeline that updates the sha256
set accordingly as new AppImages were build.
@thesophiaxu
Does that sound reasonable to you?
i.e. if a note block is referenced in 2 places, we should not delete the object
In Firefox, when starting up Unigraph, I get the following error:
Closing this error overlay view allows the app to continue. The error is probably due to having added some favorites (e.g. the library view) and then deleted the favorite from the trash bin. Chrome doesn't seem to bring up the same error with yarn explorer-start
, but the differing behaviour might be because of the browser-local state.
Windows 11, Unigraph 43ebb87
When creating a ToDo using the OmniBar, if I type some text [[
, there is no autocompletion offered. If, on the other hand, I type some text [[]]
and then back up into the brackets, completion is then offered.
Windows 11, Unigraph de86927
I think Docker would be a very nice addition since I'm having problems setting it up and docker(-compose) would make it way easier!
Covering every other window and overriding window manager settings around size and location.
It would be easier for me to build the web app - not Electron version - on FreeBSD.
Currently the RSS reader only supports text items but ignores podcast links: we should support them as well
Time-frame on whole-day calendar events for day d
goes from d 00:00
to d+1 23:59
rather than d 00:00
to d 23:59
When hitting Enter
, I would expect that the currently typed text is added to the list of tasks, when using the ADD
text input box:
Windows 11, Unigraph 16d448f
By @edbmuir on Discord:
I tried renaming a note in the notes interface which kept reseting to its original then I went into the JSON viewer to edit it, which resulted in a crash with this error:
Building entity part error: Error: Building entity part error: TypeError: Schema check failure for object: "Thoughts about Unigraph"{"uid":"0x50dc","_properties":[{"uid":"0x50dd","_definition":{"uid":"0x50d6","type":{"uid":"0x4e8d","unigraph.id":"$/schema/interface/textual","dgraph.type":["Type"]}},"_indexAs":"name","_key":"text"},{"uid":"0x50de","_definition":{"uid":"0x50d4","_parameters":{"uid":"0x50da","_element":{"uid":"0x50d7","_parameters":{"uid":"0x50d3","_definitions":[{"uid":"0x50d8","type":{"uid":"0x4e4f","unigraph.id":"$/schema/subentity","dgraph.type":["Type"]}},{"uid":"0x50d9","type":{"uid":"0x4e4b","unigraph.id":"$/schema/interface/semantic","dgraph.type":["Type"]}}]},"type":{"uid":"0x4e2b","unigraph.id":"$/composer/Union"}}},"type":{"uid":"0x4e2a","unigraph.id":"$/composer/Array"}},"_key":"children"}],"_parameters":{"uid":"0x50d5","_indexedBy":{"uid":"0x4e26","unigraph.id":"$/primitive/string"}},"type":{"uid":"0x4e2c","unigraph.id":"$/composer/Object"}}$/primitive/string"Thoughts about Unigraph"{"uid":"0x50dc","_properties":[{"uid":"0x50dd","_definition":{"uid":"0x50d6","type":{"uid":"0x4e8d","unigraph.id":"$/schema/interface/textual","dgraph.type":["Type"]}},"_indexAs":"name","_key":"text"},{"uid":"0x50de","_definition":{"uid":"0x50d4","_parameters":{"uid":"0x50da","_element":{"uid":"0x50d7","_parameters":{"uid":"0x50d3","_definitions":[{"uid":"0x50d8","type":{"uid":"0x4e4f","unigraph.id":"$/schema/subentity","dgraph.type":["Type"]}},{"uid":"0x50d9","type":{"uid":"0x4e4b","unigraph.id":"$/schema/interface/semantic","dgraph.type":["Type"]}}]},"type":{"uid":"0x4e2b","unigraph.id":"$/composer/Union"}}},"type":{"uid":"0x4e2a","unigraph.id":"$/composer/Array"}},"_key":"children"}],"_parameters":{"uid":"0x50d5","_indexedBy":{"uid":"0x4e26","unigraph.id":"$/primitive/string"}},"type":{"uid":"0x4e2c","unigraph.id":"$/composer/Object"}}$/primitive/string
"Thoughts about Unigraph"{"uid":"0x50e6","type":{"uid":"0x50df","unigraph.id":"$/schema/note_block","dgraph.type":["Type"]}}$/primitive/string
/Users/ericmuir/Projects/unigraph/packages/unigraph-dev-common/lib/utils/entityUtils.js:249
throw new Error('Building entity part error: ' + e + JSON.stringify(rawPart) + JSON.stringify(localSchema) + rawPartUnigraphType + '\n');
^
Error: Building entity part error: Error: Building entity part error: Error: Building entity part error: TypeError: Union type does not allow ambiguous or nonexistent selections!"Thoughts about Unigraph"{"uid":"0x50e5","type":{"uid":"0x4e2b","unigraph.id":"$/composer/Union"},"_parameters":{"uid":"0x50e7","_definitions":[{"uid":"0x4e87","type":{"uid":"0x4e80","unigraph.id":"$/schema/note","dgraph.type":["Type"]}},{"uid":"0x4e89","type":{"uid":"0x4e83","unigraph.id":"$/schema/html","dgraph.type":["Type"]}},{"uid":"0x4e8a","type":{"uid":"0x4e86","unigraph.id":"$/schema/markdown","dgraph.type":["Type"]}},{"uid":"0x50e6","type":{"uid":"0x50df","unigraph.id":"$/schema/note_block","dgraph.type":["Type"]}}]}}$/primitive/string
available types: $/schema/note ,$/schema/html ,$/schema/markdown ,$/schema/note_block
"Thoughts about Unigraph"{"uid":"0x50e5","type":{"uid":"0x4e2b","unigraph.id":"$/composer/Union"},"_parameters":{"uid":"0x50e7","_definitions":[{"uid":"0x4e87","type":{"uid":"0x4e80","unigraph.id":"$/schema/note","dgraph.type":["Type"]}},{"uid":"0x4e89","type":{"uid":"0x4e83","unigraph.id":"$/schema/html","dgraph.type":["Type"]}},{"uid":"0x4e8a","type":{"uid":"0x4e86","unigraph.id":"$/schema/markdown","dgraph.type":["Type"]}},{"uid":"0x50e6","type":{"uid":"0x50df","unigraph.id":"$/schema/note_block","dgraph.type":["Type"]}}]}}$/primitive/string
"Thoughts about Unigraph"{"uid":"0x50d6","type":{"uid":"0x4e8d","unigraph.id":"$/schema/interface/textual","dgraph.type":["Type"]}}$/primitive/string
{"text":"Thoughts about Unigraph"}{"uid":"0x50dc","_properties":[{"uid":"0x50dd","_definition":{"uid":"0x50d6","type":{"uid":"0x4e8d","unigraph.id":"$/schema/interface/textual","dgraph.type":["Type"]}},"_indexAs":"name","_key":"text"},{"uid":"0x50de","_definition":{"uid":"0x50d4","_parameters":{"uid":"0x50da","_element":{"uid":"0x50d7","_parameters":{"uid":"0x50d3","_definitions":[{"uid":"0x50d8","type":{"uid":"0x4e4f","unigraph.id":"$/schema/subentity","dgraph.type":["Type"]}},{"uid":"0x50d9","type":{"uid":"0x4e4b","unigraph.id":"$/schema/interface/semantic","dgraph.type":["Type"]}}]},"type":{"uid":"0x4e2b","unigraph.id":"$/composer/Union"}}},"type":{"uid":"0x4e2a","unigraph.id":"$/composer/Array"}},"_key":"children"}],"_parameters":{"uid":"0x50d5","_indexedBy":{"uid":"0x4e26","unigraph.id":"$/primitive/string"}},"type":{"uid":"0x4e2c","unigraph.id":"$/composer/Object"}}$/composer/Object
at buildUnigraphEntityPart (/Users/ericmuir/Projects/unigraph/packages/unigraph-dev-common/lib/utils/entityUtils.js:249:19)
at Object.buildUnigraphEntity (/Users/ericmuir/Projects/unigraph/packages/unigraph-dev-common/lib/utils/entityUtils.js:309:36)
at Object.update_object (/Users/ericmuir/Projects/unigraph/packages/unigraph-dev-backend/dist/server.js:284:57)
at processTicksAndRejections (node:internal/process/task_queues:94:5)
Now when I restart the server I get the following error:
/Users/ericmuir/Projects/unigraph/packages/unigraph-dev-common/lib/utils/entityUtils.js:423
var localSchema = schemaMap[schemaName]._definition;
^
TypeError: Cannot read property '_definition' of undefined
at Object.makeQueryFragmentFromType (/Users/ericmuir/Projects/unigraph/packages/unigraph-dev-common/lib/utils/entityUtils.js:423:45)
at Object.subscribeToType (/Users/ericmuir/Projects/unigraph/packages/unigraph-dev-backend/dist/localUnigraphApi.js:47:119)
at /Users/ericmuir/Projects/unigraph/packages/unigraph-dev-backend/dist/server.js:135:39
at exec (/Users/ericmuir/Projects/unigraph/node_modules/async-lock/lib/index.js:127:4)
at AsyncLock.acquire (/Users/ericmuir/Projects/unigraph/node_modules/async-lock/lib/index.js:152:3)
at Object.subscribe_to_type (/Users/ericmuir/Projects/unigraph/packages/unigraph-dev-backend/dist/server.js:133:18)
at WebSocket.<anonymous> (/Users/ericmuir/Projects/unigraph/packages/unigraph-dev-backend/dist/server.js:423:49)
at WebSocket.emit (node:events:369:20)
at WebSocket.emit (node:domain:470:12)
at Receiver.receiverOnMessage (/Users/ericmuir/Projects/unigraph/node_modules/ws/lib/websocket.js:835:20)
I'm going to try dig into the issue myself but as it's a totally new codebase to me it'll take me some time to get my head around. As per usual I'll get a PR in if I can fix the issue but any help would be grand.
Cheers,
Eric
(101stArrow on your Discord)
Proposed solution:
Description: Instead, if I delete today's journal entry, Journal shows Error in detailed AutoDynamicView: { "error": {} }
in Homepage.
Cause: Deleting note leaves behind the journal{note, date} object, which daily note view is checking for.
Design question: How to proceed here? Should trying to delete the note block prompt for a delete of the entire daily note? Should it be done automatically? (I'm inclined towards yes in this case bc the date is just metadata. What's the right way to implement this logic?
When commits are made to Unigraph it's not necessarily obvious, to developers who are trying to stay up to date with the latest, which packages might need to be updated in Dgraph as a result of the changes.
It's not clear what approach would help the developer workflow wrt changed packages, but a few suggestions would be:
To reproduce:
Ctrl + e
to bring up omnibar+bm https://dgraph.io/docs/get-started/
and hit Enter
to add the bookmarkyarn backend-start
was run:D:\dev\projects-open-source\unigraph-dev\packages\unigraph-dev-backend\dist\localUnigraphApi.js:338
const exec = uid.startsWith("0x") ? entityUtils_1.unpad((await client.queryUID(uid))[0]) : states.caches["executables"].data[uid];
^
TypeError: Cannot read property 'startsWith' of undefined
at D:\dev\projects-open-source\unigraph-dev\packages\unigraph-dev-backend\dist\localUnigraphApi.js:338:34
at exec (D:\dev\projects-open-source\unigraph-dev\node_modules\async-lock\lib\index.js:127:4)
at AsyncLock.acquire (D:\dev\projects-open-source\unigraph-dev\node_modules\async-lock\lib\index.js:152:3)
at Object.runExecutable (D:\dev\projects-open-source\unigraph-dev\packages\unigraph-dev-backend\dist\localUnigraphApi.js:337:31)
at Object.eval (eval at runEnvRoutineJs (D:\dev\projects-open-source\unigraph-dev\packages\unigraph-dev-backend\dist\executableManager.js:96:16), <anonymous>:28:48)
at processTicksAndRejections (node:internal/process/task_queues:94:5)
at async D:\dev\projects-open-source\unigraph-dev\packages\unigraph-dev-backend\dist\executableManager.js:61:29
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed.
Exit code: 1
Command: C:\Program Files\nodejs\node.exe
Arguments: d:\dev\nvm\v15.14.0\node_modules\yarn\lib\cli.js start
Directory: D:\dev\projects-open-source\unigraph-dev\packages\unigraph-dev-backend
Output:
info Visit https://yarnpkg.com/en/docs/cli/workspace for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Windows 11, Unigraph 16d448f
My expectation is that if I right-click anywhere on the ToDo item, a context menu shows. While one does appear when right-clicking on the text portion of the ToDo, it should do the same no matter where you right-click (possibly the menu should be context-sensitive according to the target under the click, but that's another matter).
Windows 11, Unigraph de86927
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.