-
-
Notifications
You must be signed in to change notification settings - Fork 841
Standardize output directory for export functions #5532
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
Standardize output directory for export functions #5532
Conversation
This reverts commit 3fd2bd7.
…into development
Can we also consider a configuration for the TimeNow calculation that gets added to created names in some commands? While one country in world likes mmddyyyy format it would be nice to not force that on the other 190+ countries. |
Is there a reason for mixing Join- Path and Join-DbaPath in the various changes? |
@sqllensman No reason other than haste; I was trying to wrap up the changes very quickly and didn't review my previous work to be consistent. I've revised my changes to use |
Only problem I have with this is it breaks cross platform support. |
This is also to big of a change to publish right now and I would recommend pushing this to the pre-release branch for 1.0 release. |
What breaks cross-platform support? |
Ok. I don't have anything but windows to verify. |
@alevyinroc will you be able to resolve the conflict in this PR so we can get it merged? |
Thanks Shawn, I would like to get it merged as well 👍 |
i think i fixed it. wish us luck! 😬 |
I don't quite understand why the tests are failing, will have to check things out tomorrow when I'm back on a Windows machine |
Moved all these test to the |
Well test still failed but at least it is all in one place to reference 😁 |
I pulled the current prerelease branch into this PR because the import process changed and this didn't have the latest updates for it. Not sure if that caused any issues but just cover all bases right now. |
…c/dbatools into StandardExportDir-4704
I am not going to be able to look at the latest test failures until June 1 at the absolute earliest |
thanks for the update, i'll take a closer look |
Ok. So all I can say on this one @alevyinroc is just save the branch and code for after we get 1.0 done. How these test have ever passed previously I don't know because the one just for Login has bad logic that is not right the way I read it all. I think it just needs to be reworked and once we start working on upgrading to the latest Pester release all of our test will have to be touched anyway. I'm just going to close this one for now. |
@wsmelton sounds good to me. I'll take a look at it over the summer when there's a bit more time to step back, look at all the pieces, and maybe break it into smaller PRs to make fixing the tests & conflicts easier |
wait wait, this standardization is required for 1.0. I'd rather them not have integration tests than not get upgraded. I'll reopen, skip the failing integration tests, and merge. |
GREEEEEEEEEEEEEEEEEEEEEEN! |
Thank you, everyone, for your time 🙇 |
Type of Change
Purpose
To standardize the directory that the
Export-Dba*
functions default their output to.Approach
Path
parameter for allExport-Dba*
functions to use the config setting aboveCommands to test
Export-Dba*