Skip to content
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

Modify comment related APIs #1000

Merged
merged 4 commits into from
Jan 17, 2024
Merged

Modify comment related APIs #1000

merged 4 commits into from
Jan 17, 2024

Conversation

RFSH
Copy link
Member

@RFSH RFSH commented Jan 13, 2024

The main purpose of this PR is to add support for markdown in the raw value of comment APIs (#981). But instead of adding a separate commentRenderMarkdown, I changed .comment returned value to an object (similar to how .displayname works). This allows us also to remove .commentDisplay and have it as part of the object.

Other changes are,

  • Contextualized comment are now supported.

  • Fix the inheritance of comment_display from the parent catalog, schema, or table.

  • comment, comment_display, and comment_render_markdown can come from different levels and don't affect each other. Before, we used to only get the comment_display from where the comment was defined. But now comment_display can come from the column directive while the comment is derived from the table (or vice versa).

  • Moved the comment-related APIs of ForeignkeyRef and Key to getDisplay, similar to how we've done it on Table and Column.

Since I completely changed how the .comment API works in here, we have to merge this at the same time as the chaise one.

RFSH added 4 commits January 10, 2024 18:58
- added support for using markdown in comments
- since comment can now be markdown, changed all the .comment APIs
  to return an object similar to .displayname
- moved the commentDisplay APIs to be inside the same object.
- added support for contextualized column comments with display annot
@RFSH RFSH requested a review from jrchudy January 13, 2024 01:47
@RFSH RFSH self-assigned this Jan 13, 2024
@RFSH RFSH linked an issue Jan 13, 2024 that may be closed by this pull request
@RFSH RFSH merged commit 14deb30 into master Jan 17, 2024
1 check passed
@RFSH RFSH deleted the comment-changes branch January 17, 2024 22:54
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.

Support markdown in comment
2 participants