-
Notifications
You must be signed in to change notification settings - Fork 77
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 flush api #1895
Add flush api #1895
Conversation
takuyyam seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1895 +/- ##
==========================================
- Coverage 31.09% 30.67% -0.43%
==========================================
Files 339 340 +1
Lines 32831 33295 +464
==========================================
+ Hits 10210 10212 +2
- Misses 22169 22615 +446
- Partials 452 468 +16
☔ View full report in Codecov by Sentry. |
internal/file/file.go
Outdated
return err | ||
} | ||
eg.Go(safety.RecoverFunc(func() (err error) { | ||
_, err = os.Delete(childPath) |
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.
typecheck: Delete not declared by package os
ℹ️ Learn about @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
Command | Usage |
---|---|
@sonatype-lift ignore |
Leave out the above finding from this PR |
@sonatype-lift ignoreall |
Leave out all the existing findings from this PR |
@sonatype-lift exclude <file|issue|path|tool> |
Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file |
Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]
internal/file/file.go
Outdated
return err | ||
} | ||
eg.Go(safety.RecoverFunc(func() (err error) { | ||
_, err = os.Remove(childPath) |
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.
typecheck: cannot assign 1 values to 2 variables
ℹ️ Learn about @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
Command | Usage |
---|---|
@sonatype-lift ignore |
Leave out the above finding from this PR |
@sonatype-lift ignoreall |
Leave out all the existing findings from this PR |
@sonatype-lift exclude <file|issue|path|tool> |
Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file |
Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]
internal/errors/ngt.go
Outdated
@@ -21,6 +21,9 @@ var ( | |||
// ErrCreateIndexingIsInProgress represents an error that the indexing is in progress but search request received |
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.
godot: Comment should end in a period
ℹ️ Learn about @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
Command | Usage |
---|---|
@sonatype-lift ignore |
Leave out the above finding from this PR |
@sonatype-lift ignoreall |
Leave out all the existing findings from this PR |
@sonatype-lift exclude <file|issue|path|tool> |
Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file |
Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]
9b3087a
to
4a659f2
Compare
d7c73d2
to
dbf27e9
Compare
dbf27e9
to
d59271c
Compare
d59271c
to
f655811
Compare
6c490e6
to
961b327
Compare
internal/errors/ngt.go
Outdated
@@ -18,6 +18,91 @@ | |||
package errors | |||
|
|||
var ( | |||
// ErrCreateIndexingIsInProgress represents an error that the indexing is in progress but search request received | |||
ErrCreateIndexingIsInProgress = New("create indexing is in progress") |
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.
typecheck: ErrCreateIndexingIsInProgress
redeclared in this block
❗❗ 10 similar findings have been found in this PR
🔎 Expand here to view all instances of this finding
File Path | Line Number |
---|---|
internal/errors/ngt.go | 28 |
internal/errors/ngt.go | 33 |
internal/errors/ngt.go | 36 |
internal/errors/ngt.go | 39 |
internal/errors/ngt.go | 42 |
internal/errors/ngt.go | 50 |
internal/errors/ngt.go | 55 |
internal/errors/ngt.go | 60 |
internal/errors/ngt.go | 65 |
internal/errors/ngt.go | 68 |
Visit the Lift Web Console to find more details in your report.
ℹ️ Expand to see all @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
Command | Usage |
---|---|
@sonatype-lift ignore |
Leave out the above finding from this PR |
@sonatype-lift ignoreall |
Leave out all the existing findings from this PR |
@sonatype-lift exclude <file|issue|path|tool> |
Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file |
Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
Help us improve LIFT! (Sonatype LiftBot external survey)
Was this a good recommendation for you? Answering this survey will not impact your Lift settings.
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]
961b327
to
0393f72
Compare
internal/errors/ngt.go
Outdated
ErrUnsupportedDistanceType = New("unsupported DistanceType") | ||
|
||
// ErrFailedToSetDistanceType represents a function to generate an error that the set of distance type failed. | ||
ErrFailedToSetDistanceType = func(err error, distance string) error { |
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.
typecheck: ErrFailedToSetDistanceType
redeclared in this block
❗❗ 9 similar findings have been found in this PR
🔎 Expand here to view all instances of this finding
File Path | Line Number |
---|---|
internal/errors/ngt.go | 76 |
internal/errors/ngt.go | 81 |
internal/errors/ngt.go | 86 |
internal/errors/ngt.go | 91 |
internal/errors/ngt.go | 96 |
internal/errors/ngt.go | 101 |
internal/errors/ngt.go | 104 |
internal/file/file.go | 22 |
internal/file/file.go | 505 |
Visit the Lift Web Console to find more details in your report.
ℹ️ Expand to see all @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
Command | Usage |
---|---|
@sonatype-lift ignore |
Leave out the above finding from this PR |
@sonatype-lift ignoreall |
Leave out all the existing findings from this PR |
@sonatype-lift exclude <file|issue|path|tool> |
Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file |
Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
Help us improve LIFT! (Sonatype LiftBot external survey)
Was this a good recommendation for you? Answering this survey will not impact your Lift settings.
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]
d6f247a
to
a8c8cb6
Compare
23a213b
to
7a234aa
Compare
4013166
to
8ad592a
Compare
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.
LGTM
355ae00
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.
LGTM
I've opened a new PR (#2273), so I will be closing this one. |
Description:
Flush API to delete all vectors has been added.
Related Issue:
Versions:
Checklist:
Special notes for your reviewer: