Skip to content
Snippets Groups Projects
Commit c4c14e72 authored by Daniel Göbel's avatar Daniel Göbel
Browse files

Merge branch 'feature/23-add-mandatory-docs' into 'development'

Resolve "Add mandatory input and output docs to workflow requirements"

Closes #23

See merge request !21
parents 8f313b9b 85624456
No related branches found
No related tags found
2 merge requests!69Delete dev branch,!21Resolve "Add mandatory input and output docs to workflow requirements"
Pipeline #27677 passed
......@@ -67,7 +67,9 @@ async def check_repo(repo: GitRepository, client: AsyncClient) -> None:
Http client with an open connection. Dependency Injection.
"""
await repo.check_files_exist(
["README.md", "CHANGELOG.md", "main.nf", "nextflow_schema.json"], client=client, raise_error=True
["README.md", "CHANGELOG.md", "main.nf", "nextflow_schema.json", "docs/usage.md", "docs/output.md"],
client=client,
raise_error=True,
)
......
......@@ -63,9 +63,19 @@ class WorkflowVersionFull(WorkflowVersionReduced):
)
changelog_url: AnyHttpUrl = Field(
...,
description="URL to download CHAnGELOG.md from",
description="URL to download CHANGELOG.md from",
example="https://raw.githubusercontent.com/example/example/CHANGELOG.md",
)
usage_url: AnyHttpUrl = Field(
...,
description="URL to download usage.md from",
example="https://raw.githubusercontent.com/example/example/docs/usage.md",
)
output_url: AnyHttpUrl = Field(
...,
description="URL to download output.md from",
example="https://raw.githubusercontent.com/example/example/docs/output.md",
)
parameter_schema_url: AnyHttpUrl = Field(
...,
description="URL to download nextflow_schema.json from",
......@@ -78,6 +88,8 @@ class WorkflowVersionFull(WorkflowVersionReduced):
workflow_id=db_version.workflow_id,
readme_url=repo.downloadFileURL("README.md"),
changelog_url=repo.downloadFileURL("CHANGELOG.md"),
usage_url=repo.downloadFileURL("docs/usage.md"),
output_url=repo.downloadFileURL("docs/output.md"),
parameter_schema_url=repo.downloadFileURL("nextflow_schema.json"),
**WorkflowVersionReduced.from_db_version(db_version).dict(),
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment