logseq / logseq/db-test

Graph EDN export should contain the parent/child relationships between Library pages

Open
#489 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

build-edn enhancement
Dominant language
No language data
Stars
28
Forks
2
PR merge metrics
No merged PRs in 30d

Description

### Search first

- [x] I searched and no similar issues were found

### What Happened?

Raised as recommended in [this Discord thread](https://discord.com/channels/725182569297215569/1421274707704938506).

At present this data doesn't seem to be encoded in these exports, which means I can't reconstruct these parent/child relationships from exports.

For instance in the attached export, the library page looks like:

- Food
- Desserts
- Fish
- Pasta

### Reproduce the Bug

1. Create a new DB graph.
2. Navigate to the Library page.
3. Create some hierarchy.
4. Export the graph to EDN.
5. Note that the export does not contain the parent/child relationships visible in the Library.

### Expected Behavior

Parent/child relationships should be somehow represented.

### Files

[minimal-db.edn.txt](https://github.com/user-attachments/files/22573872/minimal-db.edn.txt)

### Browser, Desktop or Mobile Platform Information

https://test.logseq.com/ at revision https://github.com/logseq/logseq/commit/13f510c

### Additional Context

_No response_

### Are you willing to submit a PR? If you know how to fix the bug.

- [ ] I'm willing to submit a PR (Thank you!)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the attached minimal-db.edn.txt and reproduce the export from a graph whose Library page has the Food, Desserts, Fish, and Pasta hierarchy. Compare the Library page with the EDN output and trace how the export represents graph data. Done means the EDN contains enough parent/child information to reconstruct the Library hierarchy.

Written by the indexing model from the issue text.

Assessment

Domain
database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.