-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
chore: Merge master
into next
#6583
Conversation
Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4. - [Release notes](https://github.com/acornjs/acorn/releases) - [Commits](acornjs/acorn@5.7.3...5.7.4) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Fix instruction on how to compile in watch mode. `--` is needed to pass arguments to npm scripts
* Add assertion test for issue typeorm#5762 * Fix handling of URL as a field value type Fixes typeorm#5762 * Fix missing semicolon
there was no `sql` tag in the example, and `query` made the most sense.
…upport user specified values (typeorm#5867) * Fixes typeorm#3271 - create-column, update-column, version-column column kinds now support user specified values * removed .only * create/update/version kind columns now considered as "changed" columns * removed .only
word `returns` used twice
The code examples assume many results (see a comment below in each example), but queries were filtered by user.id. Instead groupBy clausule should be used in order to select user.id after using aggregation function.
Currently the disconnect() function does not perform a call to databaseConnection close, it only sets the queryRunner and databaseConnection to undefined, this behavior may cause problems when you do something like this: 1 - await getConnection().close(); 2 - Replace the database file 3 - Try to open connection createConnection(); and do some insert more info: expo/expo#8109
Just did not work with actual version of ts-node and others modules
I think that's a typo
* Fixed bug with unescaped comment string in MySQL driver. * Added tests. * Fixed linting issue.
Mostly copied text from the decorator reference: https://github.com/typeorm/typeorm/blob/master/docs/decorator-reference.md#deletedatecolumn
Some of listed variables are not used anymore, some were are missing. List is extracted from src/connection/options-reader/ConnectionOptionsEnvReader.ts
Trying to match line 54
* [Add] FOR NO KEY UPDATE lock mode for postgresql * [Add] for no key update lock test * [Fix] lint * [Fix] test Co-authored-by: JeyongOh <jeyong.oh@gogo-ssing.com>
Add 'name' option to @ViewColumn to align with @column and allow a different property name for a column in a view. Closes typeorm#5708
Change "lets" to "let's" in the sentence "since we have errors lets [sic] rollback changes we made".
…correctly (typeorm#5947) * [UPDATE] Update insert and update query builder to handle mssql geometry column with SRID properly * [FIX] Fix indentation with spaces * [FIX] Fix semicolon, and quota characters * [FIX] Fix semicolon Co-authored-by: Paul Kwok <wkkwok@uacs.hk>
The "entitySchemas" connection option doesn't work. Instead, schemas are recognized when added to the "entities" connection option. The docs were updated to reflect that.
* Added support for NOWAIT & SKIP LOCKED in Postgres * fix merge typo Co-authored-by: Umed Khudoiberdiev <pleerock.me@gmail.com>
…m#5878) This method returns an object with `_id` and `index` properties, according to [the description of `BulkWriteResult`](https://docs.mongodb.com/manual/reference/method/BulkWriteResult/#BulkWriteResult.upserted).
* Data API Postgres WIP * Refactored the code to be more supportable
* Implement soft remove and recover for entity. * Add test for entity soft remove and recover. * Fix entity soft remove and recover test.
* Update many-to-many-relations.md * Update many-to-many-relations.md Co-authored-by: Umed Khudoiberdiev <pleerock.me@gmail.com>
…peorm#6215) This feature for postgres connections means when you pass the logNotifications option, db notices and notifications will be passed to the logger with info log level Closes: typeorm#2216
…eorm#6743) currently we pull in BetterSqlite3Driver, SqliteDriver, and a few other drivers & files that aren't possible to use in a browser context. this change adds some more browser compatibility features so webpack builds targeted at browsers will be able to complete closes typeorm#6739
…m#6745) * fix: count() method for multiple primary keys for cockroachdb Cockroachdb does not support concat() for different types at the moment. To fix this problem, each primary key is cast to the text type. * fix: add doublequote * fix: add doublequote * test: update and move tests for count() method for multiple primary keys * fix: count() method for multiple primary keys for oracle Oracle does not support CONCAT() for more than 2 arguments at the moment. To solve this problem, operator || is used instead of CONCAT().
…eorm#6747) create a type to track ReplicationMode instead of writing out `"master"|"slave"` everywhere. update to drop the default from the QueryRunner constructor as they will always receive the mode from the driver when it's part of the QueryRunner also drop the default from Driver.createQueryRunner in the implementations - the interface mandates the mode to be defined so it will never be omitted anyway also drop the explict "master" from any connection.createQueryRunner calls so we leave it either the default or `slave` when needed all of this makes it easier to eventually migrate to other naming convetions for the replication mode should it be deemed the right path to go down
* stop using PromiseUtils.create & extractValue as they're doing nothing because we never use PromiseUtils.create, PromiseUtils.extract was technically never used either - the only case we were using this was in a test where we can replace it with Promise.resolve * stop using PromiseUtils.settle in test 1014 there was no reason to use this call in the test as it was not using the results and only used the `Promise.all` functionality * use Promise.all instead of PromiseUtils.runInSequence in tests in these cases of PromiseUtils.runInSequence in tests there was no need for us to be running them in sequence - so instead we could use Promise.all & Array.map for a replacement. removes the dependency on PromiseUtils & also speeds up our tests * run tests sequentially for those that deal with ActiveRecord because the activerecord mechanism creates a "global" scope through the class that ActiveRecord is applied to we have to run through the connections sequentially or end up with them being all over the place as far as what activerecord model is connected to what connection * use standard async/await + for/of instead of runInSequence in cases where actual order of the runs matter we can do for/of and then await any of the results - because none of the usages of runInSequence that rely on the correct order actually use the results * use Promise.all on runInSequence cases where order doesn't matter * drop PromiseUtils altogether * sequentially run when dealing with QueryRunner queryrunner is not 'thread-safe' or async safe * drop the test to lookup by Promise before, the test wasn't validating that you could lookup by promise the test was verifying that if you used something that wasn't a promise but instead had a magic __value__ variable you'd get a lookup that's not a promise, unfortunately I can't find that a promise may be passed into the find options anywhere in the documentation so I've removed this test
* fix: resolve issues ora-00972:identifier is too long Closes: typeorm#5067 * fix: ensure that this changes applies just for Oracle Driver Closes: typeorm#5067 * fix test - remove `.only` & set the `enabledDrivers` to oracle * simplify test case Co-authored-by: Murat Gundes <guendes.murat@indivumed.com>
Merged master a second time - mostly to get the oracle fixes in so those tests pass. Once all the tests pass I'll iterate through the changes I made to ensure the tests pass between |
Looks like something in the Master:
That's causing the oracle failures.. I'm thinking of just disabling this test but.. |
I attempted to skip that test but it seems like it just breaks in a test that also runs through that behavior. The area that's causing this behavior is: typeorm/src/query-builder/RelationIdLoader.ts Lines 291 to 298 in 1e1595e
I tried to use Path forward right now is to dig into that further, some minor refactoring of the |
We could just merge it as is - eg, with the failing oracle test. I'm pretty sure the failing oracle tests are due to the @pleerock thoughts? PS I updated the body of the PR to include the extra commits I created for it and why |
Thank you @imnotjames . Let's merge, I'll release a new |
according to CI, |
Also if you'd like tos we the queries that are causing this they're in a comment above. |
oh, okay.. so, for your question on on question Maybe placing a following code (taken from FindOptionsUtils`): let relationAlias: string = alias + "__" + relation;
// shorten it if needed by the driver
if (qb.connection.driver.maxAliasLength && relationAlias.length > qb.connection.driver.maxAliasLength) {
relationAlias = shorten(relationAlias);
} in the code you provided can fix the issue. |
Right - I had made that change, more or less, and found that while we didn't get the issue with oracle, elsewhere we had a failure with the alias being expected as what it previously was. The amount of change needed to correct the issue started to feel a bit out of the scope for this PR - as the test was failing silently before, and it seems like this code should have been an issue before as well. |
Okay, let's merge it. Thank you a lot |
Will there be a new rc release? Can't wait for it! |
released in |
Was this mistakenly merged as a squash? imnotjames@b2eeba6 correctly maintains commit history from both branches but 903765d does not. next...imnotjames:next shows the missing commits. This is a problem for merging between the two branches now, as next...master shows commits since April 13th, while imnotjames/typeorm@next...typeorm:master shows only from after September 26th. |
@nebkat I'm not sure... what is a proper resolution? revert changes and merge once again? |
If you're willing to accept a broken history on the next branch the best resolution would be to hard reset before the squash happened and then do the merge. I don't think there are many pull requests for next so doubt a lot of people would be affected (most importantly master will remain good). With revert it won't break history for those who have a local copy of the next branch, but when looking through git blame/history for a file it will be annoying in future. I can do either option on my fork if you want? |
This reverts commit 903765d.
I thought you had done some additional changes on top of @imnotjames' commit but I see it is identical just squashed. If you are OK with the hard reset/broken history route I have pushed it here nebkat@28688b8. |
This merges
master
into thenext
branch with a handful of extra commits to fix tests and other issues.Changes I had to make to get the tests to pass: