Skip to content

fix(pinia-orm): pivot are not correctly loaded#438

Merged
CodeDredd merged 9 commits intoCodeDredd:masterfrom
CarstenRuetz:master
Oct 17, 2022
Merged

fix(pinia-orm): pivot are not correctly loaded#438
CodeDredd merged 9 commits intoCodeDredd:masterfrom
CarstenRuetz:master

Conversation

@CarstenRuetz
Copy link
Copy Markdown
Contributor

@CarstenRuetz CarstenRuetz commented Oct 11, 2022

🔗 Linked issue

#423

❓ Type of change

  • [x ] 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

Fixes errors in correct pivot element matching when querying for multiple records of an entity that has an m-n relationship to another entity.
Reason for bug is missing deep copy inside a loop. Used lodash because other methods may not duplicate all types appropriately (Date objects,...).

Documentation update: only added in Readme that normalizr needs to be build before running tests for pinia-orm (otherwise it fails with a pretty obscure error message)

📝 Checklist

  • I have linked an issue or discussion.
  • [] I have updated the documentation accordingly.

@CodeDredd
Copy link
Copy Markdown
Owner

thx for the PR. The dist needs to be removed. About the deepclone function i try to see if the tests works with the vuex-orm deepclone function. there is already one in vuex-orm-next which i removed because it wasnt used

@CodeDredd CodeDredd added the bug Something isn't working label Oct 13, 2022
@CodeDredd CodeDredd self-assigned this Oct 13, 2022
@CodeDredd CodeDredd changed the title fix pivot issue fix(pinia-orm): pivot are not correctly loaded Oct 13, 2022
@CodeDredd CodeDredd self-requested a review October 17, 2022 08:15
@CodeDredd CodeDredd merged commit 589136a into CodeDredd:master Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants