Skip to content

Commit

Permalink
Add application details to delivery report (#2631)
Browse files Browse the repository at this point in the history
### Added:
- Application details to delivery report
  • Loading branch information
ivadym authored Oct 26, 2023
1 parent e7fcbc9 commit a944b38
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions cg/meta/report/report_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ def get_sample_application_data(self, lims_sample: dict) -> ApplicationModel:
version=lims_sample.get("application_version"),
prep_category=application.prep_category,
description=application.description,
details=application.details,
limitations=application.limitations,
pipeline_limitations=self.get_pipeline_accreditation_limitation(application.tag),
accredited=application.is_accredited,
Expand Down
3 changes: 3 additions & 0 deletions cg/meta/report/templates/balsamic_report.html
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@ <h4 class="card-title">
Teknisk beskrivning av analysen: {{ application.tag }}
</h4>
<p class="card-text">{{ application.description }}</p>
{% if application.details != 'N/A' %}
<p class="card-text">{{ application.details }}</p>
{% endif %}
{% if application.limitations != 'N/A' %}
<h4 class="card-title">
Begränsningar av analysen: {{ application.tag }}
Expand Down
3 changes: 3 additions & 0 deletions cg/meta/report/templates/mip-dna_report.html
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ <h4 class="card-title">
Teknisk beskrivning av analysen: {{ application.tag }}
</h4>
<p class="card-text">{{ application.description }}</p>
{% if application.details != 'N/A' %}
<p class="card-text">{{ application.details }}</p>
{% endif %}
{% if application.limitations != 'N/A' %}
<h4 class="card-title">
Begränsningar av analysen: {{ application.tag }}
Expand Down
3 changes: 3 additions & 0 deletions cg/meta/report/templates/rnafusion_report.html
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ <h4 class="card-title">
Teknisk beskrivning av analysen: {{ application.tag }}
</h4>
<p class="card-text">{{ application.description }}</p>
{% if application.details != 'N/A' %}
<p class="card-text">{{ application.details }}</p>
{% endif %}
{% if application.limitations != 'N/A' %}
<h4 class="card-title">
Begränsningar av analysen: {{ application.tag }}
Expand Down
1 change: 1 addition & 0 deletions cg/models/report/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class ApplicationModel(BaseModel):
version: Annotated[str, BeforeValidator(get_report_string)] = NA_FIELD
prep_category: Annotated[str, BeforeValidator(get_prep_category_as_string)] = NA_FIELD
description: Annotated[str, BeforeValidator(get_report_string)] = NA_FIELD
details: Annotated[str, BeforeValidator(get_report_string)] = NA_FIELD
limitations: Annotated[str, BeforeValidator(get_report_string)] = NA_FIELD
pipeline_limitations: Annotated[str, BeforeValidator(get_report_string)] = NA_FIELD
accredited: Optional[bool] = None
Expand Down

0 comments on commit a944b38

Please sign in to comment.