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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: Relationships don't cascade delete properly with 2 relationships #5677

Closed
2 tasks done
Walrusking16 opened this issue Jun 8, 2023 · 5 comments
Closed
2 tasks done
Assignees
Labels
bug Something isn't working feature / relationships Fixes and upgrades for database relationships product / databases Fixes and upgrades for the Appwrite Database.
Milestone

Comments

@Walrusking16
Copy link

Walrusking16 commented Jun 8, 2023

馃憻 Reproduction steps

Create three collections

  • The first collection has a relationship with collection two using cascade delete and one to many
  • The second collection has a relationship with collection three using cascade delete and one to many
  • Third collection attributes don't matter

Roadmap

  • Categories: Relationship on roadmap
    • Tasks: Relationship on categories

Create some random documents for each of the collections.

Delete a document from the first collection.

馃憤 Expected behavior

Deleting a document from the first collection will cause categories and tasks to be deleted

馃憥 Actual Behavior

Only the roadmap and categories are deleted. Tasks remain undeleted.

馃幉 Appwrite version

Version 1.3.x

馃捇 Operating system

Windows

馃П Your Environment

Node, 1.3.7

馃憖 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

馃彚 Have you read the Code of Conduct?

@Walrusking16 Walrusking16 added the bug Something isn't working label Jun 8, 2023
@Walrusking16 Walrusking16 changed the title 馃悰 Bug Report: Relationships don't cascade properly 馃悰 Bug Report: Relationships don't cascade delete properly with 2 relationships Jun 8, 2023
@joeyouss
Copy link

Hi
Thank you for reporting this. We have started looking into this and we will keep you updated.

@abnegate
Copy link
Contributor

Hi @Walrusking16 this is fixed and will be released in the next version 馃憤

@joeyouss
Copy link

Adding the PR here: utopia-php/database#269

@abnegate
Copy link
Contributor

abnegate commented Sep 8, 2023

Hi @Walrusking16 are you able to confirm if this issue is resolved for you in the latest version 1.4.2?

@abnegate abnegate added the feature / relationships Fixes and upgrades for database relationships label Sep 8, 2023
@abnegate
Copy link
Contributor

Closing as tested fixed in 1.4.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature / relationships Fixes and upgrades for database relationships product / databases Fixes and upgrades for the Appwrite Database.
Projects
None yet
Development

No branches or pull requests

4 participants