Skip to content

Conversation

@artonge
Copy link
Contributor

@artonge artonge commented Mar 27, 2025

This is spamming the cypress server logs.

Original: #49232

Or should we write a setup check instead?

@artonge artonge requested a review from a team as a code owner March 27, 2025 15:29
@artonge artonge requested review from Pytal, icewind1991, nfebe and sorbaugh and removed request for a team March 27, 2025 15:29
@artonge artonge self-assigned this Mar 27, 2025
@artonge artonge added 3. to review Waiting for reviews php Pull requests that update Php code tests Related to tests labels Mar 27, 2025
@artonge artonge added this to the Nextcloud 32 milestone Mar 27, 2025
@artonge
Copy link
Contributor Author

artonge commented Mar 27, 2025

/backport to stable31

@artonge
Copy link
Contributor Author

artonge commented Mar 27, 2025

/backport to stable30

@artonge
Copy link
Contributor Author

artonge commented Mar 27, 2025

/backport to stable29

@artonge
Copy link
Contributor Author

artonge commented Mar 27, 2025

/backport to stable28

@artonge artonge force-pushed the artonge/fix/make_error_a_info branch from d5c79a5 to 9e13e38 Compare March 31, 2025 17:38
@artonge artonge requested review from come-nc and susnux April 1, 2025 10:10
Copy link
Contributor

@come-nc come-nc left a 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?

@come-nc
Copy link
Contributor

come-nc commented Apr 1, 2025

This would re-open #49231 as by default info messages are not shown.

Why does cypress server enabled files_reminder without enabling notifications first?

@artonge
Copy link
Contributor Author

artonge commented Apr 1, 2025

Why does cypress server enabled files_reminder without enabling notifications first?

notifications is bundled, files_reminder is in server.

But does files_reminders app make sense if notifications is disabled?

I am not sure, but probably not, hence the request for an error.

Signed-off-by: Louis Chemineau <louis@chmn.me>
@artonge artonge force-pushed the artonge/fix/make_error_a_info branch from 9e13e38 to 04d4945 Compare April 1, 2025 12:34
@come-nc
Copy link
Contributor

come-nc commented Apr 1, 2025

Why does cypress server enabled files_reminder without enabling notifications first?

notifications is bundled, files_reminder is in server.

Then either clone notifications or disable files_reminder?

@artonge
Copy link
Contributor Author

artonge commented Apr 1, 2025

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.

@artonge artonge force-pushed the artonge/fix/make_error_a_info branch from 224720f to 67d339c Compare April 1, 2025 13:18
Signed-off-by: Louis Chemineau <louis@chmn.me>
@artonge artonge force-pushed the artonge/fix/make_error_a_info branch from 67d339c to 776c103 Compare April 1, 2025 13:20
@artonge artonge requested a review from come-nc April 1, 2025 15:03
Copy link
Contributor

@come-nc come-nc left a 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');
Copy link
Contributor

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);
Copy link
Contributor

Choose a reason for hiding this comment

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

class not imported

@nextcloud-bot nextcloud-bot mentioned this pull request Aug 19, 2025
@skjnldsv skjnldsv modified the milestones: Nextcloud 32, Nextcloud 33 Sep 28, 2025
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 php Pull requests that update Php code tests Related to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants