Skip to content

Commit

Permalink
Adding a page showing test server usage per package
Browse files Browse the repository at this point in the history
  • Loading branch information
schuemie committed Mar 25, 2024
1 parent a5b26cc commit 139da54
Show file tree
Hide file tree
Showing 59 changed files with 1,774 additions and 170,430 deletions.
2 changes: 2 additions & 0 deletions Rmd/_site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ navbar:
href: releaseProcess.html
- text: "Package Statuses"
href: packageStatuses.html
- text: "Test server usage"
href: testServerUsage.html
- text: "Development Roadmap"
href: "developmentRoadmap.html"
- text: "HADES Package Requirements"
Expand Down
47 changes: 47 additions & 0 deletions Rmd/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,50 @@
text-align: center;
margin-bottom: 0px;
}

#slanttable {
display: flex;
flex-direction: column;
justify-content: space-around;
max-width: 50vw;
margin-top: 50px;
}
#slanttable table{
border-collapse: collapse;
--table-border-width: 1px;
}
#slanttable th {
white-space: nowrap;
position: relative;
}
#slanttable th > div {
/* place div at bottom left of the th parent */
position: absolute;
bottom: 0;
left: 0;
/* Make sure short setting names still meet the corner of the parent otherwise you'll get a gap */
text-align: left;
/* Move the top left corner of the span bottom-border to line up with the top left corner of the td border-right border so that the border corners are matched */
/* Rotate -45 degrees about matched border corners */
transform:
translate(calc(100% - var(--table-border-width) / 2), var(--table-border-width))
rotate(315deg);
transform-origin: 0% calc(100% - var(--table-border-width));
width: 100%;
}
#slanttable th > div > span {
/* make sure the bottom of the span is matched up with the bottom of the parent div */
position: absolute;
bottom: 0;
left: 0;
border-bottom: var(--table-border-width) solid gray;
}
#slanttable td {
border-right: var(--table-border-width) solid gray;
/* make sure this is at least as wide as sqrt(2) * height of your tallest letter or the headers will overlap each other */
min-width: 30px;
text-align: right;
padding-top: 2px;
padding-left: 5px;
padding-right: 5px;
}
44 changes: 44 additions & 0 deletions Rmd/testServerUsage.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
title: "Test server usage"
output:
html_document:
toc: FALSE
---

The table below lists, for each package, which database testing servers it uses as part of its unit tests.

- T means the package uses the database server for testing
- X means the package does **not** use the database server for testing
- An empty cell means the package does not directly talk to the database

```{r, results='asis', echo=FALSE}
data <- readRDS("../extras/DatabaseTestServerUsage.rds")
data <- data[order(data$package), ]
dbmss <- colnames(data)
dbmss <- dbmss[dbmss != "package"]
lines <- c(
"<div id=slanttable>",
"<table>",
" <thead>",
" <tr>",
" <th>Package</th>",
sprintf(" <th><div><span>%s</span></div></th>", dbmss),
" </tr>",
" </thead>",
" <tbody>",
sapply(seq_len(nrow(data)), function(i) c(" <tr>",
sprintf(" <td>%s</td>", data$package[i]),
sprintf(" <td%s>%s</td>",
ifelse(is.na(data[i, dbmss]), "", ifelse(data[i, dbmss], " style=\"background:#cdf5bf;\"", " style=\"background:#f5c3bf;\"")),
ifelse(is.na(data[i, dbmss]), "&nbsp;", ifelse(data[i, dbmss], "T", "X"))
),
" </tr>")),
" </tbody>",
"</table>",
"</div>"
)
writeLines(lines)
```

This table was constructed simply by looking for the environmental variable names of the test server credentials in each package's test code, and may therefore not reflect actual testing. Whether a package connects to a database at all was determined by evaluating whether it imports DatabaseConnector.
3 changes: 3 additions & 0 deletions docs/codeStyle.html
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,9 @@
<li>
<a href="packageStatuses.html">Package Statuses</a>
</li>
<li>
<a href="testServerUsage.html">Test server usage</a>
</li>
<li>
<a href="developmentRoadmap.html">Development Roadmap</a>
</li>
Expand Down
3 changes: 3 additions & 0 deletions docs/community.html
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,9 @@
<li>
<a href="packageStatuses.html">Package Statuses</a>
</li>
<li>
<a href="testServerUsage.html">Test server usage</a>
</li>
<li>
<a href="developmentRoadmap.html">Development Roadmap</a>
</li>
Expand Down
3 changes: 3 additions & 0 deletions docs/connecting.html
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,9 @@
<li>
<a href="packageStatuses.html">Package Statuses</a>
</li>
<li>
<a href="testServerUsage.html">Test server usage</a>
</li>
<li>
<a href="developmentRoadmap.html">Development Roadmap</a>
</li>
Expand Down
3 changes: 3 additions & 0 deletions docs/contribute.html
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,9 @@
<li>
<a href="packageStatuses.html">Package Statuses</a>
</li>
<li>
<a href="testServerUsage.html">Test server usage</a>
</li>
<li>
<a href="developmentRoadmap.html">Development Roadmap</a>
</li>
Expand Down
3 changes: 3 additions & 0 deletions docs/developerGuidelines.html
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,9 @@
<li>
<a href="packageStatuses.html">Package Statuses</a>
</li>
<li>
<a href="testServerUsage.html">Test server usage</a>
</li>
<li>
<a href="developmentRoadmap.html">Development Roadmap</a>
</li>
Expand Down
3 changes: 3 additions & 0 deletions docs/developmentRoadmap.html
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,9 @@
<li>
<a href="packageStatuses.html">Package Statuses</a>
</li>
<li>
<a href="testServerUsage.html">Test server usage</a>
</li>
<li>
<a href="developmentRoadmap.html">Development Roadmap</a>
</li>
Expand Down
3 changes: 3 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,9 @@
<li>
<a href="packageStatuses.html">Package Statuses</a>
</li>
<li>
<a href="testServerUsage.html">Test server usage</a>
</li>
<li>
<a href="developmentRoadmap.html">Development Roadmap</a>
</li>
Expand Down
3 changes: 3 additions & 0 deletions docs/installingHades.html
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,9 @@
<li>
<a href="packageStatuses.html">Package Statuses</a>
</li>
<li>
<a href="testServerUsage.html">Test server usage</a>
</li>
<li>
<a href="developmentRoadmap.html">Development Roadmap</a>
</li>
Expand Down
3 changes: 3 additions & 0 deletions docs/packageRequirements.html
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,9 @@
<li>
<a href="packageStatuses.html">Package Statuses</a>
</li>
<li>
<a href="testServerUsage.html">Test server usage</a>
</li>
<li>
<a href="developmentRoadmap.html">Development Roadmap</a>
</li>
Expand Down
3 changes: 3 additions & 0 deletions docs/packageStatuses.html
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,9 @@
<li>
<a href="packageStatuses.html">Package Statuses</a>
</li>
<li>
<a href="testServerUsage.html">Test server usage</a>
</li>
<li>
<a href="developmentRoadmap.html">Development Roadmap</a>
</li>
Expand Down
3 changes: 3 additions & 0 deletions docs/packages.html
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,9 @@
<li>
<a href="packageStatuses.html">Package Statuses</a>
</li>
<li>
<a href="testServerUsage.html">Test server usage</a>
</li>
<li>
<a href="developmentRoadmap.html">Development Roadmap</a>
</li>
Expand Down
5,166 changes: 0 additions & 5,166 deletions docs/pare_reports/Achilles.html

This file was deleted.

5,164 changes: 0 additions & 5,164 deletions docs/pare_reports/Andromeda.html

This file was deleted.

5,164 changes: 0 additions & 5,164 deletions docs/pare_reports/BigKnn.html

This file was deleted.

5,166 changes: 0 additions & 5,166 deletions docs/pare_reports/BrokenAdaptiveRidge.html

This file was deleted.

5,164 changes: 0 additions & 5,164 deletions docs/pare_reports/Capr.html

This file was deleted.

5,165 changes: 0 additions & 5,165 deletions docs/pare_reports/Characterization.html

This file was deleted.

5,164 changes: 0 additions & 5,164 deletions docs/pare_reports/CirceR.html

This file was deleted.

5,164 changes: 0 additions & 5,164 deletions docs/pare_reports/CohortDiagnostics.html

This file was deleted.

5,164 changes: 0 additions & 5,164 deletions docs/pare_reports/CohortExplorer.html

This file was deleted.

5,164 changes: 0 additions & 5,164 deletions docs/pare_reports/CohortGenerator.html

This file was deleted.

5,164 changes: 0 additions & 5,164 deletions docs/pare_reports/CohortMethod.html

This file was deleted.

5,165 changes: 0 additions & 5,165 deletions docs/pare_reports/Cyclops.html

This file was deleted.

5,165 changes: 0 additions & 5,165 deletions docs/pare_reports/DataQualityDashboard.html

This file was deleted.

5,165 changes: 0 additions & 5,165 deletions docs/pare_reports/DatabaseConnector.html

This file was deleted.

5,165 changes: 0 additions & 5,165 deletions docs/pare_reports/EmpiricalCalibration.html

This file was deleted.

5,164 changes: 0 additions & 5,164 deletions docs/pare_reports/Eunomia.html

This file was deleted.

5,164 changes: 0 additions & 5,164 deletions docs/pare_reports/EvidenceSynthesis.html

This file was deleted.

5,164 changes: 0 additions & 5,164 deletions docs/pare_reports/FeatureExtraction.html

This file was deleted.

5,164 changes: 0 additions & 5,164 deletions docs/pare_reports/Hydra.html

This file was deleted.

5,165 changes: 0 additions & 5,165 deletions docs/pare_reports/IterativeHardThresholding.html

This file was deleted.

5,164 changes: 0 additions & 5,164 deletions docs/pare_reports/MethodEvaluation.html

This file was deleted.

5,164 changes: 0 additions & 5,164 deletions docs/pare_reports/OhdsiSharing.html

This file was deleted.

5,165 changes: 0 additions & 5,165 deletions docs/pare_reports/OhdsiShinyModules.html

This file was deleted.

5,164 changes: 0 additions & 5,164 deletions docs/pare_reports/ParallelLogger.html

This file was deleted.

5,166 changes: 0 additions & 5,166 deletions docs/pare_reports/PatientLevelPrediction.html

This file was deleted.

5,165 changes: 0 additions & 5,165 deletions docs/pare_reports/PheValuator.html

This file was deleted.

5,164 changes: 0 additions & 5,164 deletions docs/pare_reports/PhenotypeLibrary.html

This file was deleted.

5,164 changes: 0 additions & 5,164 deletions docs/pare_reports/ROhdsiWebApi.html

This file was deleted.

5,165 changes: 0 additions & 5,165 deletions docs/pare_reports/ResultModelManager.html

This file was deleted.

Loading

0 comments on commit 139da54

Please sign in to comment.