-
-
Couldn't load subscription status.
- Fork 4.6k
fix(files_reminders): Lower disabled notifications app error to info #51760
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
Conversation
|
/backport to stable31 |
|
/backport to stable30 |
|
/backport to stable29 |
|
/backport to stable28 |
apps/files_reminders/lib/Listener/LoadAdditionalScriptsListener.php
Outdated
Show resolved
Hide resolved
d5c79a5 to
9e13e38
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.
But does files_reminders app make sense if notifications is disabled?
|
This would re-open #49231 as by default info messages are not shown. Why does cypress server enabled files_reminder without enabling notifications first? |
I am not sure, but probably not, hence the request for an error. |
Signed-off-by: Louis Chemineau <louis@chmn.me>
9e13e38 to
04d4945
Compare
Then either clone notifications or disable files_reminder? |
I think that server should not spam the logs when running without external applications. I removed the log and added a setup check, it makes more sense. |
224720f to
67d339c
Compare
Signed-off-by: Louis Chemineau <louis@chmn.me>
67d339c to
776c103
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.
Ok, why not.
Quite frankly I would be for adding a basic dependency system between apps. Nothing fancy, only preventing enabling if dep is not there, and prevent disabling if app is depended upon.
| } | ||
|
|
||
| public function getName(): string { | ||
| return $this->l10n->t('Files reminder'); |
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.
l10n not injected in constructor
|
|
||
| $context->registerEventListener(LoadAdditionalScriptsEvent::class, LoadAdditionalScriptsListener::class); | ||
|
|
||
| $context->registerSetupCheck(NeedNotificationsApp::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.
class not imported
This is spamming the cypress server logs.
Original: #49232
Or should we write a setup check instead?