Skip to content

make failure to load app commands non-fatal - #42811

Merged
icewind1991 merged 1 commit into
masterfrom
app-command-load-non-fatal
Feb 2, 2024
Merged

make failure to load app commands non-fatal#42811
icewind1991 merged 1 commit into
masterfrom
app-command-load-non-fatal

Conversation

@icewind1991

Copy link
Copy Markdown
Member

Currently if a command fails to load the occ commands fails with a fatal error. This also prevents using occ app:disable to disable the offending command.

This instead catches the error, logs it and continues loading the commands from other apps.

@icewind1991icewind1991 added the 3. to review Waiting for reviews label Jan 15, 2024
@icewind1991icewind1991 added this to the Nextcloud 29 milestone Jan 15, 2024
@icewind1991
icewind1991 requested review from a team, ArtificialOwl, blizzz and nfebe and removed request for a teamJanuary 15, 2024 15:30
Comment threadlib/private/Console/Application.php Outdated
@icewind1991
icewind1991force-pushed the app-command-load-non-fatal branch from ff5caf0 to 7648b7aCompareJanuary 16, 2024 14:33
@icewind1991

Copy link
Copy Markdown
MemberAuthor

/backport to stable28

@icewind1991

Copy link
Copy Markdown
MemberAuthor

/backport to stable27

Signed-off-by: Robin Appelman <robin@icewind.nl>
@blizzz
blizzzforce-pushed the app-command-load-non-fatal branch from 7648b7a to 860caa0CompareFebruary 2, 2024 12:47
@blizzzblizzz added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Feb 2, 2024
@icewind1991
icewind1991 merged commit 20aa86f into masterFeb 2, 2024
@icewind1991
icewind1991 deleted the app-command-load-non-fatal branch February 2, 2024 15:00
@blizzzblizzz mentioned this pull request Mar 5, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finish

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@icewind1991@blizzz@artonge@sorbaugh@come-nc