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

fix(logs): Fixing log messages for Targeted Rollouts #515

Merged
merged 11 commits into from
Jul 24, 2020

Conversation

fayyazarshad
Copy link
Contributor

@fayyazarshad fayyazarshad commented Jun 30, 2020

Summary

With this change we are introducing targeted rollout specific log messages.

Test plan

All Unit and FSC Tests are getting passed

@fayyazarshad fayyazarshad self-assigned this Jun 30, 2020
@fayyazarshad fayyazarshad marked this pull request as ready for review June 30, 2020 14:19
@fayyazarshad fayyazarshad requested a review from a team as a code owner June 30, 2020 14:19
@coveralls
Copy link

coveralls commented Jun 30, 2020

Coverage Status

Coverage decreased (-0.005%) to 96.704% when pulling 58a7f94 on fayyaz/update_logs_for_tr into f5b47aa on master.

@msohailhussain msohailhussain changed the title fix(logs): Fixing log messages for Targeted Rollouts fix(logs): Fixing log messages for Targeted Rollouts - DO NOT REVIEW Jun 30, 2020
oakbani
oakbani previously requested changes Jul 1, 2020
Copy link
Contributor

@oakbani oakbani left a comment

Choose a reason for hiding this comment

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

  • Please remove additional logs from getVariationForFeature. See Python PR for reference. getVariation is internally called which already logs when if variation exists or doesn't.
  • Do we have any unit tests for rollout rule evaluation logs? We should add some so that we assert that we are logging as expected.

packages/optimizely-sdk/lib/core/decision_service/index.js Outdated Show resolved Hide resolved
@fayyazarshad
Copy link
Contributor Author

Resolved feedback from Owais, @zashraf1985 can you please have a look?

@fayyazarshad fayyazarshad force-pushed the fayyaz/update_logs_for_tr branch from 63dd5a6 to 0ca7e42 Compare July 2, 2020 20:30
@fayyazarshad
Copy link
Contributor Author

get_feature_variable_json tests of FSC are failing, due to its name is changed in #516 which is not merged yet but testapp PR is merged with the updated name

@fayyazarshad fayyazarshad changed the title fix(logs): Fixing log messages for Targeted Rollouts - DO NOT REVIEW feat(logs): Fixing log messages for Targeted Rollouts - DO NOT REVIEW Jul 9, 2020
@fayyazarshad fayyazarshad changed the title feat(logs): Fixing log messages for Targeted Rollouts - DO NOT REVIEW fix(logs): Fixing log messages for Targeted Rollouts - DO NOT REVIEW Jul 9, 2020
@fayyazarshad fayyazarshad self-assigned this Jul 9, 2020
@fayyazarshad fayyazarshad force-pushed the fayyaz/update_logs_for_tr branch from 940f462 to b00249b Compare July 9, 2020 06:35
@fayyazarshad fayyazarshad changed the title fix(logs): Fixing log messages for Targeted Rollouts - DO NOT REVIEW fix(logs): Fixing log messages for Targeted Rollouts Jul 9, 2020
@fayyazarshad fayyazarshad marked this pull request as ready for review July 9, 2020 06:36
@fayyazarshad fayyazarshad removed their assignment Jul 9, 2020
@fayyazarshad fayyazarshad force-pushed the fayyaz/update_logs_for_tr branch from cf7d09a to 720f2bf Compare July 22, 2020 08:30
@fayyazarshad fayyazarshad removed their assignment Jul 24, 2020
@aliabbasrizvi
Copy link
Contributor

@oakbani dismissing your review to be able to merge.

@aliabbasrizvi aliabbasrizvi dismissed oakbani’s stale review July 24, 2020 18:53

Dismissing since the feedback was addressed.

@aliabbasrizvi aliabbasrizvi merged commit ebc3c64 into master Jul 24, 2020
@aliabbasrizvi aliabbasrizvi deleted the fayyaz/update_logs_for_tr branch July 24, 2020 18:53
mjc1283 added a commit that referenced this pull request Aug 10, 2020
…nto a traffic allocation range with empty string entityId (#549)

Summary:

Fix an issue introduced in #515. When bucket returns empty string, we shouldn't log a warning about invalid variation ID. Empty string is a valid value for the entityId property of traffic allocation range objects. There is no invalid variation ID in this situation.

Test plan:

Manually tested with A/B tests and rollouts. Added new unit test.

Issues:

OASIS-6890
mjc1283 added a commit that referenced this pull request Aug 10, 2020
…nto a traffic allocation range with empty string entityId (#549)

Summary:

Fix an issue introduced in #515. When bucket returns empty string, we shouldn't log a warning about invalid variation ID. Empty string is a valid value for the entityId property of traffic allocation range objects. There is no invalid variation ID in this situation.

Test plan:

Manually tested with A/B tests and rollouts. Added new unit test.

Issues:

OASIS-6890
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.

7 participants