Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Learn GitLab
New
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Dependency List
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
174
Issues
174
List
Boards
Labels
Service Desk
Milestones
Merge Requests
43
Merge Requests
43
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
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
Commits
4a12a7d8
Commit
4a12a7d8
authored
1 hour ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(chore): remove legacy feed dispatcher
parent
3f81d85a
master
No related merge requests found
Pipeline
#72299962
passed with stages
in 11 minutes and 30 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
82 deletions
+2
-82
Feeds.php
Core/Blogs/Delegates/Feeds.php
+1
-11
FeedsSpec.php
Spec/Core/Blogs/Delegates/FeedsSpec.php
+0
-59
ElggEntity.php
classes/ElggEntity.php
+0
-11
minds.conf
containers/php-runners/minds.conf
+1
-1
No files found.
Core/Blogs/Delegates/Feeds.php
View file @
4a12a7d8
...
...
@@ -68,17 +68,7 @@ class Feeds
*/
public
function
dispatch
(
Blog
$blog
)
{
if
(
in_array
(
$blog
->
getAccessId
(),
[
2
,
1
,
-
1
]))
{
$this
->
queue
->
setQueue
(
'FeedDispatcher'
)
->
send
([
'guid'
=>
$blog
->
getGuid
(),
'owner_guid'
=>
$blog
->
getOwnerGuid
(),
'type'
=>
$blog
->
getType
(),
'subtype'
=>
$blog
->
getSubtype
(),
'super_subtype'
=>
''
,
]);
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
Spec/Core/Blogs/Delegates/FeedsSpec.php
View file @
4a12a7d8
...
...
@@ -83,65 +83,6 @@ class FeedsSpec extends ObjectBehavior
->
shouldNotThrow
();
}
function
it_should_dispatch
(
Blog
$blog
)
{
$blog
->
getAccessId
()
->
shouldBeCalled
()
->
willReturn
(
2
);
$blog
->
getGuid
()
->
shouldBeCalled
()
->
willReturn
(
5000
);
$blog
->
getOwnerGuid
()
->
shouldBeCalled
()
->
willReturn
(
1000
);
$blog
->
getType
()
->
shouldBeCalled
()
->
willReturn
(
'object'
);
$blog
->
getSubtype
()
->
shouldBeCalled
()
->
willReturn
(
'blog'
);
$this
->
queue
->
setQueue
(
'FeedDispatcher'
)
->
shouldBeCalled
()
->
willReturn
(
$this
->
queue
);
$this
->
queue
->
send
([
'guid'
=>
5000
,
'owner_guid'
=>
1000
,
'type'
=>
'object'
,
'subtype'
=>
'blog'
,
'super_subtype'
=>
''
,
])
->
shouldBeCalled
()
->
willReturn
(
null
);
$this
->
dispatch
(
$blog
)
->
shouldNotThrow
();
}
function
it_should_not_dispatch_if_access_id_0
(
Blog
$blog
)
{
$blog
->
getAccessId
()
->
shouldBeCalled
()
->
willReturn
(
0
);
$this
->
queue
->
send
(
Argument
::
cetera
())
->
shouldNotBeCalled
();
$this
->
dispatch
(
$blog
)
->
shouldNotThrow
();
}
function
it_should_get_feed_items
(
Blog
$blog
)
...
...
This diff is collapsed.
Click to expand it.
classes/ElggEntity.php
View file @
4a12a7d8
...
...
@@ -1090,17 +1090,6 @@ abstract class ElggEntity extends ElggData implements
$db
->
insert
(
$index
,
$data
);
}
if
(
in_array
(
$this
->
access_id
,
array
(
2
,
-
2
,
1
)))
{
Minds\Core\Queue\Client
::
build
()
->
setQueue
(
"FeedDispatcher"
)
->
send
(
array
(
"guid"
=>
$this
->
guid
,
"owner_guid"
=>
$this
->
owner_guid
,
"type"
=>
$this
->
type
,
"subtype"
=>
$this
->
subtype
,
"super_subtype"
=>
$this
->
super_subtype
));
}
if
(
!
$new
&&
$this
->
access_id
!=
ACCESS_PUBLIC
){
$remove
=
array
(
"
$this->type
"
,
"
$this->type
:
$this->subtype
"
,
"
$this->type
:
$this->super_subtype
"
);
// foreach($remove as $index)
...
...
This diff is collapsed.
Click to expand it.
containers/php-runners/minds.conf
View file @
4a12a7d8
...
...
@@ -23,7 +23,7 @@ process_name=%(program_name)s_%(process_num)02d
command
=
php
/
var
/
www
/
Minds
/
engine
/
cli
.
php
QueueRunner
run
--
runner
=
FeedDispatcher
autostart
=
true
autorestart
=
true
numprocs
=
2
0
numprocs
=
0
redirect_stderr
=
true
stdout_logfile
=/
dev
/
stdout
stdout_logfile_maxbytes
=
0
...
...
This diff is collapsed.
Click to expand it.
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