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

refactor(storage): rename volume_id -> volume_name_ref #569

Merged
merged 1 commit into from
Aug 4, 2023

Conversation

glimchb
Copy link
Member

@glimchb glimchb commented Aug 3, 2023

Signed-off-by: Boris Glimcher [email protected]

@codecov
Copy link

codecov bot commented Aug 3, 2023

Codecov Report

Merging #569 (a58c5d7) into main (0ad494e) will increase coverage by 0.09%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #569      +/-   ##
==========================================
+ Coverage   75.48%   75.58%   +0.09%     
==========================================
  Files          21       21              
  Lines        3419     3416       -3     
==========================================
+ Hits         2581     2582       +1     
+ Misses        771      768       -3     
+ Partials       67       66       -1     
Files Changed Coverage Δ
pkg/middleend/qos.go 93.24% <100.00%> (+1.58%) ⬆️

@glimchb
Copy link
Member Author

glimchb commented Aug 3, 2023

depends on opiproject/godpu#252

@glimchb glimchb changed the title refactor(storage): VolumeId -> VolumeNameRef refactor(storage): rename volume_id -> volume_name_ref Aug 3, 2023
@@ -249,9 +249,6 @@ func (s *Server) verifyQosVolume(volume *pb.QosVolume) error {
if err := resourcename.Validate(volume.Name); err != nil {
return err
}
if volume.VolumeId == nil || volume.VolumeId.Value == "" {
return fmt.Errorf("volume_id cannot be empty")
}

if volume.MinLimit != nil {
Copy link
Member Author

@glimchb glimchb Aug 3, 2023

Choose a reason for hiding this comment

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

@artek-koltun please note this removal. I think fieldbehavior.ValidateRequiredFields covers empty string

@glimchb glimchb marked this pull request as ready for review August 3, 2023 21:21
@glimchb glimchb requested a review from a team as a code owner August 3, 2023 21:21
@glimchb glimchb added the Merge Candidate in the open merge window, next candidate for merge label Aug 3, 2023
@artek-koltun artek-koltun merged commit 710a4c6 into opiproject:main Aug 4, 2023
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Merge Candidate in the open merge window, next candidate for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants