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

Closed

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-workers-and-pages
Copy link

cloudflare-workers-and-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: Patch coverage is 19.54887% with 107 lines in your changes missing coverage. Please review.

Project coverage is 31.09%. Comparing base (001f741) to head (76c4e58).
Report is 195 commits behind head on main.

Files with missing lines Patch % Lines
pkg/agent/core/ngt/handler/grpc/update.go 20.87% 64 Missing and 8 partials ⚠️
pkg/agent/core/ngt/service/ngt.go 10.34% 26 Missing ⚠️
pkg/gateway/lb/handler/grpc/handler.go 0.00% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2174      +/-   ##
==========================================
+ Coverage   31.07%   31.09%   +0.02%     
==========================================
  Files         346      346              
  Lines       34206    34244      +38     
==========================================
+ Hits        10628    10648      +20     
- Misses      23091    23102      +11     
- Partials      487      494       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@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
@kpango kpango closed this Aug 31, 2024
@kpango kpango deleted the feature/timestamp/update-timestamp-when-update-upsert branch August 31, 2024 00:00
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.

2 participants