Skip to content

Commit c54882c

Browse files
committed
feat(FR-1037): make ImageList to be paginationable
1 parent f9f18d8 commit c54882c

38 files changed

+2183
-520
lines changed

data/merged_schema.graphql

Lines changed: 150 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -328,11 +328,23 @@ type Queries {
328328
"""Added in 25.1.0."""
329329
endpoint_auto_scaling_rule_nodes(endpoint: String!, filter: String, order: String, offset: Int, before: String, after: String, first: Int, last: Int): EndpointAutoScalingRuleConnection
330330

331-
"""Added in 25.5.0."""
331+
"""Added in 25.6.0."""
332332
user_utilization_metric(user_id: UUID!, props: UserUtilizationMetricQueryInput!): UserUtilizationMetric
333333

334-
"""Added in 25.5.0."""
334+
"""Added in 25.6.0."""
335335
container_utilization_metric_metadata: ContainerUtilizationMetricMetadata
336+
337+
"""Added in 25.8.0."""
338+
available_service: AvailableServiceNode
339+
340+
"""Added in 25.8.0."""
341+
available_services(filter: String, order: String, offset: Int, before: String, after: String, first: Int, last: Int): AvailableServiceConnection
342+
343+
"""Added in 25.8.0."""
344+
service_config(service: String!): ServiceConfigNode
345+
346+
"""Added in 25.8.0."""
347+
service_configs(services: [String]!, filter: String, order: String, offset: Int, before: String, after: String, first: Int, last: Int): ServiceConfigConnection
336348
}
337349

338350
"""
@@ -405,32 +417,32 @@ type AuditLogNode implements Node {
405417
"""The ID of the object"""
406418
id: ID!
407419

408-
"""UUID of the audit log row"""
420+
"""UUID of the AuditLog row"""
409421
row_id: UUID!
410422

411423
"""Added in 25.6.0. UUID of the action"""
412424
action_id: UUID!
413425

414-
"""Entity ID of the AuditLog"""
426+
"""Entity type of the AuditLog"""
415427
entity_type: String!
416428

417-
"""Entity type of the AuditLog"""
429+
"""Operation type of the AuditLog"""
418430
operation: String!
419431

420-
"""Operation type of the AuditLog"""
421-
entity_id: String!
432+
"""Entity ID of the AuditLog"""
433+
entity_id: String
422434

423435
"""The time the AuditLog was reported"""
424436
created_at: DateTime!
425437

426-
"""RequestID of the AuditLog"""
427-
request_id: UUID!
438+
"""Request ID of the AuditLog"""
439+
request_id: String
428440

429441
"""Description of the AuditLog"""
430442
description: String!
431443

432444
"""Duration taken to perform the operation"""
433-
duration: String!
445+
duration: String
434446

435447
"""Status of the AuditLog"""
436448
status: String!
@@ -586,6 +598,9 @@ type ImageNode implements Node {
586598
Added in 25.3.0. One of ['read_attribute', 'update_attribute', 'create_container', 'forget_image'].
587599
"""
588600
permissions: [ImagePermissionValueField]
601+
602+
"""Added in 25.11.0. Indicates if the image is installed on any Agent."""
603+
installed: Boolean
589604
}
590605

591606
type KVPair {
@@ -2041,19 +2056,19 @@ type EndpointAutoScalingRuleEdge {
20412056
cursor: String!
20422057
}
20432058

2044-
"""Added in 25.5.0."""
2059+
"""Added in 25.6.0."""
20452060
type UserUtilizationMetric {
20462061
user_id: UUID
20472062
metrics: [ContainerUtilizationMetric]
20482063
}
20492064

2050-
"""Added in 25.5.0."""
2065+
"""Added in 25.6.0."""
20512066
type ContainerUtilizationMetric {
20522067
metric_name: String
20532068

2054-
"""One of 'current', 'capacity', 'pct'."""
2069+
"""One of 'current', 'capacity'."""
20552070
value_type: String
2056-
values: [MetircResultValue]
2071+
values: [MetricResultValue]
20572072

20582073
"""The maximum value of the metric in given time range. null if no data."""
20592074
max_value: String
@@ -2062,16 +2077,16 @@ type ContainerUtilizationMetric {
20622077
avg_value: String
20632078
}
20642079

2065-
"""Added in 25.5.0. A pair of timestamp and value."""
2066-
type MetircResultValue {
2080+
"""Added in 25.6.0. A pair of timestamp and value."""
2081+
type MetricResultValue {
20672082
timestamp: Float
20682083
value: String
20692084
}
20702085

2071-
"""Added in 25.5.0."""
2086+
"""Added in 25.6.0."""
20722087
input UserUtilizationMetricQueryInput {
2073-
"""One of 'current', 'capacity', 'pct'. Default value is 'null'."""
2074-
value_type: String = null
2088+
"""One of 'current', 'capacity'. Default value is 'current'."""
2089+
value_type: String = "current"
20752090

20762091
"""metric name of container utilization. For example, 'cpu_util', 'mem'."""
20772092
metric_name: String!
@@ -2088,11 +2103,83 @@ input UserUtilizationMetricQueryInput {
20882103
step: String!
20892104
}
20902105

2091-
"""Added in 25.5.0."""
2106+
"""Added in 25.6.0."""
20922107
type ContainerUtilizationMetricMetadata {
20932108
metric_names: [String]
20942109
}
20952110

2111+
"""Available services for configuration. Added in 25.8.0."""
2112+
type AvailableServiceNode implements Node {
2113+
"""The ID of the object"""
2114+
id: ID!
2115+
2116+
"""Possible values of "Config.service". Added in 25.8.0."""
2117+
service_variants: [String]!
2118+
}
2119+
2120+
"""Added in 25.8.0."""
2121+
type AvailableServiceConnection {
2122+
"""Pagination data for this connection."""
2123+
pageInfo: PageInfo!
2124+
2125+
"""Contains the nodes in this connection."""
2126+
edges: [AvailableServiceEdge]!
2127+
2128+
"""Total count of the GQL nodes of the query."""
2129+
count: Int
2130+
}
2131+
2132+
"""
2133+
Added in 25.8.0. A Relay edge containing a `AvailableService` and its cursor.
2134+
"""
2135+
type AvailableServiceEdge {
2136+
"""The item at the end of the edge"""
2137+
node: AvailableServiceNode
2138+
2139+
"""A cursor for use in pagination"""
2140+
cursor: String!
2141+
}
2142+
2143+
"""Configuration data for a specific service. Added in 25.8.0."""
2144+
type ServiceConfigNode implements Node {
2145+
"""The ID of the object"""
2146+
id: ID!
2147+
2148+
"""
2149+
Service name. See AvailableService.service_variants for possible values. Added in 25.8.0.
2150+
"""
2151+
service: String!
2152+
2153+
"""Configuration data. Added in 25.8.0."""
2154+
configuration: JSONString!
2155+
2156+
"""JSON schema of the configuration. Added in 25.8.0."""
2157+
schema: JSONString!
2158+
}
2159+
2160+
"""Added in 25.8.0."""
2161+
type ServiceConfigConnection {
2162+
"""Pagination data for this connection."""
2163+
pageInfo: PageInfo!
2164+
2165+
"""Contains the nodes in this connection."""
2166+
edges: [ServiceConfigEdge]!
2167+
2168+
"""Total count of the GQL nodes of the query."""
2169+
count: Int
2170+
}
2171+
2172+
"""
2173+
Added in 25.8.0. A Relay edge containing a `ServiceConfig` and its cursor.
2174+
"""
2175+
type ServiceConfigEdge {
2176+
"""The item at the end of the edge"""
2177+
node: ServiceConfigNode
2178+
2179+
"""A cursor for use in pagination"""
2180+
cursor: String!
2181+
}
2182+
20962183
"""All available GraphQL mutations."""
20972184
type Mutations {
20982185
modify_agent(id: String!, props: ModifyAgentInput!): ModifyAgent
@@ -2172,6 +2259,9 @@ type Mutations {
21722259
unload_image(references: [String]!, target_agents: [String]!): UnloadImage
21732260
modify_image(architecture: String = "x86_64", props: ModifyImageInput!, target: String!): ModifyImage
21742261

2262+
"""Added in 25.6.0"""
2263+
clear_image_custom_resource_limit(key: ClearImageCustomResourceLimitKey!): ClearImageCustomResourceLimitPayload
2264+
21752265
"""Added in 24.03.0"""
21762266
forget_image_by_id(image_id: String!): ForgetImageById
21772267

@@ -2213,6 +2303,12 @@ type Mutations {
22132303
id: UUID = null
22142304
name: String = null @deprecated(reason: "Deprecated since 25.4.0.")
22152305
): DeleteResourcePreset
2306+
2307+
"""Updates configuration for a given service. Added in 25.8.0."""
2308+
modify_service_config(
2309+
"""Added in 25.8.0."""
2310+
input: ModifyServiceConfigNodeInput!
2311+
): ModifyServiceConfigNodePayload
22162312
create_scaling_group(name: String!, props: CreateScalingGroupInput!): CreateScalingGroup
22172313
modify_scaling_group(name: String!, props: ModifyScalingGroupInput!): ModifyScalingGroup
22182314
delete_scaling_group(name: String!): DeleteScalingGroup
@@ -2741,6 +2837,17 @@ input ResourceLimitInput {
27412837
max: String
27422838
}
27432839

2840+
"""Added in 25.6.0."""
2841+
type ClearImageCustomResourceLimitPayload {
2842+
image_node: ImageNode
2843+
}
2844+
2845+
"""Added in 25.6.0."""
2846+
input ClearImageCustomResourceLimitKey {
2847+
image_canonical: String!
2848+
architecture: String! = "x86_64"
2849+
}
2850+
27442851
"""Added in 24.03.0."""
27452852
type ForgetImageById {
27462853
ok: Boolean
@@ -3036,6 +3143,29 @@ type DeleteResourcePreset {
30363143
msg: String
30373144
}
30383145

3146+
"""
3147+
Payload for the ModifyServiceConfigNode mutation.
3148+
Added in 25.8.0.
3149+
"""
3150+
type ModifyServiceConfigNodePayload {
3151+
"""ServiceConfiguration Node. Added in 25.8.0."""
3152+
service_config: ServiceConfigNode!
3153+
}
3154+
3155+
"""
3156+
Input data for modifying configuration.
3157+
Added in 25.8.0.
3158+
"""
3159+
input ModifyServiceConfigNodeInput {
3160+
"""
3161+
Service name. See AvailableService.service_variants for possible values. Added in 25.8.0.
3162+
"""
3163+
service: String!
3164+
3165+
"""Service configuration data to mutate. Added in 25.8.0."""
3166+
configuration: JSONString!
3167+
}
3168+
30393169
type CreateScalingGroup {
30403170
ok: Boolean
30413171
msg: String

0 commit comments

Comments
 (0)