Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add StorageID to Repo endpoints #8506

Conversation

itaigilo
Copy link
Contributor

No description provided.

@itaigilo itaigilo added exclude-changelog PR description should not be included in next release changelog minor-change Used for PRs that don't require issue attached labels Jan 15, 2025
Copy link

E2E Test Results - DynamoDB Local - Local Block Adapter

13 passed

Copy link

E2E Test Results - Quickstart

11 passed

@@ -2055,6 +2059,7 @@ func (c *Controller) CreateRepository(w http.ResponseWriter, r *http.Request, bo
CreationDate: newRepo.CreationDate.Unix(),
DefaultBranch: newRepo.DefaultBranch,
Id: newRepo.Name,
StorageId: swag.String(newRepo.StorageNamespace),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

storageNamespace?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! 🙈

Fixed.

Copy link
Member

@N-o-Z N-o-Z left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!
Lets add controller tests for ListRepositories

@itaigilo
Copy link
Contributor Author

Lets add controller tests for ListRepositories

There are no such tests covering StorageNamespace in the controller tests, so I don't think we should add ones for StorageID.

It's covered by Esti - let's added it when we get there.

@itaigilo itaigilo requested a review from N-o-Z January 17, 2025 17:37
@itaigilo
Copy link
Contributor Author

@N-o-Z can you please re-review?

@itaigilo itaigilo merged commit 6d2d2e7 into feature/add-storage-id-to-repo Jan 17, 2025
36 checks passed
@itaigilo itaigilo deleted the feature/add-storage-id-to-repo-endpoints branch January 17, 2025 23:25
itaigilo added a commit that referenced this pull request Jan 18, 2025
* Add StorageID to Repository entity

* Bug fixes

* Remove API changes

* Almost empty commit

* Revert almso empty commit

* Remove from API

* Fix PR comments

* Fix tests

* Update tests

* Allow only empty StorageID

* Revert "Allow only empty StorageID"

This reverts commit 298bc0d.

* Revert "Revert "Allow only empty StorageID""

This reverts commit 299c292.

* Change validation

* Remove StorageID in a test

* Add StorageID to Repo endpoints (#8506)

* Add StorageID to Repo endpoints

* Add param to Creation

* Add basic unit-tests

* Fix param

* Update tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exclude-changelog PR description should not be included in next release changelog minor-change Used for PRs that don't require issue attached
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants