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

fix: Replace deprecated function calls and private with public API #1519

Merged
merged 3 commits into from
Jan 17, 2024

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Jan 17, 2024

  • Replace deprecated execute with executeQuery or executeStatement.
  • Replace private OC\BackgroundJob\... with public OCP\BackgroundJob\...
  • Do not use private \OC::$server but use dependency injection

Copy link

cypress bot commented Jan 17, 2024

1 flaky test on run #1172 ↗︎

0 10 0 0 Flakiness 1

Details:

fix: Replace deprecated function calls and private with public API
Project: Activity Commit: 5114e4d5a9
Status: Passed Duration: 03:08 💡
Started: Jan 17, 2024 11:51 AM Ended: Jan 17, 2024 11:54 AM
Flakiness  cypress/e2e/sidebar.cy.ts • 1 flaky test • Run E2E

View Output

Test Artifacts
Check activity listing in the sidebar > Has favorite activity Test Replay Screenshots

Review all test suite changes for PR #1519 ↗︎

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
…r.json

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux merged commit e169a3a into master Jan 17, 2024
43 checks passed
@susnux susnux deleted the fix/deprecated branch January 17, 2024 17:24
Copy link
Member

@nickvergessen nickvergessen left a comment

Choose a reason for hiding this comment

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

💥 This breaks the digest cron job

use OCA\Activity\DigestSender;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\BackgroundJob\TimedJob;
Copy link
Member

Choose a reason for hiding this comment

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

{"Exception":"Error","Message":"Typed property OCP\\BackgroundJob\\Job::$time must not be accessed before initialization",

grafik

Copy link
Contributor

github-actions bot commented Feb 1, 2024

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants