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

RNET-1132: Add tests for sync schema migration #3570

Merged
merged 2 commits into from
Apr 13, 2024
Merged

Conversation

nirinchev
Copy link
Member

Description

Fixes #3569

@nirinchev nirinchev requested a review from papafe April 9, 2024 21:39
@cla-bot cla-bot bot added the cla: yes label Apr 9, 2024
@nirinchev nirinchev requested a review from nielsenko April 9, 2024 21:39
@nirinchev nirinchev added the no-changelog Used to skip the changelog check label Apr 9, 2024
Copy link

coveralls-official bot commented Apr 9, 2024

Pull Request Test Coverage Report for Build 8629196354

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.07%) to 81.1%

Totals Coverage Status
Change from base Build 8615265274: 0.07%
Covered Lines: 6793
Relevant Lines: 8233

💛 - Coveralls

@@ -473,9 +475,9 @@ private async Task<BaasApp> CreateFlxApp(string name)
{
state = "enabled",
database_name = GetSyncDatabaseName(name),
queryable_fields_names = new[] { "Int64Property", "GuidProperty", "DoubleProperty", "Int", "Guid", "Id", "PartitionLike" },
queryable_fields_names = new[] { "Int64Property", "GuidProperty", "DoubleProperty", "Int", "Guid", "Id", "PartitionLike", "Differentiator" },
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a biggie, but maybe we should find another name for "differentiator"? We already use it for differentiating the apps, maybe it could create confusion

Copy link
Contributor

Choose a reason for hiding this comment

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

We do the same in dart.

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 feel it's a reasonable name given that it differentiates things based on some criteria. Is it the best name - probably not, but I liked it better than PartitionLike 😄

Tests/Realm.Tests/Sync/SyncMigrationTests.cs Show resolved Hide resolved
@@ -473,9 +475,9 @@ private async Task<BaasApp> CreateFlxApp(string name)
{
state = "enabled",
database_name = GetSyncDatabaseName(name),
queryable_fields_names = new[] { "Int64Property", "GuidProperty", "DoubleProperty", "Int", "Guid", "Id", "PartitionLike" },
queryable_fields_names = new[] { "Int64Property", "GuidProperty", "DoubleProperty", "Int", "Guid", "Id", "PartitionLike", "Differentiator" },
Copy link
Contributor

Choose a reason for hiding this comment

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

We do the same in dart.

@nirinchev nirinchev merged commit c6bb604 into main Apr 13, 2024
67 of 68 checks passed
@nirinchev nirinchev deleted the ni/schema-migration branch April 13, 2024 19:40
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes no-changelog Used to skip the changelog check
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add tests for sync schema migration
3 participants