diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-02 03:09:33 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-02 03:09:33 +0000 |
commit | fd1c75caebf0eae26d2298c68aaeac3c940f84d9 (patch) | |
tree | 95f31110d545ade33287ff6135c49bb13d90520b /tooling/graphql | |
parent | 80a2f6b1d6f9a816f51d8cf00e928ce391c77ca0 (diff) | |
download | gitlab-ce-fd1c75caebf0eae26d2298c68aaeac3c940f84d9.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'tooling/graphql')
-rw-r--r-- | tooling/graphql/docs/helper.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tooling/graphql/docs/helper.rb b/tooling/graphql/docs/helper.rb index e4f14129f3b..a76773ed28d 100644 --- a/tooling/graphql/docs/helper.rb +++ b/tooling/graphql/docs/helper.rb @@ -315,14 +315,17 @@ module Tooling def render_deprecation(object, owner, context) buff = [] deprecation = schema_deprecation(owner, object[:name]) + original_description = deprecation&.original_description || render_description_of(object, owner) - buff << (deprecation&.original_description || render_description_of(object, owner)) if context == :block + buff << original_description if context == :block buff << if deprecation deprecation.markdown(context: context) else "**Deprecated:** #{object[:deprecation_reason]}" end + buff << original_description if context == :inline && deprecation&.alpha? + join(context, buff) end |