-
Notifications
You must be signed in to change notification settings - Fork 204
Change insight proto definition #3403
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/server/service/webservice/service.pb.go--- pkg/app/server/service/webservice/service.pb.go.orig
+++ pkg/app/server/service/webservice/service.pb.go
@@ -21,13 +21,15 @@
package webservice
import (
+ reflect "reflect"
+ sync "sync"
+
_ "github.com/envoyproxy/protoc-gen-validate/validate"
- model "github.com/pipe-cd/pipecd/pkg/model"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
- reflect "reflect"
- sync "sync"
+
+ model "github.com/pipe-cd/pipecd/pkg/model"
)
const (
pkg/insight/insightstore/insightstoretest/insightstore.mock.go--- pkg/insight/insightstore/insightstoretest/insightstore.mock.go.orig
+++ pkg/insight/insightstore/insightstoretest/insightstore.mock.go
@@ -9,6 +9,7 @@
reflect "reflect"
gomock "github.com/golang/mock/gomock"
+
insight "github.com/pipe-cd/pipecd/pkg/insight"
)
pkg/model/insight.pb.go--- pkg/model/insight.pb.go.orig
+++ pkg/model/insight.pb.go
@@ -21,11 +21,12 @@
package model
import (
+ reflect "reflect"
+ sync "sync"
+
_ "github.com/envoyproxy/protoc-gen-validate/validate"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
)
const (
|
This comment was marked as outdated.
This comment was marked as outdated.
|
/golinter fmt |
|
Unabled to format the unfmt-ed files. In response to this comment. |
| int64 data_point_count = 4 [(validate.rules).int64.gt = 0]; | ||
| string application_id = 5; | ||
| int64 range_from = 2 [(validate.rules).int64.gt = 0]; | ||
| int64 day_count = 3 [(validate.rules).int64.gt = 0]; |
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.
How about changing this field to range_to to be unified?
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.
Thank you!
At first I had set it to range_to, but after seeing #1187, I changed it to day_count. This is because dealing time is complicated.
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.
It was difficult because we had many UNIT types (DAILY, WEEKLY, ...) before.
But now only Daily is supported and I think it could be simple. 🤔
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.
I got your point. I'll change it to use range_to. Thank you!
This comment was marked as outdated.
This comment was marked as outdated.
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.
The linter points out to the auto generated file, but we can ignore it. 👍
|
I completely forgot about web. |
This comment was marked as outdated.
This comment was marked as outdated.
|
The following files are not gofmt-ed. By commenting pkg/app/server/service/webservice/service.pb.go--- pkg/app/server/service/webservice/service.pb.go.orig
+++ pkg/app/server/service/webservice/service.pb.go
@@ -21,13 +21,15 @@
package webservice
import (
+ reflect "reflect"
+ sync "sync"
+
_ "github.com/envoyproxy/protoc-gen-validate/validate"
- model "github.com/pipe-cd/pipecd/pkg/model"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
- reflect "reflect"
- sync "sync"
+
+ model "github.com/pipe-cd/pipecd/pkg/model"
)
const (
|
This comment was marked as outdated.
This comment was marked as outdated.
|
The following ISSUES will be created once got merged. If you want me to skip creating the issue, you can use Details1. Enable fetch chart data on insight filter changes.pipecd/web/src/components/insight-page/insight-header/index.tsx Lines 104 to 107 in ff4369d
This was created by todo plugin since "TODO:" was found in ff4369d when #3403 was merged. cc: @Hosshii. |
|
Code coverage for golang is
|
|
Code coverage for javascript is
|
|
I fixed web test and proto definition. PTAL |
|
Go ahead. /lgtm |
|
Go bold |
What this PR does / why we need it:
In order to run in a production environment, we will implement only the deployment frequency for now. In addition, we have changed our implementation policy a bit, eliminating weekly, monthly, and yearly, and only implementing daily.
This PR is a change to the proto file for this purpose. The current implementation needs to be modified accordingly, but I have commented it out because it requires a significant amount of modification and the policy has changed a bit. I will uncomment the commented out sections as I modify them in future PR's.
Which issue(s) this PR fixes:
ref #1142
Does this PR introduce a user-facing change?: