forked from Kitware/CDash
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.graphql
More file actions
1545 lines (1025 loc) · 39.6 KB
/
schema.graphql
File metadata and controls
1545 lines (1025 loc) · 39.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
"A datetime and timezone string in ISO 8601 format `Y-m-dTH:i:sP`, e.g. `2020-04-20T13:53:12+02:00`."
scalar DateTimeTz @scalar(class: "Nuwave\\Lighthouse\\Schema\\Types\\Scalars\\DateTimeTz")
"A datetime string in ISO 8601 format in UTC with nanoseconds `YYYY-MM-DDTHH:mm:ss.SSSSSSZ`, e.g. `2020-04-20T16:20:04.000000Z`."
scalar DateTimeUtc
@scalar(class: "Nuwave\\Lighthouse\\Schema\\Types\\Scalars\\DateTimeUtc")
# It would be better to replace these with a "Duration" scalar type in the future.
"A non-negative decimal number of seconds."
scalar NonNegativeSeconds @scalar(class: "App\\GraphQL\\Scalars\\NonNegativeSeconds")
"A non-negative integer number of milliseconds."
scalar NonNegativeIntegerMilliseconds @scalar(class: "App\\GraphQL\\Scalars\\NonNegativeIntegerMilliseconds")
scalar Url @scalar(class: "App\\GraphQL\\Scalars\\Url")
scalar Time @scalar(class: "App\\GraphQL\\Scalars\\Time")
"Indicates what fields are available at the top level of a query operation."
type Query {
"Find a single user by ID."
me: User @auth
"Find a single user by ID."
user(
id: ID @eq
): User @find
"Get multiple users."
users(
filters: _ @filter
): [User!]! @paginate(type: CONNECTION)
"Find a single project."
project(
"Search by primary key."
id: ID @eq @rules(apply: ["prohibits:name", "required_without:name"])
"Search by name."
name: String @eq @rules(apply: ["prohibits:id", "required_without:id"])
): Project @find(scopes: ["forUser"])
"List the projects available to the current user."
projects(
filters: _ @filter
): [Project!]! @paginate(scopes: ["forUser"], type: CONNECTION)
"Find a single build by ID."
build(
"Search by primary key."
id: ID @eq
): Build @find @canResolved(ability: "view")
"Find a single test by ID."
test(
"Search by primary key."
id: ID @eq
): Test @find @canResolved(ability: "view", action: RETURN_VALUE, returnValue: null)
"""
Find a single site by ID. All sites are currently public (although not necessarily
the projects they contribute to). In the future, the concept of "private sites"
may be a good feature to add.
"""
site(
"Search by primary key."
id: ID @eq
): Site @find
invitations: [GlobalInvitation!]! @canResolved(ability: "viewInvitations") @paginate(type: CONNECTION) @orderBy(column: "id")
"Find a single build command by ID."
buildCommand(
"Search by primary key."
id: ID @eq
): BuildCommand @find @canResolved(ability: "view", action: RETURN_VALUE, returnValue: null)
"Find a single dynamic analysis by ID."
dynamicAnalysis(
"Search by primary key."
id: ID @eq
): DynamicAnalysis @find @canResolved(ability: "view", action: RETURN_VALUE, returnValue: null)
"All authentication tokens across the entire instance. Only available to administrators."
authenticationTokens: [AuthToken!]! @canResolved(ability: "viewAll") @paginate(type: CONNECTION) @orderBy(column: "id")
}
type Mutation {
# TODO: Change the return type to be a payload type instead of a project
"Create a new project."
createProject(input: CreateProjectInput! @spread): Project @field(resolver: "CreateProject")
updateProject(input: UpdateProjectInput! @spread): UpdateProjectMutationPayload! @field(resolver: "UpdateProject")
"Subscribe the current user to the specified site."
claimSite(input: ClaimSiteInput! @spread): ClaimSiteMutationPayload! @field(resolver: "ClaimSite")
"Unsubscribe the current user from the specified site."
unclaimSite(input: UnclaimSiteInput! @spread): UnclaimSiteMutationPayload! @field(resolver: "UnclaimSite")
"Edit the site description."
updateSiteDescription(input: UpdateSiteDescriptionInput! @spread): UpdateSiteDescriptionMutationPayload! @field(resolver: "UpdateSiteDescription")
"Add users to a project."
inviteToProject(input: InviteToProjectInput! @spread): InviteToProjectMutationPayload! @field(resolver: "InviteToProject")
"Revoke an outstanding project invitation."
revokeProjectInvitation(input: RevokeProjectInvitationInput! @spread): RevokeProjectInvitationMutationPayload! @field(resolver: "RevokeProjectInvitation")
"Change an existing user's role in a project."
changeProjectRole(input: ChangeProjectRoleInput! @spread): ChangeProjectRoleMutationPayload! @field(resolver: "ChangeProjectRole")
"Remove a user from a project."
removeProjectUser(input: RemoveProjectUserInput! @spread): RemoveProjectUserMutationPayload! @field(resolver: "RemoveProjectUser")
"Join a project directly. Only useful for public and protected projects. Use invitations to add users to private projects."
joinProject(input: JoinProjectInput! @spread): JoinProjectMutationPayload! @field(resolver: "JoinProject")
"Invite a user to this CDash instance by email."
createGlobalInvitation(input: CreateGlobalInvitationInput! @spread): CreateGlobalInvitationMutationPayload! @field(resolver: "CreateGlobalInvitation")
"Revoke an outstanding invitation."
revokeGlobalInvitation(input: RevokeGlobalInvitationInput! @spread): RevokeGlobalInvitationMutationPayload! @field(resolver: "RevokeGlobalInvitation")
"Change an existing user's site-wide role."
changeGlobalRole(input: ChangeGlobalRoleInput! @spread): ChangeGlobalRoleMutationPayload! @field(resolver: "ChangeGlobalRole")
"Delete a user."
removeUser(input: RemoveUserInput! @spread): RemoveUserMutationPayload! @field(resolver: "RemoveUser")
"Mark a test measurement as 'pinned' by name. Position is set to the next available position."
createPinnedTestMeasurement(input: CreatePinnedTestMeasurementInput! @spread): CreatePinnedTestMeasurementMutationPayload! @field(resolver: "CreatePinnedTestMeasurement")
"Remove a pinned test measurement. Does not re-number positions."
deletePinnedTestMeasurement(input: DeletePinnedTestMeasurementInput! @spread): DeletePinnedTestMeasurementMutationPayload! @field(resolver: "DeletePinnedTestMeasurement")
"""
Reorder the pinned measurements. Note: positions will be sequential, starting at 1 + the
previous maximum position. Only the relative order is guaranteed.
"""
updatePinnedTestMeasurementOrder(input: UpdatePinnedTestMeasurementOrderInput! @spread): UpdatePinnedTestMeasurementOrderMutationPayload! @field(resolver: "UpdatePinnedTestMeasurementOrder")
"Add a repository to a project. Cannot retrieve password once set."
createRepository(input: CreateRepositoryInput! @spread): CreateRepositoryMutationPayload! @field(resolver: "CreateRepository")
"Delete a repository by ID."
deleteRepository(input: DeleteRepositoryInput! @spread): DeleteRepositoryMutationPayload! @field(resolver: "DeleteRepository")
"Add an authentication token. The token cannot be retrieved again."
createAuthenticationToken(input: CreateAuthenticationTokenInput! @spread): CreateAuthenticationTokenMutationPayload! @field(resolver: "CreateAuthenticationToken")
"""
Delete an authentication token by ID.
Project-scoped submit-only tokens can be deleted by:
1. The user who created them
2. A project administrator
3. A system administrator
Full-access and submit-only tokens not associated with a project can be deleted by:
1. The user who created them
2. A system administrator
"""
deleteAuthenticationToken(input: DeleteAuthenticationTokenInput! @spread): DeleteAuthenticationTokenMutationPayload! @field(resolver: "DeleteAuthenticationToken")
"Create a new comment."
createComment(input: CreateCommentInput! @spread): CreateCommentMutationPayload! @field(resolver: "CreateComment")
}
input CreateCommentInput {
"The build to associate the comment with."
buildId: ID!
"Comment body."
text: String!
}
type CreateCommentMutationPayload implements MutationPayloadInterface {
"Optional error message."
message: String
"The newly created comment."
comment: Comment
}
interface MutationPayloadInterface {
"Optional error message."
message: String
}
"A registered CDash user. Can be autogenerated by 3rd-party authentication providers."
type User {
"Unique primary key."
id: ID! @filterable
"Non-unique first name."
firstname: String! @filterable
"Non-unique last name."
lastname: String! @filterable
# We deliberately disallow filtering on the email to prevent information leakage.
"Unique email address."
email: String @canRoot(ability: "viewEmail", action: RETURN_VALUE, returnValue: null)
"Institution."
institution: String! @filterable
"Whether or not the user is a global administrator."
admin: Boolean! @filterable
projects(
filters: _ @filter
): [Project!]! @hasMany(type: CONNECTION, scopes: ["forUser"])
authenticationTokens: [AuthToken!]! @canRoot(ability: "viewAuthenticationTokens") @hasMany(type: CONNECTION) @orderBy(column: "id")
}
"Project."
type Project {
"Unique primary key."
id: ID! @filterable
"Unique name."
name: String! @filterable
"Description."
description: String
"Homepage for this project."
homeUrl: Url @rename(attribute: "homeurl")
vcsViewer: VcsViewer @rename(attribute: "cvsviewertype")
"Example: https://github.com/Kitware/CDash"
vcsUrl: Url @rename(attribute: "cvsurl")
"Relative path to the root of the CMake project in the repository."
cmakeProjectRoot: String @rename(attribute: "cmakeprojectroot")
bugTracker: BugTracker @rename(attribute: "bugtrackertype")
"Example: https://github.com/Kitware/CDash/issues"
bugTrackerUrl: Url @rename(attribute: "bugtrackerurl")
"Example: https://github.com/Kitware/CDash/issues/new"
bugTrackerNewIssueUrl: Url @rename(attribute: "bugtrackernewissueurl")
"Example: https://cmake.org/cmake/help/latest"
documentationUrl: Url @rename(attribute: "documentationurl")
testDataUrl: Url @rename(attribute: "testingdataurl")
"Visibility."
visibility: ProjectVisibility! @rename(attribute: "public") @filterable
"A boolean indicating whether authenticated submissions are required."
authenticateSubmissions: Boolean! @rename(attribute: "authenticatesubmissions")
"A LDAP group users must be a member of to access the project."
ldapFilter: String @rename(attribute: "ldapfilter")
"A full URL string pointing to the location of the project's logo."
logoUrl: String
"Coverage percentages above this threshold will be displayed in green."
coverageThreshold: Int! @rename(attribute: "coveragethreshold")
nightlyTime: Time! @rename(attribute: "nightlytime")
"Should emails be sent when the coverage for files is lower than the `coverageThreshold` value?"
emailLowCoverage: Boolean! @rename(attribute: "emaillowcoverage")
"Should emails be sent when the test time status changes?"
emailTestTimingChanged: Boolean! @rename(attribute: "emailtesttimingchanged")
"Should emails be sent for broken submissions?"
emailBrokenSubmissions: Boolean! @rename(attribute: "emailbrokensubmission")
"Send emails for all failures if true. Otherwise, only send emails after the first failure."
emailRedundantFailures: Boolean! @rename(attribute: "emailredundantfailures")
"""
Set a multiplier for the standard deviation for a test time. If the time for a test is higher
than mean+multiplier*standarddeviation, the test time status is marked as failed. Note that
changing this value doesn’t affect previous builds.
"""
testTimeStdMultiplier: Float! @rename(attribute: "testtimestd")
"""
Set a minimum standard deviation for a test time failure. If the current standard deviation for a
test is lower than this threshold then the threshold is used instead. This is particularly
important for tests that have a very low standard deviation but still some variability. Note that
changing this value doesn’t affect previous builds.
"""
testTimeStdThreshold: Float! @rename(attribute: "testtimestdthreshold")
"Enable/Disable test timing for this project."
enableTestTiming: Boolean! @rename(attribute: "showtesttime")
"""
The number of times a test must violate the time status check before it is flagged as a failure.
For example, if this is set to 2, then a test will need to run more slowly than expected twice
in a row before it is marked as having failed the time status check.
"""
timeStatusFailureThreshold: Int! @rename(attribute: "testtimemaxstatus")
"Maximum number of items per email."
emailMaxItems: Int! @rename(attribute: "emailmaxitems")
"Maximum number of characters per email."
emailMaxCharacters: Int! @rename(attribute: "emailmaxchars")
"Enable/Disable the display of the label column throughout the project."
displayLabels: Boolean! @rename(attribute: "displaylabels")
"""
Builds older than the configured number of days will be removed. Builds will be retained for at
least two days regardless of this setting.
"""
autoRemoveTimeFrame: Int! @rename(attribute: "autoremovetimeframe")
"""
The maximum number of builds to be removed on any given day.
"""
autoRemoveMaxBuilds: Int! @rename(attribute: "autoremovemaxbuilds")
"""
Uploaded files exceeding this limit (in GB) will be deleted from oldest to newest.
"""
fileUploadLimit: Int! @rename(attribute: "uploadquotagb")
"""
Enable/Disable the display of source code for the project. Only administrators can see the source
code in the coverage section when this option is disabled.
"""
showCoverageCode: Boolean! @rename(attribute: "showcoveragecode")
"Custom text displayed at the top of a project's dashboard."
banner: String
builds(
filters: _ @filter
): [Build!]! @hasMany(type: CONNECTION)
"""
An efficient way to get the number of builds matching a given filter.
"""
buildCount(
filters: _ @filter(inputType: "BuildFilterInput")
): Int! @count(relation: "builds")
"""
The most recent build submitted to this server. Note: this is determined by
submission time, not build start time.
"""
mostRecentBuild: Build @hasOne
"The sites which have submitted a build to this project."
sites(
filters: _ @filter
): [Site!]! @belongsToMany(type: CONNECTION)
"Users with the lowest user role for this project."
basicUsers: [User!]! @belongsToMany(type: CONNECTION) @orderBy(column: "id")
"Users with the administrator role for this project."
administrators: [User!]! @belongsToMany(type: CONNECTION) @orderBy(column: "id")
# Can't return null on authorization failure due to Lighthouse bug with connections and can* directives.
"Invitations to this project which have not been accepted yet."
invitations: [ProjectInvitation!]! @canRoot(ability: "inviteUser") @hasMany(type: CONNECTION) @orderBy(column: "id")
"""
Pinned test measurements are test measurements, identified by name, which should be shown
alongside Test details throughout the site.
"""
pinnedTestMeasurements: [PinnedTestMeasurement!]! @hasMany(type: CONNECTION) @orderBy(column: "position")
"Repositories."
repositories: [Repository!]! @hasMany(type: CONNECTION) @orderBy(column: "id")
}
enum ProjectVisibility {
"Available to all users and guests."
PUBLIC @enum(value: 1)
"Available to all registered users."
PROTECTED @enum(value: 2)
"Only available to users added to the project."
PRIVATE @enum(value: 0)
}
enum VcsViewer {
GITHUB @enum(value: "github")
GITLAB @enum(value: "gitlab")
}
enum BugTracker {
GITHUB @enum(value: "GitHub")
BUGANIZER @enum(value: "Buganizer")
JIRA @enum(value: "JIRA")
}
input CreateProjectInput @validator {
"Unique name."
name: String!
"Description."
description: String
"Visibility."
visibility: ProjectVisibility! @rename(attribute: "public")
"A boolean indicating whether authenticated submissions are required."
authenticateSubmissions: Boolean! @rename(attribute: "authenticatesubmissions")
}
input UpdateProjectInput @validator {
id: ID!
name: String
description: String
homeUrl: Url @rename(attribute: "homeurl")
vcsViewer: VcsViewer @rename(attribute: "cvsviewertype")
vcsUrl: Url @rename(attribute: "cvsurl")
cmakeProjectRoot: String @rename(attribute: "cmakeprojectroot")
bugTracker: BugTracker @rename(attribute: "bugtrackertype")
bugTrackerUrl: Url @rename(attribute: "bugtrackerurl")
bugTrackerNewIssueUrl: Url @rename(attribute: "bugtrackernewissueurl")
documentationUrl: Url @rename(attribute: "documentationurl")
testDataUrl: Url @rename(attribute: "testingdataurl")
visibility: ProjectVisibility @rename(attribute: "public")
authenticateSubmissions: Boolean @rename(attribute: "authenticatesubmissions")
ldapFilter: String @rename(attribute: "ldapfilter")
coverageThreshold: Int @rename(attribute: "coveragethreshold")
nightlyTime: Time @rename(attribute: "nightlytime")
emailLowCoverage: Boolean @rename(attribute: "emaillowcoverage")
emailTestTimingChanged: Boolean @rename(attribute: "emailtesttimingchanged")
emailBrokenSubmissions: Boolean @rename(attribute: "emailbrokensubmission")
emailRedundantFailures: Boolean @rename(attribute: "emailredundantfailures")
testTimeStdMultiplier: Float @rename(attribute: "testtimestd")
testTimeStdThreshold: Float @rename(attribute: "testtimestdthreshold")
enableTestTiming: Boolean @rename(attribute: "showtesttime")
timeStatusFailureThreshold: Int @rename(attribute: "testtimemaxstatus")
emailMaxItems: Int @rename(attribute: "emailmaxitems")
emailMaxCharacters: Int @rename(attribute: "emailmaxchars")
displayLabels: Boolean @rename(attribute: "displaylabels")
autoRemoveTimeFrame: Int @rename(attribute: "autoremovetimeframe")
autoRemoveMaxBuilds: Int @rename(attribute: "autoremovemaxbuilds")
fileUploadLimit: Int @rename(attribute: "uploadquotagb")
showCoverageCode: Boolean @rename(attribute: "showcoveragecode")
banner: String
}
type ProjectInvitation {
id: ID!
email: String!
invitedBy: User! @belongsTo
project: Project! @belongsTo
role: ProjectRole!
invitationTimestamp: DateTimeTz! @rename(attribute: "invitation_timestamp")
}
input InviteToProjectInput {
email: String!
projectId: ID!
role: ProjectRole!
}
type InviteToProjectMutationPayload implements MutationPayloadInterface {
"Optional error message."
message: String
invitedUser: ProjectInvitation
}
input RevokeProjectInvitationInput {
invitationId: ID!
}
type RevokeProjectInvitationMutationPayload implements MutationPayloadInterface {
"Optional error message."
message: String
}
input ChangeProjectRoleInput {
userId: ID!
projectId: ID!
role: ProjectRole!
}
type ChangeProjectRoleMutationPayload implements MutationPayloadInterface {
"Optional error message."
message: String
"The user whose role was changed."
user: User
"The project associated with the user whose role was changed."
project: Project
}
input RemoveProjectUserInput {
userId: ID!
projectId: ID!
}
type RemoveProjectUserMutationPayload implements MutationPayloadInterface {
"Optional error message."
message: String
}
input JoinProjectInput {
projectId: ID!
}
type JoinProjectMutationPayload implements MutationPayloadInterface {
"Optional error message."
message: String
}
type GlobalInvitation {
id: ID!
email: String!
invitedBy: User! @belongsTo
role: GlobalRole!
invitationTimestamp: DateTimeTz! @rename(attribute: "invitation_timestamp")
}
input CreateGlobalInvitationInput {
email: String!
role: GlobalRole!
}
type CreateGlobalInvitationMutationPayload implements MutationPayloadInterface {
"Optional error message."
message: String
invitedUser: GlobalInvitation
}
input RevokeGlobalInvitationInput {
invitationId: ID!
}
type RevokeGlobalInvitationMutationPayload implements MutationPayloadInterface {
"Optional error message."
message: String
}
input ChangeGlobalRoleInput {
userId: ID!
role: GlobalRole!
}
type ChangeGlobalRoleMutationPayload implements MutationPayloadInterface {
"Optional error message."
message: String
"The user whose role was changed."
user: User
}
input RemoveUserInput {
userId: ID!
}
type RemoveUserMutationPayload implements MutationPayloadInterface {
"Optional error message."
message: String
}
input CreatePinnedTestMeasurementInput {
projectId: ID!
name: String!
}
type CreatePinnedTestMeasurementMutationPayload implements MutationPayloadInterface {
"Optional error message."
message: String
pinnedTestMeasurement: PinnedTestMeasurement
}
input DeletePinnedTestMeasurementInput {
id: ID!
}
type DeletePinnedTestMeasurementMutationPayload implements MutationPayloadInterface {
"Optional error message."
message: String
}
input UpdatePinnedTestMeasurementOrderInput {
projectId: ID!
"A list of PinnedTestMeasurement IDs. Relative position will be set based on position in the list."
pinnedTestMeasurementIds: [ID!]!
}
type UpdatePinnedTestMeasurementOrderMutationPayload implements MutationPayloadInterface {
"Optional error message."
message: String
"The new list of pinned measurements."
pinnedTestMeasurements: [PinnedTestMeasurement!]
}
input CreateRepositoryInput {
projectId: ID!
url: Url!
username: String!
password: String!
branch: String!
}
type CreateRepositoryMutationPayload implements MutationPayloadInterface {
"Optional error message."
message: String
"The newly created repository."
repository: Repository
}
input DeleteRepositoryInput {
repositoryId: ID!
}
type DeleteRepositoryMutationPayload implements MutationPayloadInterface {
"Optional error message."
message: String
}
input CreateAuthenticationTokenInput @validator {
"Optional project"
projectId: ID
scope: AuthTokenScope!
description: String
expiration: DateTimeTz!
}
type CreateAuthenticationTokenMutationPayload implements MutationPayloadInterface {
"Optional error message."
message: String
"The raw token. This token cannot be retrieved again."
rawToken: String
"The new token model."
token: AuthToken
}
input DeleteAuthenticationTokenInput {
tokenId: ID!
}
type DeleteAuthenticationTokenMutationPayload implements MutationPayloadInterface {
"Optional error message."
message: String
}
"Configure."
type Configure {
"Unique primary key."
id: ID! @filterable
command: String! @filterable
log: String! @filterable
returnValue: Int! @rename(attribute: "status") @filterable
}
"Build."
type Build {
"Unique primary key."
id: ID! @filterable
"Name."
name: String! @filterable
"Start time."
startTime: DateTimeTz! @rename(attribute: "starttime") @filterable
"End time."
endTime: DateTimeTz! @rename(attribute: "endtime") @filterable
"Submission time."
submissionTime: DateTimeTz! @rename(attribute: "submittime") @filterable
"The buildstamp generated by CTest. Example: 20091218-1414-Experimental"
stamp: String! @filterable
# TODO: Create a designated UUID GraphQL type
"UUID."
uuid: String! @filterable
# TODO: Determine if there are more specific values we can use for this
"Type."
buildType: String! @rename(attribute: "type")
"The version of CTest used to generate this build. Example: ctest-2.9.20091218"
generator: String! @filterable
"The command used to drive the build. Example: /usr/local/bin/cmake --build . --config Release"
command: String! @filterable
sourceDirectory: String @filterable @rename(attribute: "sourcedirectory")
binaryDirectory: String @filterable @rename(attribute: "binarydirectory")
"The number of errors generated during the configuration step."
configureErrorsCount: Int @rename(attribute: "configureerrors")
"The number of warnings generated during the configuration step."
configureWarningsCount: Int @rename(attribute: "configurewarnings")
"The duration of the configure step in seconds."
configureDuration: Int! @rename(attribute: "configureduration")
"The number of errors generated during the build step."
buildErrorsCount: Int @rename(attribute: "builderrors")
"The number of warnings generated during the build step."
buildWarningsCount: Int @rename(attribute: "buildwarnings")
"The duration of the build step in seconds."
buildDuration: Int! @rename(attribute: "buildduration")
"The number of failed tests."
failedTestsCount: Int @rename(attribute: "testfailed")
"The number of tests which failed the time status."
timeStatusFailedTestsCount: Int @rename(attribute: "testtimestatusfailed")
"The number of passed tests."
passedTestsCount: Int @rename(attribute: "testpassed")
"The number of tests not run for this build."
notRunTestsCount: Int @rename(attribute: "testnotrun")
"The duration of the test step in seconds."
testDuration: Int! @rename(attribute: "testduration")
"The site associated with this build."
site: Site! @belongsTo
"Test results associated with this build."
tests(
filters: _ @filter
): [Test!]! @hasMany(type: CONNECTION)
"""
A list of warnings and errors submitted for this build.
"""
buildErrors(
filters: _ @filter
): [BuildError!]! @hasMany(type: CONNECTION)
project: Project! @belongsTo
notes: [Note!]! @belongsToMany(type: CONNECTION) @orderBy(column: "id", direction: DESC)
operatingSystemName: String @rename(attribute: "osname") @filterable
operatingSystemPlatform: String @rename(attribute: "osplatform") @filterable
operatingSystemRelease: String @rename(attribute: "osrelease") @filterable
operatingSystemVersion: String @rename(attribute: "osversion") @filterable
compilerName: String @rename(attribute: "compilername") @filterable
compilerVersion: String @rename(attribute: "compilerversion") @filterable
"""
Child builds associated with this parent build. Note that CDash only supports one level of
subprojects, so no child builds will have children of their own.
"""
children(
filters: _ @filter
): [Build!]! @hasMany(type: CONNECTION)
coverage(
filters: _ @filter
): [Coverage!]! @belongsToMany(type: CONNECTION)
"""
Get the percentage of lines covered in all files starting with the provided path.
Automatically trims leading slashes and dots. Returns null if the directory does
not exist or contains no lines of executable code.
"""
percentCoverageForPath(
path: String!
): Float @method
labels(
filters: _ @filter
): [Label!]! @belongsToMany(type: CONNECTION)
targets(
filters: _ @filter
): [Target!]! @hasMany(type: CONNECTION)
commands(
filters: _ @filter
): [BuildCommand!]! @hasMany(type: CONNECTION)
urls: [UploadedUrl!]! @hasMany(relation: "uploadedFiles", type: CONNECTION, scopes: ["urls"]) @orderBy(column: "id", direction: ASC)
files: [UploadedFile!]! @hasMany(relation: "uploadedFiles", type: CONNECTION, scopes: ["files"]) @orderBy(column: "id", direction: ASC)
subProject: SubProject! @belongsTo
configure: Configure @hasOneThrough
dynamicAnalyses(
filters: _ @filter
): [DynamicAnalysis!]! @hasMany(type: CONNECTION)
updateStep: Update @belongsTo
comments: [Comment!]! @hasMany(type: CONNECTION) @orderBy(column: "timestamp", direction: DESC)
}
"Test."
type Test {
"Unique primary key."
id: ID! @filterable
name: String! @rename(attribute: "testname") @filterable
status: TestStatus! @filterable
timeStatusCategory: TestTimeStatusCategory! @rename(attribute: "timestatuscategory") @filterable
runningTime: NonNegativeSeconds! @rename(attribute: "time") @filterable
"The average of recent running times for this test"
meanRunningTime: NonNegativeSeconds! @rename(attribute: "timemean") @filterable
"The standard deviation of recent running times for this test"
stdDevRunningTime: Float! @rename(attribute: "timestd") @filterable
startTime: DateTimeTz @rename(attribute: "starttime") @filterable
details: String! @filterable
path: String @with(relation: "testOutput")
command: String @with(relation: "testOutput")
output: String @with(relation: "testOutput")
testMeasurements(
filters: _ @filter
): [TestMeasurement!]! @hasMany
testImages(
filters: _ @filter
): [TestImage!]! @hasMany(type: CONNECTION)
labels(
filters: _ @filter
): [Label!]! @belongsToMany(type: CONNECTION)
}
enum TestStatus {
PASSED @enum(value: "passed")
FAILED @enum(value: "failed")
NOT_RUN @enum(value: "notrun")
}
"Test Measurement."
type TestMeasurement {
"Unique primary key."
id: ID!
"""
Example: "Exit Value"
"""
name: String! @filterable
"""
Example: "text/string", "numeric/double", "text/preformatted", etc
"""
type: String! @filterable
"""
The value for this measurement. Even though some values may be numeric, all
values are returned as strings. There is no guarantee that the type field
will match the actual type of the value field.
Example: "5"
"""
value: String!
}
"Test Measurement."
type TestImage {
"Unique primary key."