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

Allow non-embedded links in asymmetric objects #6981

Merged
merged 4 commits into from Sep 15, 2023

Conversation

nielsenko
Copy link
Contributor

@nielsenko nielsenko commented Sep 15, 2023

What, How & Why?

☑️ ToDos

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

Fixes: #6976

@cla-bot cla-bot bot added the cla: yes label Sep 15, 2023
@nielsenko nielsenko force-pushed the kn/asymmetric-object-allow-non-embedded-links branch from c0b36ef to 9d1a1a6 Compare September 15, 2023 17:27
@nielsenko nielsenko marked this pull request as ready for review September 15, 2023 17:31
@@ -410,18 +410,6 @@ TEST_CASE("Schema") {
"Property 'object.link' of type 'object' cannot be a link to an asymmetric object."));
}

SECTION("rejects link properties with asymmetric origin object") {
Copy link
Member

Choose a reason for hiding this comment

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

Rather than removing the test entirely the test should be changed to verify that it's allowed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

FIxed

@nielsenko nielsenko force-pushed the kn/asymmetric-object-allow-non-embedded-links branch from 21b80e1 to 68f38c7 Compare September 15, 2023 17:54
@nielsenko nielsenko force-pushed the kn/asymmetric-object-allow-non-embedded-links branch from 68f38c7 to a3828f4 Compare September 15, 2023 18:26
@coveralls-official
Copy link

Pull Request Test Coverage Report for Build github_pull_request_274293

  • 8 of 8 (100.0%) changed or added relevant lines in 2 files are covered.
  • 486 unchanged lines in 20 files lost coverage.
  • Overall coverage increased (+0.01%) to 91.227%

Files with Coverage Reduction New Missed Lines %
src/realm/alloc_slab.hpp 1 93.38%
test/test_dictionary.cpp 1 99.85%
src/realm/object-store/sync/sync_manager.cpp 2 87.39%
src/realm/table.hpp 2 92.35%
src/realm/object-store/sync/async_open_task.cpp 3 91.06%
src/realm/sync/noinst/client_reset_operation.cpp 4 87.23%
src/realm/bplustree.cpp 7 75.72%
src/realm/sync/network/network.hpp 7 85.41%
src/realm/group.hpp 10 89.44%
src/realm/cluster_tree.cpp 11 90.82%
Totals Coverage Status
Change from base Build 1672: 0.01%
Covered Lines: 233484
Relevant Lines: 255936

💛 - Coveralls

@nielsenko nielsenko merged commit 22fd7a3 into master Sep 15, 2023
31 checks passed
@nielsenko nielsenko deleted the kn/asymmetric-object-allow-non-embedded-links branch September 15, 2023 20:33
tgoyne added a commit that referenced this pull request Sep 27, 2023
The schema validation checks forbidding this were removed in #6981, but Table
also had its own validation.
tgoyne added a commit that referenced this pull request Sep 27, 2023
The schema validation checks forbidding this were removed in #6981, but Table
also had its own validation.
tgoyne added a commit that referenced this pull request Sep 27, 2023
The schema validation checks forbidding this were removed in #6981, but Table
also had its own validation.
tgoyne added a commit that referenced this pull request Sep 27, 2023
The schema validation checks forbidding this were removed in #6981, but Table
also had its own validation.
tgoyne added a commit that referenced this pull request Sep 28, 2023
The schema validation checks forbidding this were removed in #6981, but Table
also had its own validation.
tgoyne added a commit that referenced this pull request Sep 28, 2023
The schema validation checks forbidding this were removed in #6981, but Table
also had its own validation.
tgoyne added a commit that referenced this pull request Sep 29, 2023
The schema validation checks forbidding this were removed in #6981, but Table
also had its own validation.
tgoyne added a commit that referenced this pull request Oct 2, 2023
The schema validation checks forbidding this were removed in #6981, but Table
also had its own validation.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 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.

Allow asymmetric objects to contain links to non-embedded objects
2 participants