Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cypress qa work #483

Closed
wants to merge 136 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
136 commits
Select commit Hold shift + click to select a range
a6d66d0
critical2:implementing ciritical ranges
gitcliff Mar 15, 2023
57630ff
critical2:changeset in 2.7.x
Mar 16, 2023
bbdaf62
critical2:validating critical results in the logbooks results page
Mar 27, 2023
23e5793
critical2:formating xml code
Apr 11, 2023
96ee5ab
Update install.md
caseyi Apr 19, 2023
8d089f5
Update install.md
caseyi Apr 19, 2023
66256f2
critical2:editing the limit ranges
Apr 27, 2023
ac9309e
criticals:fixing critical ranges in testModify page
May 1, 2023
42f59ed
critical2:remove valid checksums
May 1, 2023
adf18f1
update Reception Role
mozzy11 May 3, 2023
16a1346
Merge pull request #448 from mozzy11/fix_role
mozzy11 May 3, 2023
ab864d1
critical2:restrict the critical ranges to only two field values
gitcliff May 9, 2023
f513ebb
Merge branch 'develop' into critical2
gitcliff May 9, 2023
4f5666a
Merge pull request #429 from gitcliff/critical2
mozzy11 May 9, 2023
14a7648
Add PSC sample type to VL study form and updates on VL report - add
Pkom17 May 11, 2023
3a33d91
Fix logo and image upload issues
Pkom17 May 11, 2023
bc6293e
Fix bugs on Patient Edit By Study project
Pkom17 May 11, 2023
3f8b883
Merge branch 'develop' into develop
Pkom17 May 11, 2023
cbd99e9
critical2:validation of critical ranges for a validator
gitcliff May 11, 2023
d98916b
Merge pull request #452 from gitcliff/critical2
mozzy11 May 11, 2023
d711fde
critical2:Setting critical result message as an administrator
gitcliff May 14, 2023
606916d
Minor changes in PR #451
Pkom17 May 15, 2023
4e23536
Merge branch 'develop' of github.com:Pkom17/OpenELIS-Global-2 into de…
Pkom17 May 15, 2023
8a21136
Change Genders select option in Patient study forms
Pkom17 May 15, 2023
65debaa
Merge pull request #454 from gitcliff/critical2
mozzy11 May 16, 2023
089761b
Merge pull request #451 from Pkom17/develop
CalebSLane May 22, 2023
8652813
add default admin user roles
mozzy11 May 29, 2023
41a0edc
Merge pull request #462 from mozzy11/fix_role
mozzy11 May 29, 2023
b73285f
Update ci.yml
mozzy11 May 30, 2023
1425d4b
Set 2.7 to production release
caseyi May 31, 2023
ad84472
run openelis in docker
mozzy11 May 31, 2023
5356410
Merge pull request #467 from mozzy11/develop
mozzy11 May 31, 2023
956a289
fixed patient.state column size
mozzy11 Jun 1, 2023
44c4b86
Merge pull request #468 from mozzy11/fix_role
mozzy11 Jun 1, 2023
2e503bf
update docs
mozzy11 Jun 14, 2023
ead270e
Merge pull request #470 from mozzy11/fix_role
mozzy11 Jun 14, 2023
1580e23
minor update
mozzy11 Jun 14, 2023
84698d4
Merge pull request #471 from mozzy11/fix_role
mozzy11 Jun 14, 2023
3f84a93
Update 27upgrade.md
caseyi Jun 20, 2023
b7daa93
Update install.md
caseyi Jun 26, 2023
5aeefde
Update install.md
caseyi Jun 27, 2023
7980c07
use actual system user instead of default user
CalebSLane Jun 28, 2023
5c081c2
fix duplicate note issue
CalebSLane Jul 8, 2023
f552d5f
process calculation rules
mozzy11 Jul 13, 2023
b1fe7b9
format
mozzy11 Jul 13, 2023
0fabe5d
add better healthchek for OE
CalebSLane Jul 18, 2023
c4141c3
Frontend QA workflows initialise
abertnamanya Jul 19, 2023
1c579ea
Login Screen testCase
abertnamanya Jul 19, 2023
e97e1a8
Added PatientEntry features
abertnamanya Jul 20, 2023
8d1841e
update QA github actions
abertnamanya Jul 21, 2023
28e3663
seperate uses and run actions
abertnamanya Jul 21, 2023
6912efd
update QA github actions
abertnamanya Jul 21, 2023
ae6d1d9
github actions:added react scripts steps
abertnamanya Jul 21, 2023
7bd8398
alter qa workflow
abertnamanya Jul 21, 2023
4bab402
Cypress ignore video,screenshots
abertnamanya Jul 21, 2023
ea2bacc
process the calculated values
mozzy11 Jul 23, 2023
43a7834
minor fix
mozzy11 Jul 23, 2023
732215e
update qa github actions
abertnamanya Jul 24, 2023
9f2d432
update qa github actions
abertnamanya Jul 24, 2023
f956c37
update qa github actions
abertnamanya Jul 24, 2023
f938d35
Implement Reflex Rule Overral Option
mozzy11 Jul 24, 2023
cd83959
Implement Calculated Value
mozzy11 Jul 25, 2023
f38ee54
Update Processing Caclulation Logic
mozzy11 Jul 26, 2023
cc0e4ee
fix calculation Logic
mozzy11 Jul 26, 2023
9b74b4e
update pom
mozzy11 Jul 26, 2023
d376dc7
Update Calculation Implementation
mozzy11 Jul 26, 2023
dd01791
minor fix
mozzy11 Jul 26, 2023
1863ce5
fix null values
mozzy11 Jul 26, 2023
f24f6de
Merge pull request #481 from mozzy11/2.8
mozzy11 Jul 26, 2023
5840ffa
fix NPE
mozzy11 Jul 26, 2023
1769ad3
Merge pull request #484 from mozzy11/2.8
mozzy11 Jul 26, 2023
17cae83
more fixes for Test Reflex and Calculation Processing
mozzy11 Jul 27, 2023
b796e4a
fix calculation
mozzy11 Jul 27, 2023
6db270b
Merge pull request #485 from mozzy11/2.8
mozzy11 Jul 27, 2023
40d5f85
fix duplicated Results
mozzy11 Jul 27, 2023
d4bc3b7
Merge pull request #486 from mozzy11/2.8
mozzy11 Jul 27, 2023
7413245
format
mozzy11 Jul 27, 2023
481082f
Merge pull request #487 from mozzy11/2.8
mozzy11 Jul 27, 2023
c40d349
Handle Text Values
mozzy11 Jul 27, 2023
0294b79
Merge pull request #488 from mozzy11/2.8
mozzy11 Jul 27, 2023
ceaf66d
Merge branch '2.8' of github.com:I-TECH-UW/OpenELIS-Global-2 into 2.8
CalebSLane Jul 28, 2023
6e64d64
fhir upgrade and healthcheck improvements
CalebSLane Jul 28, 2023
d5c1856
Merge pull request #489 from CalebSLane/2.8
CalebSLane Jul 28, 2023
bd887f4
Merge pull request #479 from I-TECH-UW/CalebSLane-patch-1
CalebSLane Jul 28, 2023
8f89211
fix permission issue in fhir container
CalebSLane Jul 28, 2023
2caa10d
Merge branch '2.8' of github.com:I-TECH-UW/OpenELIS-Global-2 into 2.8
CalebSLane Jul 28, 2023
082f9e4
second attempt at fhir fix
CalebSLane Jul 28, 2023
442dd0d
rename resct-ui to frontend
mozzy11 Jul 31, 2023
a39fc56
fix OptimisticLockException
mozzy11 Jul 31, 2023
ab75c37
Merge pull request #490 from mozzy11/2.8
mozzy11 Jul 31, 2023
6a8fdce
Merge branch 'develop' into 2.8
CalebSLane Jul 31, 2023
e07da84
fix docker-compose before git error
CalebSLane Aug 1, 2023
de1f75e
Merge branch '2.8' of github.com:I-TECH-UW/OpenELIS-Global-2 into 2.8
CalebSLane Aug 1, 2023
f69cacb
immunohistochemistry work
CalebSLane Aug 1, 2023
1fd62d9
Merge pull request #491 from CalebSLane/2.8
CalebSLane Aug 1, 2023
f4819fc
fix file location moved
CalebSLane Aug 1, 2023
3aa376a
Merge pull request #492 from CalebSLane/2.8
CalebSLane Aug 1, 2023
c36c204
fix labels
mozzy11 Aug 1, 2023
89fd673
fix NPE and Number Format Error when displaying patient History
mozzy11 Aug 1, 2023
6105864
Merge pull request #493 from mozzy11/2.8
mozzy11 Aug 1, 2023
93bd970
fix date pattern used for parsing infohighway
CalebSLane Aug 1, 2023
c36e2c7
upgrade fhir version in develop
CalebSLane Aug 1, 2023
1450869
fix date pattern for infohighway search
CalebSLane Aug 1, 2023
18b62f1
Results filter by labNo, patient and Order status
abertnamanya Aug 2, 2023
7a53d53
bugfix infohighway search not working
CalebSLane Aug 2, 2023
72353c4
Merge branch 'master' into develop
CalebSLane Aug 2, 2023
1809dcd
fix results filters
abertnamanya Aug 2, 2023
81d5d6e
Merge branch 'develop' into 2.8
CalebSLane Aug 2, 2023
0e815f7
Merge pull request #495 from abertnamanya/results-filter
mozzy11 Aug 3, 2023
703ea18
minor fix
mozzy11 Aug 3, 2023
b075909
Merge pull request #496 from mozzy11/2.8
mozzy11 Aug 3, 2023
1fb4c34
Create Home Dashborad UI Template
mozzy11 Aug 3, 2023
db0357f
Merge pull request #497 from mozzy11/2.8
mozzy11 Aug 3, 2023
47b1276
make tile clicakble
mozzy11 Aug 3, 2023
6e8a358
Merge pull request #498 from mozzy11/2.8
mozzy11 Aug 3, 2023
bf5d526
Increase Clickable Arrow size
mozzy11 Aug 3, 2023
47c6232
Merge pull request #499 from mozzy11/2.8
mozzy11 Aug 3, 2023
2fabb6d
created backend API for dashbord
mozzy11 Aug 8, 2023
88c58db
fix typo
mozzy11 Aug 8, 2023
7161bc7
fix home dashboard
mozzy11 Aug 9, 2023
f8f4cf6
fix test
mozzy11 Aug 9, 2023
154b893
Merge pull request #500 from mozzy11/2.8
mozzy11 Aug 9, 2023
5dabc19
Frontend QA workflows initialise
abertnamanya Jul 19, 2023
e5e217d
Login Screen testCase
abertnamanya Jul 19, 2023
f84d0a0
Added PatientEntry features
abertnamanya Jul 20, 2023
8d43750
update QA github actions
abertnamanya Jul 21, 2023
c3b228e
seperate uses and run actions
abertnamanya Jul 21, 2023
21ccab7
update QA github actions
abertnamanya Jul 21, 2023
01bb7be
github actions:added react scripts steps
abertnamanya Jul 21, 2023
37cb065
alter qa workflow
abertnamanya Jul 21, 2023
bb34c64
Cypress ignore video,screenshots
abertnamanya Jul 21, 2023
1e1a418
update qa github actions
abertnamanya Jul 24, 2023
72a530f
update qa github actions
abertnamanya Jul 24, 2023
659eee8
update qa github actions
abertnamanya Jul 24, 2023
5e1b082
resolve conflicts
abertnamanya Aug 12, 2023
4d5e01f
Merge remote-tracking branch 'origin/Cypress-QA-Work' into Cypress-QA…
abertnamanya Aug 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
79 changes: 79 additions & 0 deletions .github/workflows/frontend-qa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: Cypress OE QA workflows

on:
push:
branches: [ '2.8' ]
pull_request:
branches: [ '2.8' ]
workflow_dispatch:

jobs:
install:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Log in to the Container registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout dataexport module
uses: actions/checkout@v2
with:
repository: I-TECH-UW/dataexport
ref: develop
- name: install dataexport module
run: mvn clean install

- name: Checkout OpenELIS-Global2
uses: actions/checkout@v3
with:
repository: ${{github.repository}}

- name: Build OpenELIS-Global2
run: mvn clean install

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 14.x

- name: Install dependencies
run: npm install
working-directory: react-ui

- name: Install React scripts
run: npm install [email protected] -g
working-directory: react-ui

- name: Run OpenELS image
run: docker-compose -f build.docker-compose.yml up -d

- name: Sleep for 8 minutes for OpenELIS to start
run: sleep 8m
shell: bash

- name: check containers
run: docker ps
- name: check frontend container logs
run: docker logs --tail 20 openelisglobal-front-end

- name: Run Frontend Qa Workflow
run: npx cypress run –headless
working-directory: react-ui





4 changes: 2 additions & 2 deletions .github/workflows/publish-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: ./react-ui
file: ./react-ui/Dockerfile.prod
context: ./frontend
file: ./frontend/Dockerfile.prod
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ You can find more information on how to set up OpenELIS at our [docs page](http:

[![Publish Docker Image Status](https://github.com/I-TECH-UW/OpenELIS-Global-2/actions/workflows/publish.yml/badge.svg)](https://github.com/I-TECH-UW/OpenELIS-Global-2/actions/workflows/publish.yml)


### Running OpenELIS in Docker
#### Running with published docker images
docker-compose up -d
Expand All @@ -21,3 +20,4 @@ You can find more information on how to set up OpenELIS at our [docs page](http:
|---------- |:-------------:|------: |
| Legacy UI | https://localhost/api/OpenELIS-Global/  | admin: adminADMIN! |
| New React UI | https://localhost/ | admin: adminADMIN!

8 changes: 4 additions & 4 deletions build.docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,18 +88,18 @@ services:
- source: common.properties

frontend.openelis.org:
image: react-ui
image: frontend
build:
context: ./react-ui
context: ./frontend
dockerfile: ./Dockerfile
container_name: openelisglobal-front-end
# ports:
# - 3000:3000
networks:
- default
volumes:
- './react-ui/src:/app/src'
- './react-ui/public:/app/public'
- './frontend/src:/app/src'
- './frontend/public:/app/public'
environment:
- CHOKIDAR_USEPOLLING=true
tty: true
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ echo "creating docker images"
#bash ${INSTALL_DIR}/buildProject.sh -dl ${CONSOLIDATED_SERVER_DIR}
bash ${INSTALL_DIR}/buildProject.sh -dl ${PROJECT_DIR}/fhir -t hapi-fhir-jpaserver
#create the frontend docker image
bash ${INSTALL_DIR}/buildProject.sh -dl ${PROJECT_DIR}/react-ui -t openelisglobal-frontend
bash ${INSTALL_DIR}/buildProject.sh -dl ${PROJECT_DIR}/frontend -t openelisglobal-frontend
#create the frontend docker image
bash ${INSTALL_DIR}/buildProject.sh -dl ${PROJECT_DIR}/nginx-proxy -t nginx-proxy
#create the docker image
Expand Down
217 changes: 109 additions & 108 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,132 +1,133 @@
version: '3.3'
services:
certs:
container_name: oe-certs
image: ghcr.io/i-tech-uw/certgen:main
restart: always
environment:
- KEYSTORE_PW="kspass"
- TRUSTSTORE_PW="tspass"
networks:
- default
volumes:
- key_trust-store-volume:/etc/openelis-global
- keys-vol:/etc/ssl/private/
- certs-vol:/etc/ssl/certs/
database:
container_name: openelisglobal-database
image: postgres:9.5
ports:
- "15432:5432"
restart: always
env_file:
- ./volume/database/database.env
volumes:
# preserves the database between containers
- db-data:/var/lib/postgresql/data
# files here will run on install
- ./volume/database/dbInit:/docker-entrypoint-initdb.d
networks:
- default
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "clinlims", "-U", "clinlims" ]
timeout: 45s
interval: 10s
retries: 10
certs:
container_name: oe-certs
image: ghcr.io/i-tech-uw/certgen:main
restart: always
environment:
- KEYSTORE_PW="kspass"
- TRUSTSTORE_PW="tspass"
networks:
- default
volumes:
- key_trust-store-volume:/etc/openelis-global
- keys-vol:/etc/ssl/private/
- certs-vol:/etc/ssl/certs/

oe.openelis.org:
container_name: openelisglobal-webapp
image: ghcr.io/i-tech-uw/openelis-global-2:2.8
depends_on:
- database
ports:
- "8080:8080"
- "8443:8443"
restart: always
networks:
default:
ipv4_address: 172.20.1.121
database:
container_name: openelisglobal-database
image: postgres:9.5
ports:
- "15432:5432"
restart: always
env_file:
- ./volume/database/database.env
volumes:
# preserves the database between containers
- db-data:/var/lib/postgresql/data
# files here will run on install
- ./volume/database/dbInit:/docker-entrypoint-initdb.d
networks:
- default
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "clinlims", "-U", "clinlims" ]
timeout: 45s
interval: 10s
retries: 10

oe.openelis.org:
container_name: openelisglobal-webapp
image: ghcr.io/i-tech-uw/openelis-global-2:2.8
depends_on:
- database
ports:
- "8080:8080"
- "8443:8443"
restart: always
networks:
default:
ipv4_address: 172.20.1.121

environment:
- DEFAULT_PW=adminADMIN!
- TZ=Africa/Nairobi
# context.xml doesn't seem to be able to pick up environment variables directly, so we are passing them in as CATALINA_OPTS
- CATALINA_OPTS= -Ddatasource.url=jdbc:postgresql://database:5432/clinlims -Ddatasource.username=clinlims
volumes:
- key_trust-store-volume:/etc/openelis-global
- ./volume/plugins/:/var/lib/openelis-global/plugins
- ./volume/tomcat/oe_server.xml:/usr/local/tomcat/conf/server.xml
secrets:
- source: datasource.password
- source: common.properties
environment:
- DEFAULT_PW=adminADMIN!
- TZ=Africa/Nairobi
# context.xml doesn't seem to be able to pick up environment variables directly, so we are passing them in as CATALINA_OPTS
- CATALINA_OPTS= -Ddatasource.url=jdbc:postgresql://database:5432/clinlims -Ddatasource.username=clinlims
volumes:
- key_trust-store-volume:/etc/openelis-global
- ./volume/plugins/:/var/lib/openelis-global/plugins
- ./volume/tomcat/oe_server.xml:/usr/local/tomcat/conf/server.xml
secrets:
- source: datasource.password
- source: common.properties

fhir.openelis.org:
container_name: external-fhir-api
image: hapiproject/hapi:v5.5.1
ports:
- "8081:8080"
- "8444:8443"
networks:
- default
restart: always
environment:
TZ: Africa/Nairobi

fhir.openelis.org:
container_name: external-fhir-api
image: hapiproject/hapi:v5.5.1
ports:
- "8081:8080"
- "8444:8443"
networks:
- default
restart: always
environment:
TZ: Africa/Nairobi

JAVA_OPTS: "-Djavax.net.ssl.trustStore=/etc/openelis-global/truststore
JAVA_OPTS: "-Djavax.net.ssl.trustStore=/etc/openelis-global/truststore
-Djavax.net.ssl.trustStorePassword=tspass
-Djavax.net.ssl.trustStoreType=pkcs12
-Djavax.net.ssl.keyStore=/etc/openelis-global/keystore
-Djavax.net.ssl.keyStorePassword=kspass
-Djavax.net.ssl.keyStoreType=pkcs12"

volumes:
- key_trust-store-volume:/etc/openelis-global
- ./volume/tomcat/hapi_server.xml:/usr/local/tomcat/conf/server.xml


frontend.openelis.org:
image: ghcr.io/i-tech-uw/openelis-global-2-frontend:2.8
container_name: openelisglobal-front-end
# ports:
# - 80:80
networks:
- default
volumes:
- './react-ui/src:/app/src'
- './react-ui/public:/app/public'
environment:
- CHOKIDAR_USEPOLLING=true
tty: true
-Djavax.net.ssl.keyStoreType=pkcs12"

volumes:
- key_trust-store-volume:/etc/openelis-global
- ./volume/tomcat/hapi_server.xml:/usr/local/tomcat/conf/server.xml

proxy:
image: nginx:1.15-alpine
container_name: openelisglobal-proxy
ports:
- 80:80
- 443:443
volumes:
- certs-vol:/etc/nginx/certs/
- keys-vol:/etc/nginx/keys/
- ./volume/nginx/nginx-prod.conf:/etc/nginx/nginx.conf:ro
restart: unless-stopped
depends_on:
- certs

frontend.openelis.org:
image: ghcr.io/i-tech-uw/openelis-global-2-frontend:2.8
container_name: openelisglobal-front-end
# ports:
# - 80:80
networks:
- default
volumes:
- './react-ui/src:/app/src'
- './react-ui/public:/app/public'
environment:
- CHOKIDAR_USEPOLLING=true
tty: true

proxy:
image: nginx:1.15-alpine
container_name: openelisglobal-proxy
ports:
- 80:80
- 443:443
volumes:
- certs-vol:/etc/nginx/certs/
- keys-vol:/etc/nginx/keys/
- ./volume/nginx/nginx-prod.conf:/etc/nginx/nginx.conf:ro
restart: unless-stopped
depends_on:
- certs

secrets:
datasource.password:
file: ./volume/properties/datasource.password
file: ./volume/properties/datasource.password
common.properties:
file: ./volume/properties/common.properties
file: ./volume/properties/common.properties

networks:
default:
driver: bridge
ipam:
config:
- subnet: 172.20.1.0/24

- subnet: 172.20.1.0/24
volumes:
db-data:
key_trust-store-volume:
certs-vol:
keys-vol:
keys-vol:
2 changes: 1 addition & 1 deletion docs/27upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ If you are running these commands on a remote server, it is recommended to use a
10. run the setup script for the new version with updated db, ignoring db backup couldn’t occur step


a) sudo setup_OpenELIS.py
a) sudo python3 setup_OpenELIS.py


11. ensure systems start up and that data is present
Expand Down
Loading
Loading