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

Fix 5871 relationships with non existing documents #298

Merged
merged 7 commits into from
Aug 9, 2023

Conversation

fanatic75
Copy link
Contributor

@fanatic75 fanatic75 commented Jul 27, 2023

This PR fixes bug in multiple relationships

Previously we were getting 500 for one to one two way as the non existing doc needs to be updated in One to One two-way relationship type and non existing doc does not have key.
Now we are keeping it consistent with other relationship types and skipping non existing doc

src/Database/Database.php Outdated Show resolved Hide resolved
src/Database/Database.php Outdated Show resolved Hide resolved
Copy link
Contributor

@stnguyen90 stnguyen90 left a comment

Choose a reason for hiding this comment

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

Copy link
Contributor

@stnguyen90 stnguyen90 left a comment

Choose a reason for hiding this comment

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

Previously we were getting 500 as the non existing doc needs to be updated in two-way relationship type and non existing doc does not have key. Now we are keeping it consistent with other relationship types and skipping non existing doc
src/Database/Database.php Outdated Show resolved Hide resolved
src/Database/Database.php Outdated Show resolved Hide resolved
src/Database/Database.php Outdated Show resolved Hide resolved
tests/Database/Base.php Outdated Show resolved Hide resolved
tests/Database/Base.php Outdated Show resolved Hide resolved
tests/Database/Base.php Outdated Show resolved Hide resolved
tests/Database/Base.php Outdated Show resolved Hide resolved
tests/Database/Base.php Outdated Show resolved Hide resolved
tests/Database/Base.php Outdated Show resolved Hide resolved
tests/Database/Base.php Outdated Show resolved Hide resolved
@fanatic75 fanatic75 requested a review from abnegate August 8, 2023 15:54
@abnegate abnegate merged commit fb7435a into main Aug 9, 2023
3 checks passed
@abnegate abnegate deleted the fix-5871-relationships-with-non-existing-documents branch November 23, 2023 01:52
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.

🐛 Bug Report: Many-to-Many Relationship Updated with Non Existing Documents
3 participants