-
-
Notifications
You must be signed in to change notification settings - Fork 680
Implementation of global project-tld config option #4218
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
Conversation
Hmm, the tests were green, then pushed the whitespace fix, seems a unrelated issue? |
The github tests don't even run because you're first-time contributor, so ping me when I need to run them again. Just started them. Congrats on the PR! After you get this PR in then you don't have to have tests run manually any more. |
Yeah seems i was mistaken, there was actually a declaration that was removed for some reason. Guessing my infamiliarity with go. |
Started tests. |
Download the artifacts for this pull request: |
the fail seems unrelated to the code change:
|
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.
Perfect, tested manually and it did great.
It still needs docs updated. I see references in https://ddev.readthedocs.io/en/latest/users/details/offline-usage/ and https://ddev.readthedocs.io/en/latest/users/configuration/config_yaml/ - but. it needs to be added to the global config on that page too.
Also needs to be added to global_config.yaml stuff in https://github.com/drud/ddev/blob/1cb188308d85f359285c917b0d24256cac55abbc/pkg/globalconfig/global_config.go#L210-L295
Awesome, thanks!
I'd like this to make it into the next point release (within the next week). Hope you can address the minor changes required. |
Yeah i should be able to this week. |
Hmm, I was also thinking though. I think right now global options take precedent. But perhaps this should not be the case. You might want a global option, but if you set something on the project level you probably want that value. For this particular option it might now matter much. But especially if we look forwards, what about the php version. The global should perhaps just function as a configurable default value. |
IMO global config should be a default, but there are cases where it isn't implemented that way, like mutagen. But you're certainly right that that's the obvious - global config should be default, and project config should be able to override it. |
I've fixed all the requested changed afaik :) Ready for review again. |
I rebased using the github UI, so you'll need to update your branch if further work is required. Github broke everybody by removing brew from the path lately, and your code didn't have that fix. I see the docs and link checks failing though, you'll want to look at those. |
I'll see if I can fix this by rolling back to a14223d and doing a rebase. Seems lots of things were lost. |
2fd0665
to
419feb4
Compare
Darnit. Ide was being silly then. If this doesn't work I can revert to master and cherry picker my changes if you like. Then all should be fine again. Sometimes jetbrains works in mysterieus ways |
I haven't sorted out what happened, but we'll get it. |
Seems github was just slow to pick up my push, now it looks like all is OK. Except docs change landed that has conflicts. I'll fix that. |
Thank you. :) |
419feb4
to
7f97176
Compare
Rebased, @mattstein feel free to take a look. |
Added two minor suggestions, otherwise looks great to me. Thanks @bbrala! |
Co-authored-by: Matt Stein <m@ttste.in>
560724d
to
c423731
Compare
Rebased again, another merge conflict. Applied @mattstein 's changes. I'll re-test tomorrow and we can get it in. Would appreciate if you could do manual test and review again @bbrala, thanks. |
Tested it locally built from this branch.
It works :) |
Thanks so much @bbrala ! Happy to have you do any of those other needed globals if you get inspired. Won't require so much rebasing next time, that was just about the timing of the big docs PR. |
wow nice addition! thanks a lot! i've already tested a few minutes ago by updating to the latest version in head. everything is working as expected. :) i had only one suggestion i brought up on discord and quickly chatted with @rfay about. currently the setting in the global config is i wonder if it would make sense to change the only caveat with my suggestion @rfay pointed out on discord is that you have to be careful in case you are changing the |
The Problem/Issue/Bug:
I want to set a global project tld by default to support a custom TLD for out company.
How this PR Solves The Problem:
Adds a config global config option for project-tld that overwrites the default for the project and makes it globally settable.
Manual Testing Instructions:
Build, use --project-tld globally and see it work. You can also set it in the global config yaml.
Automated Testing Overview:
Added the option in the tests, but can't run tests locally, so thats a little bit hard.
I did test this manually by setting the global config in yml and observing our actual project tld be used! Hopefully i can use gitpod to run the tests.
Related Issue Link(s):
#2746
Release/Deployment notes: