-
Notifications
You must be signed in to change notification settings - Fork 23
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
Fix issue with duplicate CDX nodes #1237
Conversation
|
||
#[derive(Clone, Debug, PartialEq, Eq)] | ||
pub enum Outcome<T> { | ||
Existed(T), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: I do not fully understand the decomposition of Existed and Added state .... I mean I guess we could infer on True/False on Added ... so we want to sometimes add over an existed ... a few words explaining the intent of Outcome probably would help.
impl MigrationTrait for Migration { | ||
async fn up(&self, manager: &SchemaManager) -> Result<(), DbErr> { | ||
manager | ||
.create_index( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx for this - I believe we had these before and after the refactoring into source_document .. not sure when/why this happened - glad they are back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apart from minor - LGTM
Also:
Closes: #1236, #303