-
-
Notifications
You must be signed in to change notification settings - Fork 525
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
Add async configuration support. #359
Conversation
14bbef3
to
4583aff
Compare
I believe I have the tests passing. I had to remove the I'm not sure why, but it was causing problems for a subset of tests. After removing the option, all tests pass. |
This passed for me, flaky tests? https://travis-ci.org/wwalser/cli/builds/163213992 |
bbcd9e6
to
11bc014
Compare
b8b044c
to
b49276a
Compare
Perfect timing. I also need for fetching a decrypted key from an external key management store prior to loading my models. |
Any reason we're not merging this one? Would help me out a lot! |
I haven't added tests or documentation changes which I think would be reasonable requests by a maintainer before landing the PR. However, I'd like to get at least a nod from a maintainer to know that if I spend time on those, it will get landed. Maybe I should mention them to get attention. Ping: @felixfbecker or @sdepold |
Im not a maintainer of the CLI :) |
Sry mate, I saw you active in the issues area and noticed "sequelize member" in the header of your comments. Do you know whose attention we should be trying to get perhaps? Thanks :) |
One more try for @sdepold. |
Okay, trying a whole new crew. How about @Americas or @sushantdhiman? |
This PR LGTM too. And I can assure you I will merge this provided everything is good and has tests. You have our blessing 😛 |
You have my entire trust. Go ahead @sushantdhiman :) |
61878ee
to
17128e6
Compare
I've added migrate and seed tests which use async configuration. Feel free to code review and land when appropriate. I'd like to understand the NPM release schedule as well since I'm currently using my own branch of these changes in production. |
Would you like me to squash before you merge? |
Github interface allow squashing so no need. @Americas will merge after review :) |
Ping @Americas 🎱 |
ahem… may I get this PR landed for Christmas? 🎄🎄🎅🎅🎅🏽🎅🏽🎁🎁 |
@sushantdhiman PR approved, tests written and passing. Please land. Thanks! |
Thanks for this PR @wwalser , Sorry for this delay |
Add short flag `-m` for submit comment flag
Google Cloud's infrastructure doesn't inject metadata into the environment, instead, you have to call an outside service. Because of this, I need a migration solution that offers asynchronous configuration.
This, as I've discovered over the past five hours, is surprisingly difficult primarily because of a combination of:
To maintain existing behavior, this change takes care to initialize config at the start of all gulp tasks but waits until readConfig is called before logging anything or showing errors.
I'm happy to make the documentation changes if that would be helpful. Would you like this in this PR or a separate one?