-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
feat: add root option to afterReset hooks of type command #137
Conversation
Huh! Looks like we weren't running prettier in CI?! Fixed in #138 - please rebase, then hopefully you can run the tests :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm worried about unintended consequences of this, so we should probably be clear in the documentation exactly what this is expected to be used for.
@benjie I think this PR is ready to go with the exception of the release notes checkbox. Not sure if I'm missing where to add those? What's changed since your 👀 were on this:
Apologies that I didn't realize force pushing to my branch would break Github's requested changes. The change you requested was a small tweak to the README which I implemented. Finally, as I was working on the unit tests, I found a separate bug in The 🐛 : when setting rootConnectionString to just the db name, the connection string used when For example, when I noticed this because the unit tests default rootConnection string was just |
@benjie know of anything left before this can be merged? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, some small tweaks needed 👍
I addressed the recommendations to fix the tests. Last thing pending is resolution surrounding the pathname vs dbname debacle |
…db name with slash
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! 👍
My new test didn't pass linting :( |
I tried fixing it using prettier playground but that wasn't enough; please reformat 👍 |
Thanks for your thorough reviews! |
Of course it was the trailing comma 🤦♂️ |
Released in 1.3.0 🙌 |
Description
Fix for issue 132. afterReset actions of type command now respect the
root
property in the action specPerformance impact
I can't imagine a performance cost to this
Security impact
None that I'm aware of
Checklist
yarn lint:fix
passes.yarn test
passes.RELEASE_NOTES.md
file (if one exists).I wasn't able to get my unit tests to run locally. Happy to try to write a test for this if you have any advice on what I'm missing? This was the behavior when I checked out the commit before mine so none of my changes are involved here.
Also, I don't see a RELEASE_NOTES.md, so I made no additions there.