Merge pull request #18598 from sanjaysrikakulam/webdav_as_user_file_source

Bring your own file sources: Add the WebDAV template and configuration
This commit is contained in:
Marius van den Beek
2024-10-14 12:16:28 +02:00
committed by GitHub
12 changed files with 97 additions and 5 deletions
+21
View File
@@ -350,6 +350,19 @@ configuration).
![](file_source_azure_configuration.png)
#### `webdav`
The syntax for the `configuration` section of `webdav` templates looks like this.
![](file_source_webdav_configuration_template.png)
At runtime, after the `configuration` template is expanded, the resulting dictionary
passed to Galaxy's file source plugin infrastructure looks like this and should match a subset
of what you'd be able to add directly to `file_sources_conf.yml` (Galaxy's global file source
configuration).
![](file_source_webdav_configuration.png)
### YAML Syntax
![galaxy.files.templates.models](file_source_templates.png)
@@ -398,6 +411,14 @@ and you are comfortable with it storing your user's secrets.
:language: yaml
```
#### Allow Users to Define WebDAV Servers as File Sources
```{literalinclude} ../../../lib/galaxy/files/templates/examples/production_webdav.yml
:language: yaml
```
![Screenshot](user_file_source_form_full_webdav.png)
## Playing Nicer with Ansible
Many large instances of Galaxy are configured with Ansible and much of the existing administrator
Binary file not shown.

Before

Width:  |  Height:  |  Size: 316 KiB

After

Width:  |  Height:  |  Size: 362 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

+4
View File
@@ -15,6 +15,8 @@ from galaxy.files.templates.models import (
PosixFileSourceTemplateConfiguration,
S3FSFileSourceConfiguration,
S3FSFileSourceTemplateConfiguration,
WebdavFileSourceConfiguration,
WebdavFileSourceTemplateConfiguration,
)
from galaxy.objectstore.templates.models import (
AwsS3ObjectStoreConfiguration,
@@ -53,6 +55,8 @@ class_to_diagram = {
S3FSFileSourceConfiguration: "file_source_s3fs_configuration",
FtpFileSourceTemplateConfiguration: "file_source_ftp_configuration_template",
FtpFileSourceConfiguration: "file_source_ftp_configuration",
WebdavFileSourceTemplateConfiguration: "file_source_webdav_configuration_template",
WebdavFileSourceConfiguration: "file_source_webdav_configuration",
}
for clazz, diagram_name in class_to_diagram.items():
@@ -22,6 +22,7 @@ SEARCH_FOR = [
"user_file_source_form_full_aws_public.png",
"user_file_source_form_full_azure.png",
"user_file_source_form_full_ftp.png",
"user_file_source_form_full_webdav.png",
]
Binary file not shown.

After

Width:  |  Height:  |  Size: 193 KiB