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

#32 - Remove codex references in settings #314

Merged
merged 7 commits into from
Sep 3, 2024

Conversation

michael-82
Copy link
Collaborator

@michael-82 michael-82 commented Jul 2, 2024

  • replace/rename codex references with mii or just feasibility
  • package names remain unchanged
  • please be aware that feasibility-deploy must be adapted to these changes (see corresponding PR)

@michael-82 michael-82 added the documentation Improvements or additions to documentation label Jul 2, 2024
@michael-82 michael-82 self-assigned this Jul 2, 2024
@michael-82 michael-82 linked an issue Jul 2, 2024 that may be closed by this pull request
@michael-82 michael-82 marked this pull request as ready for review July 2, 2024 09:46
@michael-82 michael-82 force-pushed the feature/32-remove-codex-references-in-settings branch from cfb0f47 to 606cdd2 Compare August 13, 2024 08:50
Copy link

codecov bot commented Aug 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.51%. Comparing base (60ed59f) to head (8a5ae75).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop     #314   +/-   ##
==========================================
  Coverage      78.51%   78.51%           
  Complexity       547      547           
==========================================
  Files            135      135           
  Lines           2374     2374           
  Branches         143      143           
==========================================
  Hits            1864     1864           
  Misses           453      453           
  Partials          57       57           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@michael-82 michael-82 force-pushed the feature/32-remove-codex-references-in-settings branch from 145ba84 to bccbd8d Compare August 14, 2024 08:01
Copy link
Contributor

@juliangruendner juliangruendner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change feasibility to dataportal - all occurences
remove ui - all occurences

@@ -77,7 +78,7 @@ services:
environment:
POSTGRES_USER: "guidbuser"
POSTGRES_PASSWORD: "guidbpw"
POSTGRES_DB: "codex_ui"
POSTGRES_DB: "feasibility_ui"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to dataportal

DATABASE_PORT: 5432
DATABASE_USER: "guidbuser"
DATABASE_PASSWORD: "guidbpw"
DATABASE_DBNAME: "feasibility_ui"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change feasibility to dataportal for all occurences

Dockerfile Outdated
@@ -3,24 +3,24 @@ FROM eclipse-temurin:17-jre
RUN apt update -yqq && apt upgrade -yqq && \
apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/

WORKDIR /opt/codex-feasibility-backend
WORKDIR /opt/mii-feasibility-backend
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dataportal

username: ${FEASIBILITY_DATABASE_USER:codex-postgres}
password: ${FEASIBILITY_DATABASE_PASSWORD:codex-password}
url: jdbc:postgresql://${DATABASE_HOST:localhost}:${DATABASE_PORT:5432}/${DATABASE_DBNAME:feasibility_ui}
username: ${DATABASE_USER:guidbuser}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dataportaluser
dataportalpw

@@ -63,8 +63,8 @@ public class FhirQueryTranslatorIT {
@Container
private final GenericContainer<?> flare = new GenericContainer<>(DockerImageName.parse("ghcr.io/num-codex/codex-flare:0.0.8"))
.withExposedPorts(5000)
.withFileSystemBind("ontology/codex-code-tree.json", "/opt/flare/src/query_parser/codex/codex-code-tree.json", READ_ONLY)
.withFileSystemBind("ontology/codex-term-code-mapping.json", "/opt/flare/src/query_parser/codex/codex-mapping.json", READ_ONLY)
.withFileSystemBind("ontology/mii-code-tree.json", "/opt/flare/src/query_parser/codex/codex-code-tree.json", READ_ONLY)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adjust to new file names

- replace/rename codex references with mii or just feasibility
- package names remain unchanged
- add env variable for dbname in datasource url
- remove prefix from db env variables
- replace any feasibility, mii or ui references with dataportal references
@michael-82 michael-82 force-pushed the feature/32-remove-codex-references-in-settings branch from bccbd8d to b7037b1 Compare September 3, 2024 13:00
- change rolenames in tests
- fix wrong filename for ontology dl in github integration test
- fix wrong servicename in github action compose file
@michael-82 michael-82 merged commit 4a98a0d into develop Sep 3, 2024
8 checks passed
@michael-82 michael-82 deleted the feature/32-remove-codex-references-in-settings branch September 3, 2024 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove codex references in settings
2 participants