Skip to content

Commit 1f9b973

Browse files
committed
fix/revert: allow multiple label and assigne event to be published at once
1 parent f90c52c commit 1f9b973

File tree

4 files changed

+51
-111
lines changed

4 files changed

+51
-111
lines changed

graph/generated/root_.generated.go

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

graph/generated/schema.generated.go

Lines changed: 12 additions & 72 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

schema/dgraph_out.graphql

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1+
directive @id(interface: Boolean) on FIELD_DEFINITION
2+
13
directive @withSubscription on OBJECT | INTERFACE | FIELD_DEFINITION
24

35
directive @auth(password: AuthRule, query: AuthRule, add: AuthRule, update: AuthRule, delete: AuthRule) on OBJECT | INTERFACE
46

57
directive @custom(http: CustomHTTP, dql: String) on FIELD_DEFINITION
68

7-
directive @lambda on FIELD_DEFINITION
9+
directive @remoteResponse(name: String) on FIELD_DEFINITION
810

911
directive @cacheControl(maxAge: Int!) on QUERY
1012

11-
directive @generate(query: GenerateQueryParams, mutation: GenerateMutationParams, subscription: Boolean) on OBJECT | INTERFACE
12-
13-
directive @id(interface: Boolean) on FIELD_DEFINITION
13+
directive @dgraph(type: String, pred: String) on OBJECT | INTERFACE | FIELD_DEFINITION
1414

1515
directive @default(add: DgraphDefault, update: DgraphDefault) on FIELD_DEFINITION
1616

17-
directive @cascade(fields: [String]) on FIELD
18-
1917
directive @lambdaOnMutate(add: Boolean, update: Boolean, delete: Boolean) on OBJECT | INTERFACE
2018

2119
directive @hasInverse(field: String!) on FIELD_DEFINITION
2220

2321
directive @search(by: [DgraphIndex!]) on FIELD_DEFINITION
2422

25-
directive @dgraph(type: String, pred: String) on OBJECT | INTERFACE | FIELD_DEFINITION
23+
directive @remote on OBJECT | INTERFACE | UNION | INPUT_OBJECT | ENUM
24+
25+
directive @lambda on FIELD_DEFINITION
2626

2727
directive @secret(field: String!, pred: String) on OBJECT | INTERFACE
2828

29-
directive @remote on OBJECT | INTERFACE | UNION | INPUT_OBJECT | ENUM
29+
directive @cascade(fields: [String]) on FIELD
3030

31-
directive @remoteResponse(name: String) on FIELD_DEFINITION
31+
directive @generate(query: GenerateQueryParams, mutation: GenerateMutationParams, subscription: Boolean) on OBJECT | INTERFACE
3232

3333
input AddBlobInput {
3434
createdBy: UserRef!

schema/schema.graphql

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -573,37 +573,37 @@ enum Lang {
573573

574574
# Dgraph.Authorization {"Header":"X-Frac6-Auth","Namespace":"https://fractale.co/jwt/claims","Algo":"RS256","VerificationKey":"-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqfBbJAanlwf2mYlBszBA\nxgHw3hTu6gZ9nmej+5fCCdyA85IXhw14+F14o+vLogPe/giFuPMpG9eCOPWKvL/T\nGyahW5Lm8TRB4Pf54fZq5+VKdf5/i9u2e8CelpFvT+zLRdBmNVy9H9MitOF9mSGK\nHviPH1nHzU6TGvuVf44s60LAKliiwagALF+T/3ReDFhoqdLb1J3w4JkxFO6Guw5p\n3aDT+RMjjz9W8XpT3+k8IHocWxcEsuWMKdhuNwOHX2l7yU+/yLOrK1nuAMH7KewC\nCT4gJOan1qFO8NKe37jeQgsuRbhtF5C+L6CKs3n+B2A3ZOYB4gzdJfMLXxW/wwr1\nRQIDAQAB\n-----END PUBLIC KEY-----"}
575575

576+
directive @id(interface: Boolean) on FIELD_DEFINITION
577+
576578
directive @withSubscription on OBJECT|INTERFACE|FIELD_DEFINITION
577579

578580
directive @auth(password: AuthRule, query: AuthRule, add: AuthRule, update: AuthRule, delete: AuthRule) on OBJECT|INTERFACE
579581

580582
directive @custom(http: CustomHTTP, dql: String) on FIELD_DEFINITION
581583

582-
directive @lambda on FIELD_DEFINITION
584+
directive @remoteResponse(name: String) on FIELD_DEFINITION
583585

584586
directive @cacheControl(maxAge: Int!) on QUERY
585587

586-
directive @generate(query: GenerateQueryParams, mutation: GenerateMutationParams, subscription: Boolean) on OBJECT|INTERFACE
587-
588-
directive @id(interface: Boolean) on FIELD_DEFINITION
588+
directive @dgraph(type: String, pred: String) on OBJECT|INTERFACE|FIELD_DEFINITION
589589

590590
directive @default(add: DgraphDefault, update: DgraphDefault) on FIELD_DEFINITION
591591

592-
directive @cascade(fields: [String]) on FIELD
593-
594592
directive @lambdaOnMutate(add: Boolean, update: Boolean, delete: Boolean) on OBJECT|INTERFACE
595593

596594
directive @hasInverse(field: String!) on FIELD_DEFINITION
597595

598596
directive @search(by: [DgraphIndex!]) on FIELD_DEFINITION
599597

600-
directive @dgraph(type: String, pred: String) on OBJECT|INTERFACE|FIELD_DEFINITION
598+
directive @remote on OBJECT|INTERFACE|UNION|INPUT_OBJECT|ENUM
599+
600+
directive @lambda on FIELD_DEFINITION
601601

602602
directive @secret(field: String!, pred: String) on OBJECT|INTERFACE
603603

604-
directive @remote on OBJECT|INTERFACE|UNION|INPUT_OBJECT|ENUM
604+
directive @cascade(fields: [String]) on FIELD
605605

606-
directive @remoteResponse(name: String) on FIELD_DEFINITION
606+
directive @generate(query: GenerateQueryParams, mutation: GenerateMutationParams, subscription: Boolean) on OBJECT|INTERFACE
607607

608608
input AddBlobInput {
609609
createdBy: UserRef!
@@ -869,8 +869,8 @@ input AddTensionInput {
869869
status: TensionStatus!
870870
action: TensionAction
871871
comments: [CommentRef!] @x_alter(r:"hasEvent", e:[Created, CommentPushed]) @x_alter(r:"oneByOne")
872-
assignees: [UserRef!] @x_alter(r:"hasEvent", e:[AssigneeAdded, AssigneeRemoved]) @x_alter(r:"oneByOne") @x_alter(r:"ref")
873-
labels: [LabelRef!] @x_alter(r:"hasEvent", e:[LabelAdded, LabelRemoved]) @x_alter(r:"oneByOne") @x_alter(r:"ref")
872+
assignees: [UserRef!] @x_alter(r:"hasEvent", e:[AssigneeAdded, AssigneeRemoved]) @x_alter(r:"ref")
873+
labels: [LabelRef!] @x_alter(r:"hasEvent", e:[LabelAdded, LabelRemoved]) @x_alter(r:"ref")
874874
blobs: [BlobRef!] @x_alter(r:"hasEvent", e:[BlobCreated, BlobCommitted]) @x_alter(r:"oneByOne")
875875
history: [EventRef!]
876876
mentions: [EventRef!]
@@ -2764,8 +2764,8 @@ input TensionPatch {
27642764
status: TensionStatus @x_patch_ro
27652765
action: TensionAction @x_patch_ro
27662766
comments: [CommentRef!] @x_alter(r:"hasEvent", e:[Created, CommentPushed]) @x_alter(r:"oneByOne")
2767-
assignees: [UserRef!] @x_alter(r:"hasEvent", e:[AssigneeAdded, AssigneeRemoved]) @x_alter(r:"oneByOne") @x_alter(r:"ref")
2768-
labels: [LabelRef!] @x_alter(r:"hasEvent", e:[LabelAdded, LabelRemoved]) @x_alter(r:"oneByOne") @x_alter(r:"ref")
2767+
assignees: [UserRef!] @x_alter(r:"hasEvent", e:[AssigneeAdded, AssigneeRemoved]) @x_alter(r:"ref")
2768+
labels: [LabelRef!] @x_alter(r:"hasEvent", e:[LabelAdded, LabelRemoved]) @x_alter(r:"ref")
27692769
blobs: [BlobRef!] @x_alter(r:"hasEvent", e:[BlobCreated, BlobCommitted]) @x_alter(r:"oneByOne")
27702770
history: [EventRef!] @x_alter
27712771
mentions: [EventRef!] @x_patch_ro
@@ -2790,8 +2790,8 @@ input TensionRef {
27902790
status: TensionStatus
27912791
action: TensionAction
27922792
comments: [CommentRef!] @x_alter(r:"hasEvent", e:[Created, CommentPushed]) @x_alter(r:"oneByOne")
2793-
assignees: [UserRef!] @x_alter(r:"hasEvent", e:[AssigneeAdded, AssigneeRemoved]) @x_alter(r:"oneByOne") @x_alter(r:"ref")
2794-
labels: [LabelRef!] @x_alter(r:"hasEvent", e:[LabelAdded, LabelRemoved]) @x_alter(r:"oneByOne") @x_alter(r:"ref")
2793+
assignees: [UserRef!] @x_alter(r:"hasEvent", e:[AssigneeAdded, AssigneeRemoved]) @x_alter(r:"ref")
2794+
labels: [LabelRef!] @x_alter(r:"hasEvent", e:[LabelAdded, LabelRemoved]) @x_alter(r:"ref")
27952795
blobs: [BlobRef!] @x_alter(r:"hasEvent", e:[BlobCreated, BlobCommitted]) @x_alter(r:"oneByOne")
27962796
history: [EventRef!] @x_alter
27972797
mentions: [EventRef!]

0 commit comments

Comments
 (0)