Skip to content

Commit

Permalink
PR FIXUP - Add linked todos re mutating branchableness
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSisley committed Nov 8, 2024
1 parent 0c987ff commit 24048d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/db/definition_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,7 @@ func validateCollectionFieldDefaultValue(

// validateCollectionIsBranchableNotMutated is a temporary restriction that prevents users from toggling
// whether or not a collection is branchable.
// https://github.com/sourcenetwork/defradb/issues/3219
func validateCollectionIsBranchableNotMutated(
ctx context.Context,
db *db,
Expand Down
2 changes: 2 additions & 0 deletions internal/request/graphql/schema/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ func MaterializedDirective() *gql.Directive {
func BranchableDirective() *gql.Directive {
return gql.NewDirective(gql.DirectiveConfig{
Name: BranchableDirectiveLabel,
// Todo: This description will need to be changed with:
// https://github.com/sourcenetwork/defradb/issues/3219
Description: `@branchable is a directive that defines whether the history of this collection is tracked
as a single, verifiable entity or not. It will default to false if ommited.
Expand Down

0 comments on commit 24048d7

Please sign in to comment.