mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
0ca70e9d43
Summary: Removing `createNewConnection` method that was used in tests to create a "scoped" version of `HomeDbManager`. Currently this won't work as there are many methods (like `Users.findOne`) that are using the default (global) connection. Additionally `HomeDBManger` had couple of bugs that were causing locks, which manifested themselves in postgresql tests (that are not serializing transactions). Repository methods like `Users.findOne` or `user.save()`, even when wrapped in transaction were using a separate connection from the pool (and a separate transaction). Some tests in `UsersManager` are still skipped or refactored, as sinon's `fakeTimers` doesn't work well with postgresql driver (which is using `setTimout` a lot). Date mappings in `User` entity were fixed, they were using `SQLite` configuration only, which caused problems with postgresql database. Test Plan: Refactored. Reviewers: paulfitz Reviewed By: paulfitz Subscribers: paulfitz Differential Revision: https://phab.getgrist.com/D4342 |
||
---|---|---|
.. | ||
AclRule.ts | ||
Activation.ts | ||
Alias.ts | ||
BillingAccount.ts | ||
BillingAccountManager.ts | ||
Document.ts | ||
Group.ts | ||
Limit.ts | ||
Login.ts | ||
Organization.ts | ||
Pref.ts | ||
Product.ts | ||
Resource.ts | ||
Secret.ts | ||
Share.ts | ||
User.ts | ||
Workspace.ts |