Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
quassel-rest-search
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janne Mareike Koschinski
quassel-rest-search
Commits
014d624e
Verified
Commit
014d624e
authored
1 year ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
fix: correct bugs due to updated dependencies
parent
611a8d2b
Branches
3.0
No related tags found
No related merge requests found
Pipeline
#3008
passed
1 year ago
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+7
-5
7 additions, 5 deletions
Dockerfile
database/Config.php
+1
-1
1 addition, 1 deletion
database/Config.php
database/backends/PostgresSmartBackend.php
+13
-6
13 additions, 6 deletions
database/backends/PostgresSmartBackend.php
with
21 additions
and
12 deletions
Dockerfile
+
7
−
5
View file @
014d624e
FROM
k8r.eu/justjanne/php:latest
FROM
trafex/php-nginx:latest
USER
root
RUN
apk add
--no-cache
--update
\
php-json
\
php-pdo_sqlite
\
php-pdo_pgsql
php
82
-json
\
php
82
-pdo_sqlite
\
php
82
-pdo_pgsql
USER
nobody
ADD
. /var/www/html/
\ No newline at end of file
ADD
. /var/www/html/
This diff is collapsed.
Click to expand it.
database/Config.php
+
1
−
1
View file @
014d624e
...
...
@@ -20,7 +20,7 @@ class Config
$this
->
database_connector
=
$database_connector
;
$this
->
username
=
$username
;
$this
->
password
=
$password
;
$this
->
path_prefix
=
$path_prefix
;
$this
->
path_prefix
=
rtrim
(
$path_prefix
,
"/"
)
;
$this
->
backend
=
$backend
;
$this
->
database_options
=
$options
;
$this
->
enable_ranking
=
$enable_ranking
;
...
...
This diff is collapsed.
Click to expand it.
database/backends/PostgresSmartBackend.php
+
13
−
6
View file @
014d624e
...
...
@@ -35,12 +35,19 @@ class PostgresSmartBackend implements Backend
function
rankingParameters
():
array
{
return
[
":config_normalization"
,
":weight_content"
,
":weight_type"
,
":weight_time"
];
if
(
$this
->
enable_ranking
)
{
return
[
":config_normalization"
,
":weight_content"
,
":weight_type"
,
":weight_time"
];
}
else
{
return
[
":weight_type"
,
":weight_time"
];
}
}
private
function
rankingFunction
():
string
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment