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

feat: add relation options to all tree queries #8080

Merged
merged 5 commits into from Nov 8, 2021
Merged

feat: add relation options to all tree queries #8080

merged 5 commits into from Nov 8, 2021

Conversation

TheProgrammer21
Copy link
Contributor

@TheProgrammer21 TheProgrammer21 commented Aug 13, 2021

Closes: #8076

Description of change

Added the relations option to all treeRepository methods.

Pull-Request Checklist

  • Code is up-to-date with the master branch
  • npm run lint passes with this change
  • npm run test passes with this change
  • This pull request links relevant issues as Fixes #0000
  • There are new or updated unit tests validating the change
  • Documentation has been updated to reflect this change
  • The new commits follow conventions explained in CONTRIBUTING.md

The changes are more or less the same I made in the previous pull request, just that I did it on all other methods too. I created test cases for each method, with and without the option set.

@TheProgrammer21
Copy link
Contributor Author

@imnotjames would be nice if you could merge this PR. As you can see many people are waiting for it.
It is the same functionality you already merged a month ago, but now also made available for the other tree methods.
Best regards :)

Copy link
Contributor

@imnotjames imnotjames left a comment

Choose a reason for hiding this comment

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

Looks good, just one small thing about the location of the tests.

test/github-issues/8076/issue-8076.ts Show resolved Hide resolved
@TheProgrammer21
Copy link
Contributor Author

TheProgrammer21 commented Oct 29, 2021

@pleerock Maybe you could merge this since many developers including me urgently need this. The longer it takes, the more likely merge conflicts will appear.

@pleerock
Copy link
Member

pleerock commented Nov 8, 2021

@TheProgrammer21 thanks for waiting, it took a bit to me to reach your PR. Thank you for contribution!

@pleerock pleerock merged commit e4d4636 into typeorm:master Nov 8, 2021
@TheProgrammer21
Copy link
Contributor Author

@TheProgrammer21 thanks for waiting, it took a bit to me to reach your PR. Thank you for contribution!

Thank you for finally merging and for your work in general!

HeartPattern pushed a commit to HeartPattern/typeorm that referenced this pull request Nov 29, 2021
* feat: add relation options to all tree queries

Closes: typeorm#8076

* fix: corrected array index in test case

* try to fix failing test

* fix: sort the array in order to be able to apply tests
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.

Add relation options to all tree queries (missing ones)
3 participants