Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MaarchCourrier
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maarch
MaarchCourrier
Commits
ada3ca71
Verified
Commit
ada3ca71
authored
4 years ago
by
Florian Azizian
Browse files
Options
Downloads
Patches
Plain Diff
FEAT #13679 TIE 3:30 continue refactoring notification scripts diffusionTypesController
parent
036348e2
No related branches found
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/notifications/batch/process_event_stack.php
+2
-2
2 additions, 2 deletions
modules/notifications/batch/process_event_stack.php
src/app/notification/controllers/DiffusionTypesController.php
+435
-495
435 additions, 495 deletions
...app/notification/controllers/DiffusionTypesController.php
with
437 additions
and
497 deletions
modules/notifications/batch/process_event_stack.php
+
2
−
2
View file @
ada3ca71
...
...
@@ -62,14 +62,14 @@ while ($state != 'END') {
foreach
(
$events
as
$event
)
{
Bt_writeLog
([
'level'
=>
'INFO'
,
'message'
=>
"Getting recipients using diffusion type '"
.
$notification
[
'diffusion_type'
]
.
"'"
]);
// Diffusion type specific recipients
$recipients
=
\Notification\controllers\DiffusionTypesController
::
get
Recipients
([
'request'
=>
'recipients'
,
'notification'
=>
$notification
,
'event'
=>
$event
]);
$recipients
=
\Notification\controllers\DiffusionTypesController
::
get
ItemsToNotify
([
'request'
=>
'recipients'
,
'notification'
=>
$notification
,
'event'
=>
$event
]);
// Diffusion type specific res_id
Bt_writeLog
([
'level'
=>
'INFO'
,
'message'
=>
"Getting document ids using diffusion type '"
.
$notification
[
'diffusion_type'
]
.
"'"
]);
$res_id
=
false
;
if
(
$event
[
'table_name'
]
==
$coll_table
||
$event
[
'table_name'
]
==
$coll_view
)
{
$res_id
=
$event
[
'record_id'
];
}
else
{
$res_id
=
\Notification\controllers\DiffusionTypesController
::
get
Recipients
([
'request'
=>
'res_id'
,
'notification'
=>
$notification
,
'event'
=>
$event
]);
$res_id
=
\Notification\controllers\DiffusionTypesController
::
get
ItemsToNotify
([
'request'
=>
'res_id'
,
'notification'
=>
$notification
,
'event'
=>
$event
]);
}
$event
[
'res_id'
]
=
$res_id
;
...
...
This diff is collapsed.
Click to expand it.
src/app/notification/controllers/DiffusionTypesController.php
+
435
−
495
View file @
ada3ca71
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