Skip to content

Commit 2524e50

Browse files
committed
Compile docs
1 parent c1614ab commit 2524e50

File tree

5 files changed

+13
-8
lines changed

5 files changed

+13
-8
lines changed

app/graphql/types/input/flow_input_type.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ class FlowInputType < Types::BaseInputObject
1818
argument :type, Types::GlobalIdType[::FlowType], required: true,
1919
description: 'The identifier of the flow type'
2020

21-
argument :disabled_reason, String, required: false,
22-
description: 'The reason why the flow is disabled, if applicable, if not set the flow is enabled'
21+
argument :disabled_reason, String,
22+
required: false,
23+
description: 'The reason why the flow is disabled, if applicable, if not set the flow is enabled'
2324
end
2425
end
2526
end

docs/graphql/input_object/flowinput.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ Input type for creating or updating a flow
88

99
| Name | Type | Description |
1010
|------|------|-------------|
11+
| `disabledReason` | [`String`](../scalar/string.md) | The reason why the flow is disabled, if applicable, if not set the flow is enabled |
1112
| `name` | [`String!`](../scalar/string.md) | The name of the flow |
1213
| `nodes` | [`[NodeFunctionInput!]!`](../input_object/nodefunctioninput.md) | The node functions of the flow |
1314
| `settings` | [`[FlowSettingInput!]`](../input_object/flowsettinginput.md) | The settings of the flow |
14-
| `startingNodeId` | [`NodeFunctionID!`](../scalar/nodefunctionid.md) | The starting node of the flow |
15+
| `startingNodeId` | [`NodeFunctionID`](../scalar/nodefunctionid.md) | The starting node of the flow |
1516
| `type` | [`FlowTypeID!`](../scalar/flowtypeid.md) | The identifier of the flow type |

docs/graphql/object/flow.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ Represents a flow
99
| Name | Type | Description |
1010
|------|------|-------------|
1111
| `createdAt` | [`Time!`](../scalar/time.md) | Time when this Flow was created |
12+
| `disabledReason` | [`String`](../scalar/string.md) | The reason why the flow is disabled, if it is disabled |
1213
| `id` | [`FlowID!`](../scalar/flowid.md) | Global ID of this Flow |
1314
| `inputType` | [`DataType`](../object/datatype.md) | The input data type of the flow |
1415
| `name` | [`String!`](../scalar/string.md) | Name of the flow |
1516
| `nodes` | [`NodeFunctionConnection!`](../object/nodefunctionconnection.md) | Nodes of the flow |
1617
| `returnType` | [`DataType`](../object/datatype.md) | The return data type of the flow |
1718
| `settings` | [`FlowSettingConnection!`](../object/flowsettingconnection.md) | The settings of the flow |
18-
| `startingNodeId` | [`NodeFunctionID!`](../scalar/nodefunctionid.md) | The ID of the starting node of the flow |
19+
| `startingNodeId` | [`NodeFunctionID`](../scalar/nodefunctionid.md) | The ID of the starting node of the flow |
1920
| `type` | [`FlowType!`](../object/flowtype.md) | The flow type of the flow |
2021
| `updatedAt` | [`Time!`](../scalar/time.md) | Time when this Flow was last updated |
2122
| `userAbilities` | [`FlowUserAbilities!`](../object/flowuserabilities.md) | Abilities for the current user on this Flow |

spec/services/namespaces/projects/flows/create_service_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
let(:namespace_project) { create(:namespace_project, primary_runtime: runtime) }
1313

1414
let(:flow_input) do
15-
Struct.new(:settings, :type, :starting_node_id, :nodes, :name).new(
15+
Struct.new(:settings, :type, :starting_node_id, :nodes, :name, :disabled_reason).new(
1616
[],
1717
create(:flow_type, runtime: runtime).to_global_id,
1818
'gid://sagittarius/NodeFunction/12345',
@@ -24,7 +24,8 @@
2424
[]
2525
)
2626
],
27-
generate(:flow_name)
27+
generate(:flow_name),
28+
nil
2829
)
2930
end
3031

spec/services/namespaces/projects/flows/update_service_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
end
1515
let(:flow) { create(:flow, project: namespace_project, flow_type: create(:flow_type, runtime: runtime)) }
1616
let(:flow_input) do
17-
Struct.new(:settings, :starting_node_id, :nodes, :name).new(
17+
Struct.new(:settings, :starting_node_id, :nodes, :name, :disabled_reason).new(
1818
[],
1919
starting_node.to_global_id,
2020
[
@@ -25,7 +25,8 @@
2525
[]
2626
)
2727
],
28-
"updated #{flow.name}"
28+
"updated #{flow.name}",
29+
nil
2930
)
3031
end
3132

0 commit comments

Comments
 (0)