Commit Graph

26 Commits

Author SHA1 Message Date
Andrew Dolgov
fc059fc0fc
expose scheduled tasks to plugins, switch cache_starred_images plugin to use them instead of housekeeping hook 2025-05-04 17:50:03 +03:00
Andrew Dolgov
d5d15072e1
move scheduled tasks to a separate class, add some try-catches, improve/shorten logging and descriptions 2025-05-02 22:51:07 +03:00
Andrew Dolgov
b30f8c93a0
rename article mark/publish hooks 2025-05-02 21:27:50 +03:00
Andrew Dolgov
dc6ea08ca4
add workaround for due tasks because housekeeping is not run every minute, fix last_run not updated to NOW() in the db 2025-05-02 14:03:45 +03:00
Andrew Dolgov
a51c1d5176
fix tasks_run never incremented 2025-05-02 13:18:48 +03:00
Andrew Dolgov
a268f52de6
record task duration in seconds 2025-05-02 10:23:30 +03:00
Andrew Dolgov
6a40940ad6
split housekeeping jobs to separate scheduled tasks on longer cooldown intervals, add table to record task execution timestamps, bump schema 2025-05-02 10:17:13 +03:00
Andrew Dolgov
5f70e41118
add plugin hooks invoked when articles get un/marked or un/published 2025-05-01 22:36:33 +03:00
wn_
5c2c95a897 Remove unused 'PluginHost::HOOK_FORMAT_ARTICLE_CDM'.
PHPStan 'method.notFound'.
2025-04-27 14:53:53 +00:00
wn_
6f8f1b30d5 minor PHPDoc cleanup in PluginHost 2024-12-15 16:41:45 +00:00
wn_
cfbbb9d714 Clean up some virtual feed stuff in PluginHost.
Among other things, this makes 'PluginHost->add_feed()' return false if the feed was not added.
2024-12-15 16:09:42 +00:00
wn_
18b17cbc83 Revert some stuff based upon feedback 2024-12-15 13:39:54 +00:00
wn_
57dd754e07 Use a native DNF type for 'PluginHost->get_feed_handler()'. 2024-12-14 12:26:59 +00:00
wn_
1742fb65c5 Use the spread operator instead of 'array_merge' in more places.
PHP 8.1 introduced support for merging string-key arrays (last array with a wins).
2024-12-14 12:26:59 +00:00
wn_
abcd0e8ba2 Use native union types in most places. 2024-11-23 17:43:24 +00:00
wn_
5a200755b8 Move 'IVirtualFeed' checks into 'PluginHost::get_feed_handler()'. 2024-11-12 03:49:58 +00:00
wn_
dca2ae60a1 Remove some PHPStan ignores and make others rule-specific. 2024-11-12 03:38:45 +00:00
wn_
a784305cc7 Address PHPStan findings as of 2.0.1 2024-11-12 03:15:53 +00:00
Andrew Dolgov
884fd92f13
drop opentelemetry 2024-10-01 16:00:34 +03:00
wn_
9dd4102c7f Replace basic 'isset()' cases with the null coalescing operator. 2024-08-04 15:42:11 +00:00
wn_
de00a09538 Make implicit nullable parameters explicitly nullable.
This is to address a deprecation planned for PHP 8.4.

https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
2024-03-26 16:43:39 +00:00
Andrew Dolgov
81f3139992
add HOOK_VALIDATE_SESSION 2024-02-21 22:13:23 +03:00
Andrew Dolgov
5a7c5b8249
Merge branch 'master' of gitlab.tt-rss.org:tt-rss/tt-rss 2023-10-27 22:07:41 +03:00
Andrew Dolgov
5920ac814c
replace some dirname horrors with a separate unit-tested method 2023-10-27 22:07:28 +03:00
wn_
c7e1caf223 Fix class names in some more places.
Related to the PSR-4 move via 865ecc8796
2023-10-26 15:01:43 +00:00
Andrew Dolgov
865ecc8796
move to psr-4 autoloader 2023-10-25 12:55:09 +03:00