Skip to content

Note structure research #287

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
e11sy opened this issue Jan 29, 2025 · 0 comments · May be fixed by #291
Open

Note structure research #287

e11sy opened this issue Jan 29, 2025 · 0 comments · May be fixed by #291

Comments

@e11sy
Copy link
Contributor

e11sy commented Jan 29, 2025

Overview

This issue is created because we need to research for a new data structure to store all note relations and notes tree at all

Required functionality

  • Ability to select full note hierarchy as NoteTreePresentation object (all notes with same root note)
  • Ability to to go to the root note recursively (to check parent note team and its access policy)
  • Ability to extract path to the root note as NoteListPresentation object (for note breadcrumbs)

Describe objects

  • NotePresentation
interface NotePresentation {
  noteId: Note['id'];

  noteTitle: string;
}
  • NoteListPresentation
type NoteListPresentation = NotePresentation[];
  • NoteTreePresentation
interface NoteTreePresentation {
  noteId: Note['id'];

  noteTitle: string;

  childNotes: NotePresentation[];
}

Note: noteTitle should be used after its implementation in api, since it is not implemented - we return full note content as noteTitle and make all related transformations on web part

Note: This is refactoring issue, firstly check out current solution of note hierarchy

Final product of the work

Several schemas related to possible data structures, their possible performance for required functionality, possible issues in future (like scalability or memory limits)

@devnull-1337 devnull-1337 linked a pull request Apr 6, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant