8000 (fix) change log level to warn when experiment not in datafile by compass-vin · Pull Request #361 · optimizely/java-sdk · GitHub
[go: up one dir, main page]

Skip to content

(fix) change log level to warn when experiment not in datafile #361

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

Merged
merged 3 commits into from
Mar 30, 2020

Conversation

compass-vin
Copy link
Contributor
@compass-vin compass-vin commented Feb 26, 2020

Summary

Test plan

  • Pass in experiment name and event name that does not exist, make sure error is logged at WARN severity level

Issues

@coveralls
Copy link
coveralls commented Feb 27, 2020

Pull Request Test Coverage Report for Build 1363

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 89.354%

Totals Coverage Status
Change from base Build 1362: 0.0%
Covered Lines: 3777
Relevant Lines: 4227

💛 - Coveralls

circAssimilate pushed a commit to optimizely/javascript-sdk that referenced this pull request Mar 3, 2020
… event

In a similar vein as optimizely/java-sdk#361,
the JavaScript SDK would be less noisy when being used with integrations
like Segment if we only logged a warning when an event key is not found
in the datafile. This PR will make that change and unblock event
tracking.
circAssimilate pushed a commit to optimizely/javascript-sdk that referenced this pull request Mar 3, 2020
… event

In a similar vein as optimizely/java-sdk#361,
the JavaScript SDK would be less noisy when being used with integrations
like Segment if we only logged a warning when an event key is not found
in the datafile. This PR will make that change and unblock event
tracking.
circAssimilate pushed a commit to optimizely/javascript-sdk that referenced this pull request Mar 3, 2020
… event

In a similar vein as optimizely/java-sdk#361,
the JavaScript SDK would be less noisy when being used with integrations
like Segment if we only logged a warning when an event key is not found
in the datafile. This PR will make that change and unblock event
tracking.
circAssimilate pushed a commit to optimizely/javascript-sdk that referenced this pull request Mar 4, 2020
… event (#418)

## Summary
- Log a warning when an event key is not found in the datafile instead of throwing an Error
- Log a warning mentioning that user tracking is not happening
- Update actual error logger in catch to be an ERROR instead of INFO
- Updated CONTRIBUTING.md instructions with CHANGELOG.md update instructions

In a similar vein as optimizely/java-sdk#361, the JavaScript SDK noise could be more configurable for use with integrations like Segment.

_Note:_ Please pardon the prettier noise. I tried to do a prep PR in #419 but there are still changes when I save. The actual functionality changes are in 646665d.

## Test plan
- Updated unit test to cover new functionality
- Ensure other tests pass

## Issues
- [OASIS-6054](https://optimizely.atlassian.net/browse/OASIS-6054)
@mikeproeng37 mikeproeng37 mentioned this pull request Mar 30, 2020
@mikeproeng37
8000 Copy link
Contributor

Thanks for your contribution! Can you all please sign the CLA in the CONTRIBUTING.MD doc if you haven't yet? Meanwhile I will get this reviewed.

@mikeproeng37
Copy link
Contributor

Thanks for your contribution! Can you all please sign the CLA in the CONTRIBUTING.MD doc if you haven't yet? Meanwhile I will get this reviewed.

I forgot to tag you guys, but @compass-vin @alanhu1996 since you both have commits in this PR, can you guys sign our CLA and I can get this merged and released asap

@mikeproeng37 mikeproeng37 merged commit 97ad2eb into optimizely:master Mar 30, 2020
@compass-vin compass-vin deleted the change-logging-error branch April 3, 2020 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Design decision behind error log for Event and Experiment not in datafile
6 participants
0