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
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
Closed
Draft: Cover search service
cover-search-service
into
dev
Overview
0
Commits
3
Pipelines
0
Changes
15
Closed
Martin Weise
requested to merge
cover-search-service
into
dev
1 year ago
Overview
0
Commits
3
Pipelines
0
Changes
15
Expand
0
0
Merge request reports
Compare
dev
version 3
32f77adc
1 year ago
version 2
7b05c48e
1 year ago
version 1
7b05c48e
1 year ago
dev (base)
and
latest version
latest version
5cf42676
3 commits,
1 year ago
version 3
32f77adc
2 commits,
1 year ago
version 2
7b05c48e
1 commit,
1 year ago
version 1
7b05c48e
7 commits,
1 year ago
15 files
+
485
−
445
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
15
Search (e.g. *.vue) (Ctrl+P)
dbrepo-search-service/app/__init__.py
+
0
−
11
Options
@@ -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