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
WIP feat(perf): Upgrade typeorm version from v0.3.11 to v0.3.20 #2686
WIP feat(perf): Upgrade typeorm version from v0.3.11 to v0.3.20 #2686
Conversation
The first change that needed to be made was to replace the current state of vendure/core tests is such after the changes. Now I will edit the data types for QueryBuilder. All errors indicate that there were changes in typeorm that broke the backward capability with the current version
|
@michaelbromley Could this PR also include changing the name of Additionally, considering the naming convention, |
…tion}` -> `__{relation}`
@monrostar great progress! Thanks for keeping us updated. @asonnleitner regarding renaming to "dataSource" - I don't see this as a priority at the moment. We could support both, e.g. have |
42764b4 Progress in tests: cross-env PACKAGE=core vitest --config ../../e2e-common/vitest.config.ts --run |
ddaaaf2 Special fixes and refactoring for the test case in e2e for nesting in collections
@michaelbromley Please review this code. Do you agree with my solution? |
…rk around bugs in collections
I would suggest adding property to the system to add a link to relation properties that have Tree decorators, then we can work around this bug until it is fixed. Like I was added |
32e0df7 |
f9f5260 In the method, I started using the original |
In this test, we have a preset of only 2 variants. I don't understand why the test was for 6 calls if we have only 2 calls to the strategy @michaelbromley It was your commit, so I need to make sure I didn't break any logic here that you were adding. |
@monrostar This is interesting. At first I thought the 6 calls was due to the fact that each variant is returning 3 price fields. But thinking about it further, the So yes, 2 calls to the transformer does indeed make more sense. Yet, in the current version (pre your changes to TypeORM), it is indeed called 6 times. I logged the calls inside the transformer: from: (databaseValue: string): number => {
console.log(`transformerFromSpy: ${databaseValue}`);
// ...
} and got:
so it looks like the transformer gets called 3x for each variant. Totally strange. No idea why this would change now, but the change seems to be correct. |
I also want to try this configuration at the driver level to find the remaining problematic queries related to collections |
Closed by 0afc94e Excellent work, thank you very much! |
Description
Please include a summary of the changes and the related issue.
Breaking changes
Does this PR include any breaking changes we should be aware of?
Screenshots
You can add screenshots here if applicable.
Checklist
📌 Always:
👍 Most of the time: