-
Notifications
You must be signed in to change notification settings - Fork 211
Create API to get insight datas from insightstore #1298
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
|
The following files are not gofmt-ed. By commenting pkg/app/api/grpcapi/web_api_test.go--- pkg/app/api/grpcapi/web_api_test.go.orig
+++ pkg/app/api/grpcapi/web_api_test.go
@@ -21,13 +21,14 @@
"testing"
"github.com/golang/mock/gomock"
+ "github.com/stretchr/testify/assert"
+
"github.com/pipe-cd/pipe/pkg/app/api/service/webservice"
"github.com/pipe-cd/pipe/pkg/cache"
"github.com/pipe-cd/pipe/pkg/cache/cachetest"
"github.com/pipe-cd/pipe/pkg/datastore"
"github.com/pipe-cd/pipe/pkg/datastore/datastoretest"
"github.com/pipe-cd/pipe/pkg/model"
- "github.com/stretchr/testify/assert"
)
func Test_filterDeploymentConfigTemplates(t *testing.T) {
|
|
/golinter fmt |
… into fix-api-to-use-insightstore
|
Code coverage for golang is
|
|
Code coverage for golang is
|
| PageSize: pageSize, | ||
| Filters: append(filterForSuccessDeploy, commonFilters...), | ||
| }) | ||
| chunks, err := a.insightstore.LoadChunks(ctx, claims.Role.ProjectId, req.ApplicationId, req.MetricsKind, req.Step, from, count) |
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.
Can you add a TODO (before this line) about caching the insight data inside the cache service?
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.
OK 👍
|
/lgtm |
|
The following ISSUES will be created once got merged. If you want me to skip creating the issue, you can use Details1. caching the insight data inside the cache serviceThis was created by todo plugin since "TODO:" was found in 21966ba when #1298 was merged. cc: @sanposhiho. |
|
/approve |
What this PR does / why we need it:
create api to get insight data from insight store
Which issue(s) this PR fixes:
Ref #1142
Does this PR introduce a user-facing change?: