• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

optimizely / javascript-sdk / 1177 / 4
78%
master: 78%

Build:
DEFAULT BRANCH: master
Ran 17 Dec 2019 05:44PM UTC
Files 59
Run time 8s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Dec 2019 05:34PM UTC coverage: 97.511% (+0.005%) from 97.506%
1177.4

push

travis-ci

web-flow
fix: Correct decision notification payload type for getVariation feature test decision (#375)

Summary:

In createProjectConfig, we attempt to create an object experimentFeatureMap whose keys are experiment IDs, and whose values are arrays of feature IDs. We loop over each experiment ID in each feature flag's experimentIds, and update experimentFeatureMap accordingly. The problem occurs when one of these experiments is in a group (had a groupId property). The inner loop breaks out by returning false (this early iteration exit by returning false is a feature of lodash forEach). Then, any remaining experiment IDs are wrongfully excluded from experimentFeatureMap. For any of these skipped feature experiment IDs, the isFeatureExperiment function will wrongly return false, leading to an incorrect decision notification payload. With this change, the loop always runs over all experiment IDs of each feature. The previous behavior of only assigning feature.groupId once is maintained.

Test plan:
New unit tests for isFeatureExperiment function of project config module

Issues:
https://optimizely.atlassian.net/browse/OASIS-5759

624 of 685 branches covered (91.09%)

Branch coverage included in aggregate %.

6624 of 6748 relevant lines covered (98.16%)

21.24 hits per line

Source Files on job 1177.4
  • Tree
  • List 0
  • Changed 4
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 884
  • Travis Job 1177.4
  • 8b2177b2 on github
  • Prev Job for on master (#1161.3)
  • Next Job for on master (#1179.3)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc