-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: Update the deprecated functions in Go feature server. #5627
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates deprecated Go functions and imports to use their modern equivalents, addressing deprecation warnings in the Go feature server codebase.
- Replace deprecated
io/ioutilfunctions with theirosandioequivalents - Update gRPC client initialization to use the newer
grpc.NewClientAPI - Modernize slice operations using Go 1.21's
slicespackage
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| go/internal/feast/server/logging/offlinestoresink.go | Replace ioutil.TempDir with os.MkdirTemp |
| go/internal/feast/server/logging/logger_test.go | Replace ioutil.ReadDir with os.ReadDir |
| go/internal/feast/server/grpc_server_test.go | Update gRPC client creation and replace deprecated functions |
| go/internal/feast/registry/s3.go | Replace ioutil.ReadAll with io.ReadAll |
| go/internal/feast/registry/registry_test.go | Replace ioutil.NopCloser with io.NopCloser |
| go/internal/feast/registry/local.go | Replace ioutil.ReadFile and ioutil.WriteFile with os equivalents |
| go/internal/feast/model/featureview.go | Replace manual loop with slices.Contains |
| go/infra/docker/feature-server/Dockerfile | Update Go version from 1.22.5 to 1.23.12 |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Signed-off-by: Shuchu Han <shuchu.han@gmail.com>
…ast-dev#5626) * Added featureView in the response for search results of features Signed-off-by: Aniket Paluskar <apaluska@redhat.com> * Added tests to check featureView addition in feature search results Signed-off-by: Aniket Paluskar <apaluska@redhat.com> --------- Signed-off-by: Aniket Paluskar <apaluska@redhat.com> Signed-off-by: Shuchu Han <shuchu.han@gmail.com>
7996c84 to
6ea07fb
Compare
| "name": feature.get("name", ""), | ||
| "description": feature.get("description", ""), | ||
| "project": current_project, | ||
| "featureView": feature.get("featureView", ""), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit is from another PR, probably came while rebase
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are right, create a new PR: #5632
What this PR does / why we need it:
There are few function calls are deprecated.
Which issue(s) this PR fixes:
Fix #5623
Misc