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

feat: Emit migration op event #82

Merged
merged 1 commit into from
May 31, 2024

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. 😬

@@ -1632,6 +1655,431 @@ mod tests {
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
3 checks passed
@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.

2 participants