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

Refine the description generation using comments on database objects` #43

Merged
merged 3 commits into from
Feb 22, 2024

Conversation

laurenceisla
Copy link
Member

  • Fixes not showing the default title and description when there was no COMMENT on the schema
  • Adds summary to the Info Object (related to Add summary to the info object #13)
  • Adds summary to Operation Objects (get, patch, etc.)

Copy link
Member

@steve-chavez steve-chavez left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -13,6 +13,18 @@ select case when type like any(array['character', 'character varying', 'text'])
else 'string' end;
$$;

create or replace function postgrest_unfold_comment(comm text) returns text[]
Copy link
Member

Choose a reason for hiding this comment

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

Is there a unit test for this function?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, no. In fact, I think none of the functions have unit tests.

But it makes sense for the functions inside utils.sql to have them, at least. I think they could be added in another PR. I'll open an issue for those.

@laurenceisla laurenceisla merged commit 040f8ef into PostgREST:main Feb 22, 2024
3 checks passed
@laurenceisla laurenceisla deleted the fix-description branch April 4, 2024 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants