Repository navigation
feat(tree-entity): support configuring closure table schema - #10743
andimattes wants to merge 6 commits into
Conversation
Adds the option 'closureTableSchema' to define the schema of the closure table. closes: typeorm#10263
gioboa
left a comment
There was a problem hiding this comment.
Thanks @andimattes for your help.
I added this PR to our release board
gioboa
left a comment
There was a problem hiding this comment.
@andimattes Can I ask you to solve the conflicts please?
PR Code Suggestions ✨Latest suggestions up to e7fcd9b
Previous suggestionsSuggestions up to commit bf125a8
Suggestions up to commit 13cb8f4
Suggestions up to commit a9632d5
|
|||||||||||||||||||||||||||||||||||||||||
Code Review by Qodo (Alpha)(Review updated until commit bf125a8)
Great, No Issues Found!Qodo reviewed your code and found no material issues that require reviewPrevious review resultsResults up to commit 13cb8f4
Great, No Issues Found!Qodo reviewed your code and found no material issues that require reviewResults up to commit a9632d5
1. Missing return in async test
|
commit: |
|
@andimattes thanks for this contribution! Could you please Also, I'm wondering whether the schema should not be inherited from the entity. Basically, I'm thinking the priority should be |
gioboa
left a comment
There was a problem hiding this comment.
Could you please rename the test file to end with .test.ts and fix the lint error?
I did it, let's see if tests are passing 🤞
|
Persistent review updated to latest commit 13cb8f4 |
There was a problem hiding this comment.
Thanks @andimattes for your help.
Also, I'm wondering whether the schema should not be inherited from the entity. Basically, I'm thinking the priority should be treeOptions.closureTableSchema (if we want to keep it), entityOptions.schema, dataSourceOptions.schema.
Can you address or answer at this feedback from @alumni please?
|
Persistent review updated to latest commit bf125a8 |
Code Review by Qodo
|
# Conflicts: # src/metadata-builder/ClosureJunctionEntityMetadataBuilder.ts # test/github-issues/10263/issue-10263.test.ts
|
|
Persistent review updated to latest commit f3edd9a |
… the Tree decorator as typeorm#10743 Test locally with multiple database drivers which support the "schema" options Update tests to remove driver-specific assumptions on closure table metadata's tablePath Add functional test case for different schema options provided to the parent Entity and the Tree decorator
… the Tree decorator as typeorm#10743 Test locally with multiple database drivers which support the "schema" options Update tests to remove driver-specific assumptions on closure table metadata's tablePath Add functional test case for different schema options provided to the parent Entity and the Tree decorator
… the Tree decorator as typeorm#10743 Test locally with multiple database drivers which support the "schema" options Update tests to remove driver-specific assumptions on closure table metadata's tablePath Add functional test case for different schema options provided to the parent Entity and the Tree decorator
|
@andimattes Thanks for the contribution - I will close the PR since it was stale and the idea was picked up and improved in #12590 |



Description of change
Adds
closureTableSchematoClosureTreeOptionsto define the schema of the closure table.Added tests & documentation
Based on #10716
Closes: #10263
Pull-Request Checklist
masterbranchnpm run formatto apply prettier formattingnpm run testpasses with this changeFixes #0000