Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
243
Issues
243
List
Boards
Labels
Service Desk
Milestones
Merge Requests
31
Merge Requests
31
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Compare Revisions
a9126588afafcf78804d409e8274ff3964fd56fe...4499d84d5e99106970c46a1a284f452bfc2ff41a
Source
4499d84d5e99106970c46a1a284f452bfc2ff41a
Select Git revision
...
Target
a9126588afafcf78804d409e8274ff3964fd56fe
Select Git revision
Compare
Commits (2)
(fix) change repository filter from time_created to timestamp and fix resolver filter
· e20df67c
Juan Manuel Solaro
authored
1 hour ago
e20df67c
(fix) apply fixer changes
· 4499d84d
Juan Manuel Solaro
authored
1 hour ago
4499d84d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
FilterEntitiesDelegate.php
Core/Entities/Delegates/FilterEntitiesDelegate.php
+1
-1
Repository.php
Core/Feeds/Scheduled/Repository.php
+2
-2
Repository.php
Core/Feeds/Top/Repository.php
+2
-2
No files found.
Core/Entities/Delegates/FilterEntitiesDelegate.php
View file @
4499d84d
...
...
@@ -38,7 +38,7 @@ class FilterEntitiesDelegate
$filterByScheduled
=
false
;
if
(
$this
->
shouldFilterScheduled
(
$entity
->
getType
()))
{
$filterByScheduled
=
!
ACL
::
_
()
->
write
(
$entity
,
$this
->
user
)
||
!
(
$entity
->
getTimeCreated
()
<=
$this
->
time
);
&&
!
(
$entity
->
getTimeCreated
()
<=
$this
->
time
);
}
return
$this
->
acl
->
read
(
$entity
,
$this
->
user
)
&&
!
$filterByScheduled
;
}));
...
...
This diff is collapsed.
Click to expand it.
Core/Feeds/Scheduled/Repository.php
View file @
4499d84d
...
...
@@ -48,8 +48,8 @@ class Repository
'must'
=>
[
[
'range'
=>
[
'
time_created
'
=>
[
'gt'
=>
time
(),
'
@timestamp
'
=>
[
'gt'
=>
time
()
*
1000
,
]
]
],
...
...
This diff is collapsed.
Click to expand it.
Core/Feeds/Top/Repository.php
View file @
4499d84d
...
...
@@ -263,8 +263,8 @@ class Repository
$body
[
'query'
][
'function_score'
][
'query'
][
'bool'
][
'must'
][]
=
[
'range'
=>
[
'
time_created
'
=>
[
$time_created_upper
=>
(
int
)
(
$opts
[
'time_created_upper'
]
?:
time
())
,
'
@timestamp
'
=>
[
$time_created_upper
=>
(
(
int
)
(
$opts
[
'time_created_upper'
]
?:
time
()))
*
1000
,
],
],
];
...
...
This diff is collapsed.
Click to expand it.