-
Notifications
You must be signed in to change notification settings - Fork 21
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
feat: Do not return null
as analyticsUrl for CI=true
#76
Conversation
Codecov Report
@@ Coverage Diff @@
## master #76 +/- ##
==========================================
+ Coverage 90.14% 91.42% +1.28%
==========================================
Files 9 9
Lines 213 210 -3
==========================================
Hits 192 192
+ Misses 21 18 -3
Continue to review full report at Codecov.
|
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.
Thanks @pgrzesik
If we want to publish it as breaking change (which triggers new major release), we need to indicate this as breaking change in commit message.
Totally 👍 I've also started wondering a bit more about this specific check in wider context and what impact it could have e.g. on |
I'm not sure if it's a big concern. I think main reason for making this a breaking change, is that thanks to that we will not mix untracked and tracked CI events in scope of same version of a Framework, and that will allow us to keep data reliable in metrics service Dynamodb |
That's correct @medikoo - what I was worried about is that now additonally, for all new versions, notifications can be also triggered for |
87b3e3a
to
eaac873
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.
👍
I would just reword the commit. At least No longer return null
feels very internal, and implementation specific.
I think it should be more something as: Expose analytics server URL unconditionally (and not just in non-CI environments)..
This message is expected to land as is in changelog, and unless justified I would not describe changes using JS language specific terms. Ideally if implementation details are black boxed
BREAKING CHANGE: Expose analytics server URL unconditionally (and not just in non-CI environments) It is breaking as it might impact how analytics reporting works in older version of the Framework and might pollute data with unexpected events coming from CI deployments. Additonally, it will cause notifications to be triggered in CI environments as well.
eaac873
to
b5318af
Compare
Good suggestion, I've reworded the commit a little bit 👍 |
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.
Looks great 👍
We would like to record events from
CI
as well as we plan to introduce CI detection and enrich analytics events with that informationNote: The plan is to release it as a major version to avoid changing behavior for older versions which won't include information about
CI