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

[WIP] Update timestamp if exists #2174

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

kevindiu
Copy link
Contributor

Description:

Related Issue:

Versions:

  • Go Version: 1.21.0
  • Docker Version: 20.10.8
  • Kubernetes Version: v1.28.1
  • NGT Version: 2.1.3

Checklist:

Special notes for your reviewer:

@cloudflare-pages
Copy link

cloudflare-pages bot commented Sep 11, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 76c4e58
Status: ✅  Deploy successful!
Preview URL: https://2955e855.vald.pages.dev
Branch Preview URL: https://feature-timestamp-update-tim.vald.pages.dev

View logs

pkg/gateway/lb/handler/grpc/handler.go Outdated Show resolved Hide resolved
pkg/agent/core/ngt/service/ngt.go Outdated Show resolved Hide resolved
pkg/agent/core/ngt/service/ngt.go Outdated Show resolved Hide resolved
pkg/agent/core/ngt/service/ngt.go Outdated Show resolved Hide resolved
pkg/agent/core/ngt/service/ngt.go Outdated Show resolved Hide resolved
pkg/agent/core/ngt/service/ngt.go Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Sep 11, 2023

Codecov Report

Attention: 107 lines in your changes are missing coverage. Please review.

Files Coverage Δ
pkg/agent/core/ngt/handler/grpc/upsert.go 30.43% <100.00%> (+0.50%) ⬆️
pkg/gateway/lb/handler/grpc/handler.go 0.00% <0.00%> (ø)
pkg/agent/core/ngt/service/ngt.go 36.08% <10.34%> (-0.63%) ⬇️
pkg/agent/core/ngt/handler/grpc/update.go 34.56% <20.87%> (+4.32%) ⬆️

... and 2 files with indirect coverage changes

📢 Thoughts on this report? Let us know!.

@kevindiu kevindiu force-pushed the feature/timestamp/update-timestamp-when-update-upsert branch 2 times, most recently from 95d8330 to 82db537 Compare September 12, 2023 01:52
@github-actions github-actions bot added size/L and removed size/M labels Sep 12, 2023
@kevindiu kevindiu force-pushed the feature/timestamp/update-timestamp-when-update-upsert branch 2 times, most recently from 9ec458e to 3c9dd08 Compare September 20, 2023 08:53
@@ -832,6 +837,208 @@ func Test_server_Update(t *testing.T) {
wantUUID: "uuid-2",
},
},
func() test {
indexID := "test"
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [golangci] reported by reviewdog 🐶
string test has 4 occurrences, make it a constant (goconst)

@kevindiu kevindiu force-pushed the feature/timestamp/update-timestamp-when-update-upsert branch from 0b1786d to 4ff11e2 Compare September 21, 2023 02:03
@github-actions github-actions bot added size/XL and removed size/L labels Sep 26, 2023
@@ -832,6 +842,423 @@ func Test_server_Update(t *testing.T) {
wantUUID: "uuid-2",
},
},
func() test {
indexID := "test"
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [golangci] reported by reviewdog 🐶
string test has 8 occurrences, make it a constant (goconst)

@@ -832,6 +846,549 @@ func Test_server_Update(t *testing.T) {
wantUUID: "uuid-2",
},
},
func() test {
indexID := "test"
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [golangci] reported by reviewdog 🐶
string test has 12 occurrences, make it a constant (goconst)

Signed-off-by: kevindiu <[email protected]>
kevindiu and others added 13 commits October 5, 2023 10:08
Signed-off-by: kevindiu <[email protected]>
Signed-off-by: kevindiu <[email protected]>
Signed-off-by: kevindiu <[email protected]>
Signed-off-by: kevindiu <[email protected]>
Signed-off-by: kevindiu <[email protected]>
Signed-off-by: kevindiu <[email protected]>
Signed-off-by: kevindiu <[email protected]>
Signed-off-by: kevindiu <[email protected]>
Signed-off-by: kevindiu <[email protected]>
Signed-off-by: kevindiu <[email protected]>
Signed-off-by: kevindiu <[email protected]>
@kevindiu kevindiu force-pushed the feature/timestamp/update-timestamp-when-update-upsert branch from 253d353 to cc58f89 Compare October 5, 2023 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant