Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
Doorcode
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Guardians of the Kretschmar Elock System
Doorcode
Commits
6c93bc17
Commit
6c93bc17
authored
Dec 29, 2020
by
Jacob Priddy
👌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make door search also search for door admin notes
parent
1380ec26
Pipeline
#13239
passed with stages
in 2 minutes and 6 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
src/backend/src/Gateways/Doors/DatabaseDoorsRepository.php
src/backend/src/Gateways/Doors/DatabaseDoorsRepository.php
+2
-1
src/backend/src/Gateways/Doors/InMemoryDoorsRepository.php
src/backend/src/Gateways/Doors/InMemoryDoorsRepository.php
+1
-0
No files found.
src/backend/src/Gateways/Doors/DatabaseDoorsRepository.php
View file @
6c93bc17
...
...
@@ -146,7 +146,8 @@ class DatabaseDoorsRepository implements DoorsRepository
$builder
->
where
(
'location'
,
'ILIKE'
,
"%
$query
%"
)
->
orWhere
(
'id'
,
'='
,
self
::
castToInt
(
$query
))
->
orWhere
(
'name'
,
'ILIKE'
,
"%
$query
%"
)
->
orWhere
(
'version'
,
'ILIKE'
,
"%
$query
%"
);
->
orWhere
(
'version'
,
'ILIKE'
,
"%
$query
%"
)
->
orWhere
(
'notes'
,
'ILIKE'
,
"%
$query
%"
);
});
}
...
...
src/backend/src/Gateways/Doors/InMemoryDoorsRepository.php
View file @
6c93bc17
...
...
@@ -83,6 +83,7 @@ class InMemoryDoorsRepository implements DoorsRepository
return
stripos
(
$door
->
getLocation
(),
$query
)
!==
false
||
stripos
(
$door
->
getName
(),
$query
)
!==
false
||
stripos
(
$door
->
getVersion
(),
$query
)
!==
false
||
stripos
(
$door
->
getNotes
(),
$query
)
!==
false
||
$door
->
hasIdOf
(
$query
);
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment