-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Make connectivity check domains configurable #12571
Make connectivity check domains configurable #12571
Conversation
Please add |
I have made the requested changes |
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.
Cool stuff!
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.
Works for me
Thank you @TheLastProject for your contribution 🎉 |
Thank you for helping me through making a good pull request :) |
@TheLastProject Thanks for the contribution. There are 3 unit tests failing due to the new check of the config:
You can run the unit tests locally via following command:
If you don't specify the path, then all are executed and this could take very long. Often I also clear my instance and completely reset it (otherwise the currently installed data in the DB and data directory or the config options could manipulate the test run) via |
You only modified the working test, the negative tests also need adjusting ;)
|
Was having some issues getting the tests to run locally, so wanted to see if I could get one of them fixed at least. Now I know what to do properly, yeah, thanks :) |
Signed-off-by: Sylvia van Os <[email protected]>
Tests seem to all pass now again :) |
Looks good 👍 |
@nickvergessen @rullzer As this is a minor fix that would solve some issues for people should we merge this into 15? What do you think? I would be fine, because the actual code is very minimal (basically a config fetch). |
FIne by me |
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.
Code makes sense 👍
Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22 |
Fixes #12370.
I've made sure to keep the default to the same domains. This allows you to keep has_internet_connection to true, so that you can still install apps and the likes, but not ping to domains you don't want to ping to.
If the domain list in 'connectivity_check_domains' is explicitly empty, Nextcloud will still show the connectivity warning, as there are no hosts to match.