Skip to content

Fix/note title composer #291

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
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

devnull-1337
Copy link

Added note title componser on backend.
Instead of note content now it should directely send note title
fixes: #287

@@ -93,11 +92,11 @@ export default class NoteRepository {
}

/**
* Gets the Note tree by note id
* Fetches the raw recursive note tree data from DB
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improve the comment please

* Creates a tree of notes
* @param noteId - public note id
* @returns NoteHierarchy
* Fetches the raw recursive note tree data from DB
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improve the comment please

/**
* Note content
*/
content: NoteContent;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why there is a 'content' instead of 'title' like in NoteHierarchy entity

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the data we get from the database with the query and then change the content to title build the heirarchy structure and then return to frontend

Copy link
Member

@neSpecc neSpecc May 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we really need this type at all? Why not to use just Note entity like in other methods which returns a note from the database?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still actual question

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note entity dose not have parentId in it.

@devnull-1337 devnull-1337 requested a review from neSpecc April 17, 2025 15:00
@devnull-1337 devnull-1337 requested a review from neSpecc May 3, 2025 16:29
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 this pull request may close these issues.

Note structure research
3 participants