Skip to content
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

Migrate federation application to LoggerInterface #39018

Merged
merged 1 commit into from Jun 29, 2023

Conversation

come-nc
Copy link
Contributor

@come-nc come-nc commented Jun 26, 2023

See #32127

Migrate federation application from ILogger to LoggerInterface

Checklist

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc come-nc added the 3. to review Waiting for reviews label Jun 26, 2023
@come-nc come-nc self-assigned this Jun 26, 2023
@come-nc come-nc requested review from a team, ArtificialOwl, icewind1991 and Fenn-CS and removed request for a team June 26, 2023 15:22
@come-nc come-nc mentioned this pull request Jun 26, 2023
24 tasks
@come-nc come-nc added this to the Nextcloud 28 milestone Jun 26, 2023
*/
public function execute(IJobList $jobList, ILogger $logger = null) {
public function start(IJobList $jobList): void {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a public method, just double checking to ensure you have checked for references in other parts of the code?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the parent class OCP\BackgroundJob\Job is migrating from execute to start since 25, I think we should even deprecate execute since it’s always a problem for migrating away from ILogger.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there an issue for that? If not I could create one and deprecate it rn.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I just saw that execute is already deprecated in IJob interface.
Maybe it would still be a good idea to mark it as deprecated in Job class as well.

Copy link
Contributor

@Fenn-CS Fenn-CS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good otherwise.

@come-nc come-nc merged commit c7ea6ce into master Jun 29, 2023
36 of 37 checks passed
@come-nc come-nc deleted the fix/migrate-to-loggerinterface-federation branch June 29, 2023 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants