Skip to content

Commit

Permalink
CR Fixes 2
Browse files Browse the repository at this point in the history
  • Loading branch information
N-o-Z committed Nov 22, 2024
1 parent c5b5ad3 commit bdcf023
Show file tree
Hide file tree
Showing 15 changed files with 22 additions and 20 deletions.
2 changes: 1 addition & 1 deletion api/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ components:
default: false
hidden:
type: boolean
description: *EXPERIMENTAL* When set, branch will not show up when listing branches by default.
description: When set, branch will not show up when listing branches by default. *EXPERIMENTAL*
default: false

TagCreation:
Expand Down
2 changes: 1 addition & 1 deletion clients/java-legacy/api/openapi.yaml

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

2 changes: 1 addition & 1 deletion clients/java-legacy/docs/BranchCreation.md

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

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

2 changes: 1 addition & 1 deletion clients/java/api/openapi.yaml

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

2 changes: 1 addition & 1 deletion clients/java/docs/BranchCreation.md

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

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

2 changes: 1 addition & 1 deletion clients/python-legacy/docs/BranchCreation.md

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

4 changes: 2 additions & 2 deletions clients/python-legacy/lakefs_client/model/branch_creation.py

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

2 changes: 1 addition & 1 deletion clients/python/docs/BranchCreation.md

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

2 changes: 1 addition & 1 deletion clients/python/lakefs_sdk/models/branch_creation.py

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

2 changes: 1 addition & 1 deletion clients/rust/docs/BranchCreation.md

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

2 changes: 1 addition & 1 deletion clients/rust/src/models/branch_creation.rs

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

2 changes: 1 addition & 1 deletion docs/assets/js/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ components:
default: false
hidden:
type: boolean
description: When set, branch will not show up when listing branches by default
description: When set, branch will not show up when listing branches by default. *EXPERIMENTAL*
default: false

TagCreation:
Expand Down
10 changes: 6 additions & 4 deletions pkg/api/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1502,8 +1502,9 @@ func TestController_ListBranchesHandler(t *testing.T) {
if len(results) != 2 {
t.Fatalf("expected 2 branches to return, got %d", len(results))
}
require.Equal(t, results[0].Id, "main3")
require.Equal(t, results[1].Id, "main5")
expectedRefs := []string{"main3", "main5"}
gotRefs := []string{results[0].Id, results[1].Id}
require.Equal(t, expectedRefs, gotRefs)

// List all branches
resp, err = clt.ListBranchesWithResponse(ctx, repo, &apigen.ListBranchesParams{
Expand All @@ -1516,8 +1517,9 @@ func TestController_ListBranchesHandler(t *testing.T) {
if len(results) != 2 {
t.Fatalf("expected 2 branches to return, got %d", len(results))
}
require.Equal(t, results[0].Id, "main2")
require.Equal(t, results[1].Id, "main3")
expectedRefs = []string{"main2", "main3"}
gotRefs = []string{results[0].Id, results[1].Id}
require.Equal(t, expectedRefs, gotRefs)
})

t.Run("list branches repo doesnt exist", func(t *testing.T) {
Expand Down

0 comments on commit bdcf023

Please sign in to comment.