Skip to content

Commit

Permalink
remove field from report
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Vlasic committed Nov 24, 2021
1 parent fab0519 commit d6040a7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
4 changes: 1 addition & 3 deletions backend/api/report/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const (
SlackWebhookEnv = "SLACK_WEBHOOK"
ReportBucketEnv = "REPORT_BUCKET"

reportsPartition = "reports"
reportsPartition = "report"
)

type Report struct {
Expand Down Expand Up @@ -207,7 +207,6 @@ func (r *Report) RecordFromReq(req dto.UploadURLRequest) Record {
id := domain.UID()
return Record{
ID: id,
UserID: req.UserID,
WorkspaceID: req.WorkspaceID,
S3Key: fmt.Sprintf("%s/%s.zip", time.Now().Format("2006-01-02"), id),
Message: req.Message,
Expand All @@ -217,7 +216,6 @@ func (r *Report) RecordFromReq(req dto.UploadURLRequest) Record {

type Record struct {
ID string
UserID string
WorkspaceID string
S3Key string
Message string
Expand Down
8 changes: 4 additions & 4 deletions backend/config/state.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ stages:
ws: ""
functions:
- name: report
hash: f139b807
s3_key: functions/backend/production/report-f139b807.zip
hash: "28633091"
s3_key: functions/backend/production/report-28633091.zip
memory_size: 128
timeout: 900
env:
Expand All @@ -24,8 +24,8 @@ stages:
REPORT_BUCKET: mantil-user-reports
SLACK_WEBHOOK: https://hooks.slack.com/services/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
- name: signup
hash: 197aeafd
s3_key: functions/backend/production/signup-197aeafd.zip
hash: 7ad3d2ec
s3_key: functions/backend/production/signup-7ad3d2ec.zip
memory_size: 128
timeout: 900
env:
Expand Down
2 changes: 1 addition & 1 deletion backend/config/workspace.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: mantil
id: QNdJFI41T9CSu3h_gapZjg
version: v0.1.29-28-gc5596f9
version: v0.1.27-50-gfab0519
created_at: 1637668423231
nodes:
- name: production
Expand Down
1 change: 0 additions & 1 deletion cli/controller/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ func Report(days int) error {
}
workspaceID := fs.Workspace().ID
uploadReq := dto.UploadURLRequest{
UserID: workspaceID,
WorkspaceID: workspaceID,
Message: msg,
}
Expand Down

0 comments on commit d6040a7

Please sign in to comment.