Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DBRepo
Manage
Activity
Members
Labels
Plan
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FAIR Data Austria DB Repository
DBRepo
Merge requests
!214
Draft: Cover search service
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Closed
Draft: Cover search service
cover-search-service
into
dev
Overview
0
Commits
3
Pipelines
0
Changes
12
Closed
Draft: Cover search service
Martin Weise
requested to merge
cover-search-service
into
dev
Nov 24, 2023
Overview
0
Commits
3
Pipelines
0
Changes
12
0
0
Merge request reports
Compare
dev
version 3
32f77adc
Jan 26, 2024
version 2
7b05c48e
Nov 24, 2023
version 1
7b05c48e
Nov 24, 2023
dev (base)
and
version 3
latest version
5cf42676
3 commits,
Jan 26, 2024
version 3
32f77adc
2 commits,
Jan 26, 2024
version 2
7b05c48e
1 commit,
Nov 24, 2023
version 1
7b05c48e
7 commits,
Nov 24, 2023
12 files
+
129
−
72
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
12
dbrepo-search-service/app/__init__.py
+
0
−
11
View file @ 32f77adc
Show full file
@@ -4,7 +4,6 @@ import os
@@ -4,7 +4,6 @@ import os
import
logging
import
logging
from
flasgger
import
LazyJSONEncoder
,
Swagger
from
flasgger
import
LazyJSONEncoder
,
Swagger
from
flask
import
Flask
from
flask
import
Flask
from
opensearchpy
import
OpenSearch
from
config
import
Config
from
config
import
Config
from
prometheus_flask_exporter
import
PrometheusMetrics
from
prometheus_flask_exporter
import
PrometheusMetrics
@@ -102,16 +101,6 @@ def create_app(config_class=Config):
@@ -102,16 +101,6 @@ def create_app(config_class=Config):
# load configuration
# load configuration
app
.
config
.
from_object
(
config_class
)
app
.
config
.
from_object
(
config_class
)
logging
.
info
(
'
opensearch endpoint 1: %s:%d
'
,
app
.
config
[
"
SEARCH_HOST
"
],
app
.
config
[
"
SEARCH_PORT
"
])
app
.
opensearch_client
=
(
OpenSearch
(
hosts
=
[{
"
host
"
:
app
.
config
[
"
SEARCH_HOST
"
],
"
port
"
:
app
.
config
[
"
SEARCH_PORT
"
]}],
http_compress
=
True
,
http_auth
=
(
app
.
config
[
"
SEARCH_USERNAME
"
],
app
.
config
[
"
SEARCH_PASSWORD
"
]),
)
if
app
.
config
[
"
SEARCH_HOST
"
]
else
None
)
# register blueprints
# register blueprints
from
app.api
import
api_bp
from
app.api
import
api_bp
Loading