hasura / hasura/graphql-engine

Add support for multiline comments (tables and columns)

Open
#3,723 4 comments 1 reaction 0 assignees View on GitHub
c/console e/easy p/medium
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

A feature request -
It would be useful to be able to add line breaks in comments for tables and columns.

Currently the input for comments is only a text input and not a textarea for entering multiline comments.

Since I can `COMMENT ON` directly with PostgreSQL, I've been doing this and multiple lines are displayed correctly when viewing on pgAdmin, export, etc. However, even though the comments contain multiple lines, the console strips the line breaks when displaying the comments.

Thanks for all the work!

Contributor guide

Open the contributing guide

Research direction

Start by locating the console's table and column comment input and the code that displays those comments. Check how PostgreSQL multiline comments are read and rendered; done means line breaks can be entered and remain visible in the console for both tables and columns.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql
Domain
databases
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.