Open keevan opened 2 years ago
will help to resolve https://github.com/catalyst/moodle-tool_objectfs/issues/472
should we count this one as done? @keevan
I think a configurable / sane default timeout might also be useful here, for example, if it was configured but maybe the configuration was not 100% correct.
This might be a bonus though, but I'll leave it there for discussion.
In the case of S3, this should reduce/remove the initial load time filled by the connection test, and alllow you to enter in the relevant details.
The keys to check and skip the connection test should likely be (at least for s3):
I'm not 100% sure about the other fields, but these seem like mandatory fields that if aren't set, would cause the connection to fail anyways, so it should fail immediately.
There is also the possibility of improving the wait period of this by setting a timeout on the connection test. More info: https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_configuration.html#http-connect-timeout