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

RCORE-2108: Clear backlinks when object containing nested collections is deleted #7680

Merged
merged 3 commits into from
May 8, 2024

Conversation

jedelbo
Copy link
Contributor

@jedelbo jedelbo commented May 7, 2024

What, How & Why?

Fixes #7657

☑️ ToDos

  • 📝 Changelog update
  • 🚦 Tests (or not relevant)
  • C-API, if public C++ API changed
  • bindgen/spec.yml, if public C++ API changed

@cla-bot cla-bot bot added the cla: yes label May 7, 2024
@jedelbo jedelbo requested a review from finnschiermer May 7, 2024 12:52
Copy link
Contributor

@finnschiermer finnschiermer left a comment

Choose a reason for hiding this comment

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

I found the minimal possible request for changes!

CHECK_EQUAL(target_obj1.get_backlink_count(), 1);
CHECK_EQUAL(target_obj3.get_backlink_count(), 0);
o.remove();
tr->commit_and_continue_as_read();

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd like a comment explaining the scenario added here

Copy link

coveralls-official bot commented May 7, 2024

Pull Request Test Coverage Report for Build jorgen.edelbo_250

Details

  • 64 of 82 (78.05%) changed or added relevant lines in 6 files are covered.
  • 59 unchanged lines in 11 files lost coverage.
  • Overall coverage decreased (-0.004%) to 90.766%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/realm/cluster.cpp 26 34 76.47%
src/realm/array_backlink.cpp 4 14 28.57%
Files with Coverage Reduction New Missed Lines %
test/test_index_string.cpp 1 93.48%
src/realm/cluster.cpp 2 75.6%
src/realm/mixed.cpp 2 86.9%
src/realm/sync/client.cpp 3 89.73%
src/realm/sync/network/http.hpp 3 82.27%
src/realm/sync/noinst/protocol_codec.hpp 3 74.03%
src/realm/sync/noinst/server/server_history.cpp 3 63.57%
src/realm/sync/noinst/client_impl_base.cpp 5 82.48%
test/object-store/util/sync/baas_admin_api.cpp 5 86.7%
test/fuzz_group.cpp 6 47.69%
Totals Coverage Status
Change from base Build 2297: -0.004%
Covered Lines: 213185
Relevant Lines: 234874

💛 - Coveralls

@jedelbo jedelbo requested a review from finnschiermer May 7, 2024 15:01
Copy link
Contributor

@finnschiermer finnschiermer left a comment

Choose a reason for hiding this comment

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

Epic

@jedelbo jedelbo merged commit a45922f into master May 8, 2024
35 of 37 checks passed
@jedelbo jedelbo deleted the je/RCORE-2108 branch May 8, 2024 08:02
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exception when running multiple sync tests with mixed collections
2 participants