-
-
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
refactor: drop promise utils #6746
refactor: drop promise utils #6746
Commits on Sep 20, 2020
-
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
Configuration menu - View commit details
-
Copy full SHA for b19a661 - Browse repository at this point
Copy the full SHA b19a661View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 15b50cb - Browse repository at this point
Copy the full SHA 15b50cbView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 1006e6f - Browse repository at this point
Copy the full SHA 1006e6fView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for f7d6c22 - Browse repository at this point
Copy the full SHA f7d6c22View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 5411938 - Browse repository at this point
Copy the full SHA 5411938View commit details -
Configuration menu - View commit details
-
Copy full SHA for b76384d - Browse repository at this point
Copy the full SHA b76384dView commit details -
Configuration menu - View commit details
-
Copy full SHA for e87f1cf - Browse repository at this point
Copy the full SHA e87f1cfView commit details -
sequentially run when dealing with QueryRunner
queryrunner is not 'thread-safe' or async safe
Configuration menu - View commit details
-
Copy full SHA for bd9a62d - Browse repository at this point
Copy the full SHA bd9a62dView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 1cad559 - Browse repository at this point
Copy the full SHA 1cad559View commit details