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

Add SyncIndexes schema upgrade mode #181

Merged
merged 6 commits into from
Mar 8, 2024
Merged

Conversation

arbaghdyan
Copy link

Add extension methods on IActionSequnece to check whether it contains expected actions
Add condition in upgrade process for syncing indexes Add tests
Bump version

Add extension methods on IActionSequnece to check whether it contains expected actions
Add condition in upgrade process for syncing indexes
Add tests
Bump version
if (result.HasUnsafeActions ||
!result.UpgradeActions.ContainsOnlyModificationOf<SecondaryIndexInfo>())
throw new SchemaSynchronizationException(result);
goto case SchemaUpgradeMode.Perform;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Lets change this to goto case SchemaUpgradeMode.PerformSafely; and remove if (result.HasUnsafeActions checking

May be to rename this enum constant to .SyncIndexesSafely ?

Copy link
Author

Choose a reason for hiding this comment

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

sure

if (result.HasUnsafeActions ||
!result.UpgradeActions.ContainsOnlyModificationOf<SecondaryIndexInfo>())
throw new SchemaSynchronizationException(result);
goto case SchemaUpgradeMode.Perform;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same notes

Version.props Outdated
@@ -2,7 +2,7 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<PropertyGroup>
<DoVersion>7.2.0.115</DoVersion>
<DoVersion>7.2.0.116</DoVersion>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please don't bump version in Pull Request
Because some other PRs may be merged earlier
I'm bumping it in master-servicetitan branch just before deploying nuget

@SergeiPavlov SergeiPavlov merged commit 1912816 into master-servicetitan Mar 8, 2024
2 checks passed
@SergeiPavlov SergeiPavlov deleted the syncindexes branch March 8, 2024 05:13
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