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

chore: introduce region in reporting url #2832

Merged
merged 5 commits into from
Dec 27, 2022
Merged

Conversation

cisse21
Copy link
Member

@cisse21 cisse21 commented Dec 26, 2022

Description

As part of data residency adaptations ... introducing the changes for encoding region into query params for reporting and live events url

Notion Ticket

Notion Link

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

@codecov
Copy link

codecov bot commented Dec 26, 2022

Codecov Report

Base: 47.32% // Head: 47.35% // Increases project coverage by +0.03% 🎉

Coverage data is based on head (3426735) compared to base (eadf1da).
Patch coverage: 24.03% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2832      +/-   ##
==========================================
+ Coverage   47.32%   47.35%   +0.03%     
==========================================
  Files         308      308              
  Lines       49616    49614       -2     
==========================================
+ Hits        23480    23495      +15     
+ Misses      24690    24677      -13     
+ Partials     1446     1442       -4     
Impacted Files Coverage Δ
enterprise/replay/setup.go 0.00% <0.00%> (ø)
processor/transformer/transformer.go 74.00% <0.00%> (ø)
router/transformer/transformer.go 68.65% <0.00%> (ø)
services/debugger/source/eventUploader.go 92.04% <ø> (ø)
utils/types/reporting_types.go 88.88% <ø> (ø)
warehouse/upload.go 19.37% <0.00%> (ø)
warehouse/warehouse.go 13.57% <0.00%> (ø)
enterprise/reporting/reporting.go 15.80% <15.05%> (+0.14%) ⬆️
services/debugger/uploader.go 92.43% <16.66%> (-4.03%) ⬇️
processor/processor.go 86.33% <33.33%> (+0.41%) ⬆️
... and 13 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@cisse21 cisse21 force-pushed the chore.introduceRegion branch 2 times, most recently from ac858e3 to 00b88fb Compare December 26, 2022 07:58
@cisse21 cisse21 marked this pull request as ready for review December 26, 2022 08:12
}
}

func (handle *HandleT) setup(beConfigHandle backendconfig.BackendConfig) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you are renaming r, won't it be better to rename it to h instead of handle? Since, such a large receiver name is avoided in golang.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Used r to just represent reporting handle... can change it to rh though

q := req.URL.Query()
q.Add("region", uploader.region)
req.URL.RawQuery = q.Encode()
}
Copy link
Contributor

@BonapartePC BonapartePC Dec 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Minor] Can we write test for this?

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.

4 participants