-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Start porting Admin audit to new events #32019
Conversation
d997c8b
to
ec11322
Compare
ec11322
to
fe22b7f
Compare
fe22b7f
to
6066303
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or am I missing something?
6066303
to
f460155
Compare
f460155
to
ad4fe1c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Half 🐘
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Questions
291eb93
to
e6e6a95
Compare
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
9a9326b
to
3f118f9
Compare
$ldapConfig = new Configuration($cycleData['prefix']); | ||
$cycleData['offset'] += (int)$ldapConfig->ldapPagingSize; | ||
$cycleData['offset'] += $ldapConfig->ldapPagingSize; |
Check notice
Code scanning / Psalm
PossiblyNullOperand
} | ||
$userManager = | ||
new Manager($ocConfig, $fs, $logger, $avatarM, new \OCP\Image(), | ||
$coreUserManager, $coreNotificationManager, $shareManager); | ||
$connector = new Connection($this->ldap, $configPrefix); | ||
$access = new Access($connector, $this->ldap, $userManager, new Helper($ocConfig, \OC::$server->getDatabaseConnection()), $ocConfig, $coreUserManager, $logger); | ||
$access = new Access($connector, $this->ldap, $userManager, new Helper($ocConfig, \OC::$server->getDatabaseConnection()), $ocConfig, $coreUserManager, $logger, $dispatcher); |
Check notice
Code scanning / Psalm
PossiblyUndefinedVariable
@@ -83,12 +84,13 @@ private function addAccess($configPrefix) { | |||
$coreNotificationManager = \OC::$server->getNotificationManager(); | |||
$shareManager = \OC::$server->get(IManager::class); | |||
$logger = \OC::$server->get(LoggerInterface::class); | |||
$dispatcher = \OC::$server->get(IEventDispatcher::class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make $dispatcher static, otherwise it will be null on the next runs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? Is that specific to IEventDispatcher?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the local var, look couple lines above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok understood, nice catch.
Based on work from #32019 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
I've pulled most of this in #37193, apart from the heavier refactoring from |
Based on work from #32019 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Closing here in favor of #37193 |
Based on work from #32019 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Based on work from #32019 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Based on work from #32019 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Based on work from #32019 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
No description provided.