Skip to content

Conversation

@gagantrivedi
Copy link
Member

No description provided.

pub fn is_higher_segment_priority(&self, other: &FeatureState) -> bool {
match &other.feature_segment {
None if self.feature_segment.is_some() => true,
Some(segment) if self.feature_segment.is_some() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe let's be explicit that this is a feature_segment, not a segment? Some(feature_segment)

}

#[test]
fn feature_state_is_higher_segment_priority_when_both_fs_don_not_have_feature_segment() {
Copy link
Contributor

Choose a reason for hiding this comment

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

This has turned into a test for all cases, right? So this name no longer makes sense.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, yes, good point. I updated it

@gagantrivedi gagantrivedi changed the base branch from main to release/0.1.1 May 27, 2022 09:56
@gagantrivedi gagantrivedi merged commit 8ab1e3e into release/0.1.1 May 27, 2022
gagantrivedi added a commit that referenced this pull request May 27, 2022
* bump engine-test-data

* fix: feature segment priority
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.

3 participants