Commit 46bdb62b authored by lauraMon's avatar lauraMon

Refactored objects to return field type and connnection

parent f3f4904f
...@@ -1318,7 +1318,7 @@ Autogenerated return type of EpicTreeReorder. ...@@ -1318,7 +1318,7 @@ Autogenerated return type of EpicTreeReorder.
| `avatarUrl` | String | Avatar URL of the group | | `avatarUrl` | String | Avatar URL of the group |
| `board` | Board | A single board of the group | | `board` | Board | A single board of the group |
| `boards` | BoardConnection | Boards of the group | | `boards` | BoardConnection | Boards of the group |
| `codeCoverageActivities` | CodeCoverageActivityConnection | Represents the code coverage activity for this group. Available only when feature flag `group_coverage_data_report` is enabled | | `codeCoverageActivities` | CodeCoverageActivityConnection | Represents the code coverage activity for this group. Available only when feature flag `group_coverage_data_report_graph` is enabled |
| `containerRepositories` | ContainerRepositoryConnection | Container repositories of the project | | `containerRepositories` | ContainerRepositoryConnection | Container repositories of the project |
| `containsLockedProjects` | Boolean! | Includes at least one project where the repository size exceeds the limit | | `containsLockedProjects` | Boolean! | Includes at least one project where the repository size exceeds the limit |
| `description` | String | Description of the namespace | | `description` | String | Description of the namespace |
...@@ -2099,24 +2099,19 @@ Information about pagination in a connection.. ...@@ -2099,24 +2099,19 @@ Information about pagination in a connection..
| `coverage` | Float | Coverage percentage | | `coverage` | Float | Coverage percentage |
| `createdAt` | Time! | Timestamp of the pipeline's creation | | `createdAt` | Time! | Timestamp of the pipeline's creation |
| `detailedStatus` | DetailedStatus! | Detailed status of the pipeline | | `detailedStatus` | DetailedStatus! | Detailed status of the pipeline |
| `downstream` | PipelineConnection | Pipelines this pipeline will trigger |
| `duration` | Int | Duration of the pipeline in seconds | | `duration` | Int | Duration of the pipeline in seconds |
| `finishedAt` | Time | Timestamp of the pipeline's completion | | `finishedAt` | Time | Timestamp of the pipeline's completion |
| `id` | ID! | ID of the pipeline | | `id` | ID! | ID of the pipeline |
| `iid` | String! | Internal ID of the pipeline | | `iid` | String! | Internal ID of the pipeline |
<<<<<<< HEAD | `jobs` | CiJobConnection | Jobs belonging to the pipeline |
| `path` | String | Relative path to the pipeline's page | | `path` | String | Relative path to the pipeline's page |
| `project` | Project | Project the pipeline belongs to | | `project` | Project | Project the pipeline belongs to |
| `retryable` | Boolean! | Specifies if a pipeline can be retried | | `retryable` | Boolean! | Specifies if a pipeline can be retried |
| `securityReportSummary` | SecurityReportSummary | Vulnerability and scanned resource counts for each security scanner of the pipeline | | `securityReportSummary` | SecurityReportSummary | Vulnerability and scanned resource counts for each security scanner of the pipeline |
| `sha` | String! | SHA of the pipeline's commit | | `sha` | String! | SHA of the pipeline's commit |
| `sourceJob` | CiJob | Job where pipeline was triggered from | | `sourceJob` | CiJob | Job where pipeline was triggered from |
=======
| `jobs` | CiJobConnection | Jobs belonging to the pipeline |
| `retryable` | Boolean! | Specifies if a pipeline can be retried |
| `securityReportSummary` | SecurityReportSummary | Vulnerability and scanned resource counts for each security scanner of the pipeline |
| `sha` | String! | SHA of the pipeline's commit |
| `stages` | CiStageConnection | Stages of the pipeline | | `stages` | CiStageConnection | Stages of the pipeline |
>>>>>>> 072fb0a2712 (Updates template to include connnection fields)
| `startedAt` | Time | Timestamp when the pipeline was started | | `startedAt` | Time | Timestamp when the pipeline was started |
| `status` | PipelineStatusEnum! | Status of the pipeline (CREATED, WAITING_FOR_RESOURCE, PREPARING, PENDING, RUNNING, FAILED, SUCCESS, CANCELED, SKIPPED, MANUAL, SCHEDULED) | | `status` | PipelineStatusEnum! | Status of the pipeline (CREATED, WAITING_FOR_RESOURCE, PREPARING, PENDING, RUNNING, FAILED, SUCCESS, CANCELED, SKIPPED, MANUAL, SCHEDULED) |
| `updatedAt` | Time! | Timestamp of the pipeline's last activity | | `updatedAt` | Time! | Timestamp of the pipeline's last activity |
......
...@@ -85,6 +85,8 @@ module Gitlab ...@@ -85,6 +85,8 @@ module Gitlab
!object_type[:name]["Connection"] && !object_type[:name]["Connection"] &&
!object_type[:name]["Edge"] && !object_type[:name]["Edge"] &&
!object_type[:name]["__"] !object_type[:name]["__"]
end.each do |type|
type[:fields] += type[:connections]
end end
end end
......
...@@ -30,12 +30,11 @@ ...@@ -30,12 +30,11 @@
\ \
- objects.each do |type| - objects.each do |type|
- all_fields = type[:fields] + type[:connections] - unless type[:fields].empty?
- unless all_fields.empty?
= render_name_and_description(type) = render_name_and_description(type)
~ "| Field | Type | Description |" ~ "| Field | Type | Description |"
~ "| ----- | ---- | ----------- |" ~ "| ----- | ---- | ----------- |"
- sorted_by_name(all_fields).each do |field| - sorted_by_name(type[:fields]).each do |field|
= render_field(field) = render_field(field)
\ \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment