Skip to content

Commit 35edaec

Browse files
committed
[FSSDK-12813] Remove ticket references from code comments per cross-sdk guideline
1 parent 0d8c1c4 commit 35edaec

5 files changed

Lines changed: 13 additions & 20 deletions

File tree

‎lib/optimizely/event/event_factory.rb‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,6 @@ def build_attribute_list(user_attributes, project_config)
109109
private
110110

111111
def create_impression_event_visitor(impression_event)
112-
# FSSDK-12813: Normalize campaign_id, variation_id, and entity_id
113-
# uniformly across all decision types (experiment, feature test,
114-
# rollout, holdout). No branching by decision type — every impression
115-
# decision flows through this single normalization path.
116112
normalized_campaign_id = Helpers::EventIdValidator.normalize_campaign_id(
117113
impression_event.experiment_layer_id, impression_event.experiment_id
118114
)

‎lib/optimizely/helpers/event_id_validator.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
module Optimizely
1919
module Helpers
2020
# EventIdValidator normalizes ID fields on outgoing decision events so
21-
# that the wire payload is byte-equivalent across SDKs (FSSDK-12813).
21+
# that the wire payload is byte-equivalent across SDKs.
2222
#
2323
# Two contracts apply:
2424
# * campaign_id and entity_id (impression events): valid iff non-empty

‎spec/event/event_factory_spec.rb‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -743,13 +743,13 @@
743743
end
744744

745745
# ----------------------------------------------------------------------
746-
# FSSDK-12813: Decision-event ID normalization tests.
746+
# Decision-event ID normalization tests.
747747
#
748748
# These integration tests exercise the EventFactory wire payload to verify
749749
# that campaign_id, variation_id, and entity_id are normalized uniformly
750750
# across every decision type (experiment, feature test, rollout, holdout).
751751
# ----------------------------------------------------------------------
752-
describe 'FSSDK-12813 decision event ID normalization' do
752+
describe 'decision event ID normalization' do
753753
let(:event_context) do
754754
Optimizely::EventContext.new(
755755
region: 'US',
@@ -830,7 +830,7 @@ def first_event(log_event)
830830
expect(first_event(log_event)[:entity_id]).to eq('222222')
831831
end
832832

833-
it 'passes whitespace campaign_id through unchanged (FSSDK-12813 relaxed contract: non-empty string)' do
833+
it 'passes whitespace campaign_id through unchanged (relaxed contract: non-empty string)' do
834834
# Per relaxed spec, any non-empty string is valid for campaign_id —
835835
# only empty string / nil / missing trigger the experiment_id fallback.
836836
impression = build_impression(
@@ -841,7 +841,7 @@ def first_event(log_event)
841841
expect(first_event(log_event)[:entity_id]).to eq(' ')
842842
end
843843

844-
it 'passes non-numeric opaque campaign_id through unchanged (FSSDK-12813 relaxed contract)' do
844+
it 'passes non-numeric opaque campaign_id through unchanged (relaxed contract)' do
845845
# Per relaxed spec, opaque IDs such as "default-12345" or "layer_abc"
846846
# are valid for campaign_id and entity_id; only empty/null trigger the
847847
# experiment_id fallback.
@@ -853,7 +853,7 @@ def first_event(log_event)
853853
expect(first_event(log_event)[:entity_id]).to eq('campaign_a')
854854
end
855855

856-
it 'passes prefixed opaque campaign_id (default-12345) through unchanged (FSSDK-12813)' do
856+
it 'passes prefixed opaque campaign_id (default-12345) through unchanged' do
857857
impression = build_impression(
858858
experiment_layer_id: 'default-12345', experiment_id: '222222', variation_id: '333333'
859859
)

‎spec/helpers/event_id_validator_spec.rb‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
expect(described_class.normalize_campaign_id('111122', '999888')).to eq('111122')
125125
end
126126

127-
it 'returns the campaign_id unchanged when it is a non-empty opaque string (FSSDK-12813 relaxed contract)' do
127+
it 'returns the campaign_id unchanged when it is a non-empty opaque string (relaxed contract)' do
128128
# FR-001: any non-empty string is valid for campaign_id; opaque IDs
129129
# like "default-12345" or "layer_abc" pass through unchanged.
130130
expect(described_class.normalize_campaign_id('default-12345', '999888')).to eq('default-12345')
@@ -133,9 +133,9 @@
133133
end
134134

135135
it 'returns the campaign_id unchanged when it is a whitespace-only string (non-empty per spec)' do
136-
# FSSDK-12813: whitespace is non-empty, so it passes through. The
137-
# upstream datafile producer is responsible for content quality;
138-
# SDK only enforces non-emptiness.
136+
# Whitespace is non-empty, so it passes through. The upstream datafile
137+
# producer is responsible for content quality; SDK only enforces
138+
# non-emptiness.
139139
expect(described_class.normalize_campaign_id(' ', '999888')).to eq(' ')
140140
end
141141

@@ -147,7 +147,7 @@
147147
expect(described_class.normalize_campaign_id('', '999888')).to eq('999888')
148148
end
149149

150-
it 'returns experiment_id (opaque string) when campaign_id is empty (FSSDK-12813 relaxed contract)' do
150+
it 'returns experiment_id (opaque string) when campaign_id is empty (relaxed contract)' do
151151
# FR-002 fallback also accepts opaque experiment_id values.
152152
expect(described_class.normalize_campaign_id('', 'exp_42')).to eq('exp_42')
153153
end
@@ -190,8 +190,8 @@
190190
end
191191

192192
it 'returns nil when variation_id is a non-numeric placeholder string' do
193-
# FSSDK-12813: variation_id stays strict (FR-003/FR-004) — opaque
194-
# placeholders like "variation_a" normalize to nil unlike campaign_id.
193+
# variation_id stays strict (FR-003/FR-004) — opaque placeholders like
194+
# "variation_a" normalize to nil unlike campaign_id.
195195
expect(described_class.normalize_variation_id('variation_a')).to be_nil
196196
end
197197

‎spec/project_spec.rb‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4052,9 +4052,6 @@ def callback(_args); end
40524052
decisions: [{
40534053
campaign_id: '',
40544054
experiment_id: '',
4055-
# FSSDK-12813: empty/whitespace/non-numeric variation_id
4056-
# normalizes to nil per spec (variation_id retains the
4057-
# strict numeric-string-only contract).
40584055
variation_id: nil,
40594056
metadata: {
40604057
flag_key: 'multi_variate_feature',

0 commit comments

Comments
 (0)