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

Handle sync config in Realm.deleteFile #2045

Merged
merged 4 commits into from
Oct 4, 2018
Merged

Conversation

nirinchev
Copy link
Member

@nirinchev nirinchev commented Oct 3, 2018

What, How & Why?

This allows us to delete Realm files by passing in a sync config.

☑️ ToDos

  • 📝 Changelog entry
  • 📝 Compatibility label is updated or copied from previous entry
  • 🚦 Tests
  • 📝 Public documentation PR created or is not necessary
  • 💥 Breaking label has been applied or is not necessary

realm::Realm::Config config;

static const String path_string = "path";
ValueType path_value = Object::get_property(ctx, object, path_string);
ValueType path_value = Object::get_property(ctx, config_object, path_string);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can it be moved after line 771 and before 772?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ugh 😑 It can, but will look ugly

@nirinchev nirinchev requested a review from bmunkholm October 3, 2018 13:27
@nirinchev nirinchev force-pushed the ni/delete-file-sync-config branch from 3924e27 to 3d84731 Compare October 4, 2018 08:13
@nirinchev
Copy link
Member Author

The test failure seems unrelated to these changes, so I'll go ahead and merge this PR.

@nirinchev nirinchev merged commit e5c9016 into master Oct 4, 2018
@nirinchev nirinchev deleted the ni/delete-file-sync-config branch October 4, 2018 09:04
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants