Skip to content

Conversation

@keelerm84
Copy link
Member

No description provided.

@keelerm84 keelerm84 requested a review from a team May 30, 2024 20:46
let evaluation = MigrationOpEvaluation {
key: self.key.clone(),
value: self.evaluation.value,
// QUESTION: In the ruby implementation, this can be nil. Why not here?
Copy link
Member Author

Choose a reason for hiding this comment

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

I will answer this question and the following todo in subsequent commits.

pub reason: Reason,

#[serde(rename = "variation", skip_serializing_if = "Option::is_none")]
pub variation_index: Option<VariationIndex>,
Copy link
Member Author

Choose a reason for hiding this comment

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

Too bad Detail encodes as variationIndex instead of variation. Otherwise, we could rely on Detail's serialization directly. 😬

assert_eq!(evaluated_stage, stage);
}

#[test_case(Stage::Off, Operation::Read, vec![Origin::Old])]
Copy link
Member

Choose a reason for hiding this comment

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

It would be nice if we could move more tests to being "integration" tests so we could get them out of this file. Not something for this PR, but just a general sentiment of I wish less stuff was in this file.

Copy link
Member Author

Choose a reason for hiding this comment

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

I completely agree. I think the biggest blocker there is we need to build the test data source. Once that is there, testing using only externally visible interfaces is much easier.

@kinyoklion kinyoklion self-requested a review May 30, 2024 21:23
@kinyoklion
Copy link
Member

Did a dependency float this to broken?

@keelerm84
Copy link
Member Author

Did a dependency float this to broken?

Sure did. Fix is here.

@keelerm84 keelerm84 force-pushed the mk/sc-243770/emit-tracker-event branch from ac10311 to d4c6bcb Compare May 31, 2024 15:33
@keelerm84 keelerm84 merged commit 18971a3 into feat/migrations May 31, 2024
@keelerm84 keelerm84 deleted the mk/sc-243770/emit-tracker-event branch May 31, 2024 22:42
keelerm84 added a commit that referenced this pull request Jul 11, 2024
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