Skip to content

Commit

Permalink
add optional label
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com>
  • Loading branch information
sthwang-metal committed Dec 6, 2023
1 parent d85a9ac commit d0becdc
Show file tree
Hide file tree
Showing 16 changed files with 179 additions and 46 deletions.
10 changes: 8 additions & 2 deletions internal/ent/generated/gql_mutation_input.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions internal/ent/generated/gql_where_input.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/ent/generated/migrate/schema.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 23 additions & 1 deletion internal/ent/generated/mutation.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions internal/ent/generated/port/where.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions internal/ent/generated/port_create.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions internal/ent/generated/port_update.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion internal/ent/schema/port.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ func (Port) Fields() []ent.Field {
field.String("name").
Annotations(
entgql.OrderField("name"),
),
).
Optional(),
field.String("load_balancer_id").
GoType(gidx.PrefixedID("")).
Immutable().
Expand Down
48 changes: 36 additions & 12 deletions internal/graphapi/gen_server.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/graphapi/loadbalancer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ func TestFullLoadBalancerLifecycle(t *testing.T) {
assert.Equal(t, ownerID, createdLB.Owner.ID)

createdPortResp, err := graphTestClient().LoadBalancerPortCreate(ctx, graphclient.CreateLoadBalancerPortInput{
Name: gofakeit.DomainName(),
Name: newString(gofakeit.DomainName()),
Number: 8080,
LoadBalancerID: createdLB.ID,
})
Expand Down
Loading

0 comments on commit d0becdc

Please sign in to comment.