Skip to content

Commit

Permalink
Merge pull request #4 from WSE-research/addChanges
Browse files Browse the repository at this point in the history
Bugfixes
  • Loading branch information
dschiese authored Jun 18, 2024
2 parents dd075be + cda2f13 commit c1acbd4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
1 change: 0 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
MONGO_USER: ${{ secrets.USER_MONGO }}
MONGO_PASSWORD: ${{ secrets.PASSWORD_MONGO }}
MONGO_AUTHSOURCE: ${{ secrets.AUTHSOURCE_MONGO }}
GITHUB_WORKSPACE: ${{github.workspace}}

steps:
- uses: actions/checkout@v4
Expand Down
11 changes: 7 additions & 4 deletions explanation_frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
QANARY_PIPELINE_COMPONENTS = config('QANARY_PIPELINE_COMPONENTS')
GITHUB_REPO = config('GITHUB_REPO')
FEEDBACK_URL = config('FEEDBACK_URL')
MONGO_USER = config('MONGO_USER')
MONGO_PASSWORD = config('MONGO_PASSWORD')
MONGO_AUTHSOURCE = config('MONGO_AUTHSOURCE')

### Pre-defined configurations
explanation_configurations_dict = {
Expand Down Expand Up @@ -132,10 +135,10 @@
if "showPreconfigured" not in st.session_state:
st.session_state.showPreconfigured = True;

mongo_client = pymongo.MongoClient(config('FEEDBACK_URL'),
username=config('MONGO_USER'),
password=config('MONGO_PASSWORD'),
authSource=config('MONGO_AUTHSOURCE'),
mongo_client = pymongo.MongoClient(FEEDBACK_URL,
username=MONGO_USER,
password=MONGO_PASSWORD,
authSource=MONGO_AUTHSOURCE,
)
explanationsDb = mongo_client["explanations"]
explanationsCol = explanationsDb["explanation"]
Expand Down
8 changes: 4 additions & 4 deletions service_config/files/.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ QANARY_PIPELINE_URL=http://demos.swe.htwk-leipzig.de:40111
QANARY_EXPLANATION_SERVICE_URL=http://demos.swe.htwk-leipzig.de:40190
QANARY_PIPELINE_COMPONENTS=http://demos.swe.htwk-leipzig.de:40111/components
GITHUB_REPO=https://github.com/WSE-research/qanary-explanainability-frontend
FEEDBACK_URL=placeholder
USER_MONGO=placeholder
PASSWORD_MONGO=placeholder
AUTHSOURCE_MONGO=placeholder
FEEDBACK_URL=FEEDBACK_URL
MONGO_USER=MONGO_USER
MONGO_PASSWORD=MONGO_PASSWORD
MONGO_AUTHSOURCE=MONGO_AUTHSOURCE

0 comments on commit c1acbd4

Please sign in to comment.