-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into azuredeployment
- Loading branch information
Showing
211 changed files
with
6,640 additions
and
3,585 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
version: 2.1 | ||
|
||
parameters: | ||
GHA_Action: | ||
type: string | ||
default: "" | ||
GHA_Meta: | ||
type: string | ||
default: "" | ||
|
||
orbs: | ||
slack: circleci/[email protected] | ||
|
||
definitions: | ||
build_config: &build_config | ||
docker: | ||
- image: molgenis/ci-build:latest | ||
- image: molgenis/ci-build:1.2.0 | ||
working_directory: ~/repo | ||
resource_class: large | ||
environment: | ||
|
@@ -14,7 +23,7 @@ definitions: | |
TERM: dumb | ||
test_config: &test_config | ||
docker: | ||
- image: molgenis/ci-build:latest | ||
- image: molgenis/ci-build:1.2.0 | ||
- image: postgres:15-alpine | ||
environment: | ||
POSTGRES_USER: postgres | ||
|
@@ -95,8 +104,8 @@ jobs: | |
- pre_steps | ||
|
||
- run: | ||
name: build and push emx2 java docker images and helm for the preview | ||
command: ./gradlew -s --no-daemon shadowJar dockerPush helmPublishMainChart ci -x test | ||
name: build and push emx2 java docker images for the preview | ||
command: ./gradlew -s --no-daemon shadowJar dockerPush ci -x test | ||
|
||
- run: | ||
name: push ssr-catalogue docker images | ||
|
@@ -171,11 +180,11 @@ jobs: | |
command: | | ||
export $( cat build/ci.properties | xargs ) | ||
if [[ "$TAG_NAME" == *"SNAPSHOT"* ]]; then | ||
./gradlew -s --no-daemon dockerPush helmPublishMainChart | ||
./gradlew -s --no-daemon dockerPush | ||
docker build apps/nuxt3-ssr/ -t molgenis/ssr-catalogue-snapshot:latest -t molgenis/ssr-catalogue-snapshot:${TAG_NAME} | ||
docker push molgenis/ssr-catalogue-snapshot --all-tags | ||
else | ||
./gradlew -s --no-daemon dockerPush helmPublishMainChart release | ||
./gradlew -s --no-daemon dockerPush release | ||
docker build apps/nuxt3-ssr/ -t molgenis/ssr-catalogue:latest -t molgenis/ssr-catalogue:${TAG_NAME} | ||
docker push molgenis/ssr-catalogue --all-tags | ||
fi | ||
|
@@ -197,20 +206,81 @@ jobs: | |
-X POST https://slack.com/api/chat.postMessage | ||
- post_steps | ||
e2e-preview: | ||
docker: | ||
- image: mcr.microsoft.com/playwright:v1.41.2-jammy | ||
steps: | ||
- checkout | ||
- run: npm i -D @playwright/test | ||
- run: npx playwright install chrome | ||
- run: | ||
name: Wait for preview to be up, poll every 10 seconds | ||
command: | | ||
GETURL="https://preview-emx2-pr-${CIRCLE_PULL_REQUEST##*/}.dev.molgenis.org/" | ||
while true; | ||
do | ||
STATUS=$(curl --silent --head $GETURL | awk '/^HTTP/{print $2}') | ||
echo ${STATUS} | ||
if [[ "$STATUS" == "200" ]]; then | ||
echo "preview is up"; | ||
break; | ||
else | ||
echo "preview is not ready yet, waiting 10 seconds..."; | ||
fi; | ||
sleep 10; | ||
done | ||
- run: | ||
command: | | ||
echo "PR number: ${CIRCLE_PULL_REQUEST##*/}" | ||
export E2E_BASE_URL=https://preview-emx2-pr-${CIRCLE_PULL_REQUEST##*/}.dev.molgenis.org/ | ||
echo $E2E_BASE_URL | ||
npx playwright test --config e2e e2e/tests | ||
- store_test_results: | ||
path: /root/project/e2e | ||
|
||
|
||
delete-helm-preview: | ||
<<: *build_config | ||
|
||
environment: | ||
GHA_PREVIEW_NR: << pipeline.parameters.GHA_Meta >> | ||
|
||
steps: | ||
- pre_steps | ||
|
||
- run: | ||
name: delete preview on azure | ||
command: | | ||
export $( cat build/ci.properties | xargs ) | ||
bash ci/set_kubectl_config-azure.sh | ||
kubectl delete namespace preview-emx2-pr-${GHA_PREVIEW_NR} || true | ||
workflows: | ||
version: 2 | ||
build_and_test_and_preview_or_release: | ||
unless: | ||
equal: [ "delete-pr-preview", << pipeline.parameters.GHA_Action >> ] | ||
jobs: | ||
- preview: | ||
filters: | ||
branches: | ||
ignore: master | ||
- test: | ||
- e2e-preview: | ||
requires: | ||
- preview | ||
filters: | ||
branches: | ||
ignore: master | ||
branches: | ||
ignore: master | ||
- test: | ||
filters: | ||
branches: | ||
ignore: master | ||
- release: | ||
filters: | ||
branches: | ||
only: master | ||
filters: | ||
branches: | ||
only: master | ||
delete_preview: | ||
when: | ||
equal: [ "delete-pr-preview", << pipeline.parameters.GHA_Action >> ] | ||
jobs: | ||
- delete-helm-preview |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
on: | ||
pull_request: | ||
types: [ closed ] | ||
jobs: | ||
trigger-circleci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Trigger CircleCI delete_preview workflow | ||
id: "delete-pr-preview" | ||
uses: CircleCI-Public/[email protected] | ||
with: | ||
GHA_Meta: ${{ github.event.number }} | ||
env: | ||
CCI_TOKEN: ${{ secrets.CCI_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Dashboard template for ERN Cranio providers | ||
|
||
The `cranio-provider` vue app is a template for creating dashboards for data providers affiliated with ERN CRANIO. This app contains "mini dashboards" for each workstream and further breakdowns for ERN versus center summaries, as well as general and surgical overviews. As a result, the application is structured using nested router views. | ||
|
||
```text | ||
cranio-provider | ||
- Center landing page and overview | ||
- Craniosynostosis | ||
- General overview for all centers | ||
- Surgical overview for all centers | ||
- General overview for the current center | ||
- Surgical overview for the current center | ||
- Cleft lip and palate | ||
- Overview for the current center | ||
- Overview for all centers | ||
- Genetic Deafness (TBD) | ||
- Larynxcleft (TBD) | ||
``` | ||
|
||
## Getting Started | ||
|
||
Changes can be made to the application by cloning the `molgenis/molgenis-emx2` repository and creating a new branch; use the prefix `feat/...` or `fix/...` when naming the branch. | ||
|
||
### Vue config | ||
|
||
A few items are required to develop the application. These are outlined below. | ||
|
||
1. In the `vue.config.js` file, enter a host or schema, or use the defaults. | ||
2. In the selected host, create a new schema using the template `ERN_DASHBOARDS`. Use the name `CranioStats`. **NOTE**: the name of this schema is hard coded into the Cranio provider application. | ||
3. Upload the [Cranio dataset](https://github.com/molgenis/projects-rd-erns/blob/main/erns/cranio/cranio_emx2.xlsx) into the `CranioStats` schema. | ||
4. In the organisations table, select one of the organisations and create a new schema using the value in the `providerInformation` column (e.g., `NL1`, `DK1`, etc). | ||
5. Next we will import the profile image for the organization. Click the "edit row" button and scroll down to the field for `image`. Find the profile image of the selected organisation in the [provider profiles](https://github.com/molgenis/projects-rd-erns/tree/main/erns/cranio/profiles) folder. (Either download the image or clone the repo.) Back in the update form, click the *browse* button and select the file that you would like to import. Click save. | ||
6. In the terminal, change directories to `apps/cranio-provider` and run the `yarn dev` command. This will serve the vue app at `localhost:5173` | ||
|
||
## Troubleshooting | ||
|
||
1. **Error importing components**: If you get an error importing components from `molgenis-viz` or `molgenis-components`, these may need to be built and installed locally. In each folder, run `yarn build` |
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-55.5 KB
apps/cranio-provider/public/profiles/karolinska-university-hospital.jpg
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-83.9 KB
apps/cranio-provider/public/profiles/universitatsklinikum-charite.jpg
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file removed
BIN
-55.5 KB
apps/cranio-public/public/profiles/karolinska-university-hospital.jpg
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.