Skip to content
Snippets Groups Projects
Verified Commit e6edd381 authored by Alexandru Croitor's avatar Alexandru Croitor 3️⃣
Browse files

Fix graphql doc generation for interfaces

Remove extra empty lines from generated doc when interface
has no fields.
parent 918f0e31
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !109541. Comments created here will be created in the context of that merge request.
...@@ -6,7 +6,7 @@ query workItemByIid($fullPath: ID!, $iid: String) { ...@@ -6,7 +6,7 @@ query workItemByIid($fullPath: ID!, $iid: String) {
id id
workItems(iid: $iid) { workItems(iid: $iid) {
nodes { nodes {
... WorkItem ...WorkItem
} }
} }
} }
...@@ -16,7 +16,7 @@ query workItemByIid($fullPath: ID!, $iid: String) { ...@@ -16,7 +16,7 @@ query workItemByIid($fullPath: ID!, $iid: String) {
descriptionHtml descriptionHtml
workItems(iid: $iid) { workItems(iid: $iid) {
nodes { nodes {
... WorkItem ...WorkItem
} }
} }
} }
......
...@@ -23,7 +23,7 @@ export const initWorkItemsRoot = () => { ...@@ -23,7 +23,7 @@ export const initWorkItemsRoot = () => {
savedRepliesNewPath, savedRepliesNewPath,
} = el.dataset; } = el.dataset;
const routePrefix = parseBoolean(isGroup) ? 'groups' : ''; const routePrefix = parseBoolean(isGroup) ? 'groups' : '';
const basePath = joinPaths(routePrefix, el.dataset.fullPath); const basePath = joinPaths(routePrefix, el.dataset.fullPath);
return new Vue({ return new Vue({
el, el,
......
...@@ -27115,8 +27115,6 @@ Implementations: ...@@ -27115,8 +27115,6 @@ Implementations:
- [`Group`](#group) - [`Group`](#group)
- [`ProjectNamespace`](#projectnamespace) - [`ProjectNamespace`](#projectnamespace)
   
#### `NoteableInterface` #### `NoteableInterface`
   
Implementations: Implementations:
...@@ -208,8 +208,9 @@ ...@@ -208,8 +208,9 @@
- type[:implemented_by].each do |type_name| - type[:implemented_by].each do |type_name|
~ "- [`#{type_name}`](##{type_name.downcase})" ~ "- [`#{type_name}`](##{type_name.downcase})"
\ \
= render_object_fields(type[:fields], owner: type, level_bump: 1) - unless type[:fields].blank?
\ = render_object_fields(type[:fields], owner: type, level_bump: 1)
\
:plain :plain
## Input types ## Input types
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment