e73adde5fb
Remove App dependency from Hook::callSingle
...
- This was causing a circular dependency with the logger_instance hook
2023-01-14 10:38:37 -05:00
fef10e8a57
Improve encapsulation
2023-01-11 22:00:29 +01:00
11a8bd17e3
Assure that deleted cat/keys are working as expected
...
- A deleted cache-key would delete a merged cache-key as well
- Deleting a key in the Model results in reloading the config to assure any value from underlying files
2023-01-11 21:53:34 +01:00
fd882abd80
Revert Cache delete() behavior to stable version
2023-01-11 21:10:59 +01:00
3966b58965
Only show line number if it's provided in System::callstack
...
- Address https://github.com/friendica/friendica/issues/12488#issuecomment-1377373973
2023-01-10 10:41:20 -05:00
4d5d8e5b64
Add line number to output in System::callstack
2023-01-09 16:06:22 -05:00
979672a3c1
Filter disabled addons with "null"
2023-01-08 02:49:56 +01:00
5ea50a9e81
Fix "null" addon list
2023-01-08 02:49:56 +01:00
2293ff6206
Add test for Addon failures
2023-01-08 02:49:56 +01:00
0429a4e429
Fix loading empty node.config.php
2023-01-08 02:49:56 +01:00
6aaf1ea5d4
Fix addons problem more elegant
2023-01-07 20:49:29 +01:00
9fb5b95b5e
Fix other foreach() troubles at Addon.php
2023-01-07 19:54:59 +01:00
6454c1dee7
Don't ksort() on null
2023-01-07 19:52:43 +01:00
6bd1740a94
omg .. wrong assertion ..
2023-01-07 15:49:55 +01:00
6e4e2c4a82
Fix warning text
2023-01-07 15:30:45 +01:00
6e0d16f22b
Add warning message in case node.config.php isn't writable
2023-01-07 15:16:55 +01:00
80e8f4aa34
Execute critical worker tasks, even if we're in daemon mode
2023-01-07 13:43:16 +01:00
5b2e02889e
Fix Update::run()
2023-01-06 17:50:56 +01:00
baf3225916
Apply Update::check() suggestions
2023-01-06 12:50:14 +01:00
c35fd68ec2
Adapt doc
2023-01-06 12:47:00 +01:00
Philipp
beb3d376b2
Apply suggestions from code review
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2023-01-06 12:46:06 +01:00
Philipp
05048d4abf
Update src/Core/Config/ValueObject/Cache.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2023-01-06 12:43:04 +01:00
Philipp
70704ccb19
Update src/Core/Update.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2023-01-06 12:42:56 +01:00
Philipp
9462bfa763
Update src/Core/Config/Util/ConfigFileManager.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2023-01-06 12:42:43 +01:00
b3772163d8
Add doc
2023-01-06 03:06:11 +01:00
ce8c820221
add description
2023-01-06 02:54:34 +01:00
Philipp
d53cb31869
Update src/Core/Config/Util/ConfigFileManager.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2023-01-06 02:16:35 +01:00
e14050491a
Config fixing
...
- unlock/close the `node.config.php` in every circumstances
2023-01-06 01:10:57 +01:00
5aa8e8adf1
Config fixings
...
- Delete now really overwrites static default/setting.config.php keys
- Delete now really overwrites static default/setting.config.php categories
- The Update::check() routine is added to different places
- Merge the given config file with the new config before writing
- Remove ConfigTransaction::get() because it's no more reliable
2023-01-06 01:03:00 +01:00
cdd57275eb
Some improvements
...
- Move $_SERVER into ConfigFileManager constructor
- Rename "creatConfigFileLoader" to "createConfigFileManager"
- Rename variable "loader" to "manager" in all tests
2023-01-06 01:03:00 +01:00
b4096251ba
Check 'config' table as fallback for migrations
2023-01-06 01:03:00 +01:00
Philipp
4b17d6f3bf
Update src/Core/Addon.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2023-01-04 23:12:41 +01:00
01403d15c4
sort addon array
2023-01-04 21:55:51 +01:00
13b234d279
Use addons config entries instead of the addon table
2023-01-04 21:55:51 +01:00
dce86be58e
Just commit config transactions if something changed
2023-01-04 19:55:22 +01:00
aabe39220d
Make flock writing easier
2023-01-04 08:16:40 +01:00
c057954896
Make BaseURL check/save transactional and make the whole process easier
2023-01-04 08:14:00 +01:00
17105cf7d1
Fix config read/write locking
2023-01-04 00:25:18 +01:00
176af67e88
Fix empty fetchResult curResult at Link::fetchMimeType (thx to Marco R.)
2023-01-03 21:06:16 +01:00
Philipp
beff759c82
Update src/Core/Config/Model/ConfigTransaction.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2023-01-03 17:39:32 +01:00
a46cd2fb36
Remove get() from config transaction interface
2023-01-03 17:26:48 +01:00
b439df892a
Apply suggestions
2023-01-03 17:24:05 +01:00
dd88d193b9
Escape single quotes and backslashes
2023-01-03 15:36:36 +01:00
65d79d4c93
Introduce ISetConfigValuesTransactional for transactional config behaviour
2023-01-03 14:22:07 +01:00
Philipp
ae1533e312
Apply suggestions from code review
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2023-01-03 14:22:06 +01:00
88b3effc18
Use toConfigValue in case of serialized, legacy data
2023-01-03 14:22:05 +01:00
1e574d5383
Refactor IManageConfigValues interface
2023-01-03 14:22:04 +01:00
d272e8c3c7
Remove unnecessary classes
2023-01-03 14:22:03 +01:00
b871e1d264
Introduce lightweight Config model
2023-01-03 14:22:02 +01:00
0f91d1cbde
Introduce ConfigFileManager for config files
2023-01-03 14:22:02 +01:00
fea4b202c1
Introduce ConfigFileTransformer for Config files
2023-01-03 14:22:02 +01:00
8bbf9e93c6
Remove dependency to the second parameter of XML::fromArray
2023-01-01 19:20:42 -05:00
Michael Vogel
6b914ccc0f
Merge pull request #12586 from MrPetovan/task/entitize-delivery-queue
...
Add Entity-Factory-Repository for deliver-queue
2023-01-02 00:56:13 +01:00
a744b8b56f
Replace direct database calls and anonymous arrays by repository calls and entity objects
2023-01-01 18:50:21 -05:00
f9676c9ed2
Convert Directory Search results into contact-looking records
...
- Address https://github.com/friendica/friendica/issues/12488#issuecomment-1368216631
2023-01-01 18:47:45 -05:00
f1bcf1ef66
Set the server status directly after transmission
2023-01-01 17:34:05 +00:00
12fac6e089
Close the database
2023-01-01 15:37:47 +00:00
360614d2cf
Merge remote-tracking branch 'upstream/develop' into inbox-gsid
2023-01-01 15:25:28 +00:00
fe897c7ef4
Increase the year
2023-01-01 15:14:45 +00:00
7307646cf8
Use server id on direct delivery
2023-01-01 15:13:44 +00:00
1874a32728
Happy New Year 2023!
2023-01-01 09:36:24 -05:00
319857edaa
Merge pull request #12583 from annando/delivery-queue
...
Bulk delivery added for all protocols
2022-12-31 11:36:54 -05:00
8e397b5849
Changes after review
2022-12-31 16:20:18 +00:00
259b99e6e9
Bulk delivery added for all protocols
2022-12-31 12:19:34 +00:00
b0898ada29
Add previous exception to unexpected worker exception logging
2022-12-30 22:25:19 -05:00
6e31b8d6a5
Avoid return type exeption in HTTPSignature->post
...
- Prefer passing the owner record array instead of just the uid
- +4/-7 calls to User::getOwnerDataById
2022-12-30 17:23:22 -05:00
a330a3c22d
Make PHP-CS happy again
2022-12-29 22:38:01 +01:00
86f80af432
Rename Interface
2022-12-29 22:37:12 +01:00
7c4c409060
Change key-value table
...
- Make "k" as primary key
- Added "updated_at"
2022-12-29 22:36:08 +01:00
Philipp
925c30280c
Apply suggestions from code review
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2022-12-29 22:12:02 +01:00
b227d65dfc
Replace worker_daemon_mode config entry with key-value entry
2022-12-29 21:53:57 +01:00
6b3265742a
Replace cron/worker "last" config entries with key-value entries
2022-12-29 21:53:57 +01:00
10f8631cd9
Replace PostUpdate key-value config entries with key-value pair entries
2022-12-29 21:53:56 +01:00
47764387b3
Introduce Key-Value Pair storage provider
2022-12-29 21:53:56 +01:00
8b1947bd78
Add Core\Logger to the introspection skip class list
...
- Make class list explicit to avoid confusion between similar class names
- Update skipped class string match to a safer "starts with" condition
2022-12-28 17:54:37 -05:00
9dbcbe0482
Remove extraneous Introspection->isTraceClassOrSkippedFunction second parameter
2022-12-28 17:51:07 -05:00
Philipp
e0fa557f18
Merge pull request #12539 from annando/forum-thread
...
Distribute forum comments only via the forum
2022-12-27 17:51:22 +01:00
ca0e3e3db7
Distribute forum comments only via the forum
2022-12-27 16:14:04 +00:00
5c332af844
Merge pull request #12527 from nupplaphil/feat/request_id
...
Introduce Request::getRequestId()
2022-12-26 16:07:35 -05:00
5584e7a4e5
Use X-REQUEST-ID for Logging
2022-12-26 21:18:04 +01:00
10864e50c7
Adapt Logger\Introspection
...
- Create an interface
- Add it as constructor parameter
2022-12-26 21:18:04 +01:00
bfc1c157f1
Adapt UserSession
...
- Move from App methods to UserSession methods
- Deprecate corresponding App methods
2022-12-26 21:18:04 +01:00
5298cd73b3
We now store the violation as well
2022-12-25 10:44:06 +00:00
43aa9cddc5
Trim terms of service rules before turning them to an array
2022-12-17 21:13:52 -05:00
07520719f7
Add documentation about the ACL autocomplete fields
2022-12-14 21:57:14 -05:00
baf2f7565a
Merge pull request #12390 from annando/fixes
...
Only reshare the author's posts on `MIRROR_NATIVE_RESHARE`
2022-12-11 15:05:47 -05:00
2f3f41ed9c
Merge remote-tracking branch 'origin/2022.12-rc' into fixes
2022-12-11 19:00:59 +00:00
Michael Vogel
884a265c5a
Some small fixes
2022-12-11 11:21:02 +01:00
3ce4a1fee4
Avoid error when image couldn't be fetched
2022-12-11 10:12:20 +00:00
22e2578b23
Merge pull request #12322 from annando/api-rules
...
API: Central way to fetch the system rules
2022-12-03 17:24:52 -05:00
16b76919c0
Rules added
2022-12-03 21:15:08 +00:00
b6f7d31036
API: Central way to fetch the system rules
2022-12-03 20:18:19 +00:00
fa80c69d94
Only fetch the processes if needed
2022-12-03 19:44:50 +00:00
Zane C. Bowers-Hadley
8f82fb9a22
now with g
2022-12-03 04:34:17 -06:00
Zane C. Bowers-Hadley
edaff99307
derp, minor fix
2022-12-03 04:31:04 -06:00
Zane C. Bowers-Hadley
f664208157
get the load average in a portable manner
2022-12-03 04:24:49 -06:00
ed7b175491
Catch worker argument type errors
...
- This marks the invalid worker queue item as completed instead of endlessly retrying it
- Address https://github.com/friendica/friendica/issues/11992#issuecomment-1327029331
2022-11-26 15:21:46 -05:00
6b555f64da
Add \ReturnTypeWillChange attribute to methods inherited from native interfaces
...
- Part of https://github.com/friendica/friendica/issues/12011#issuecomment-1321796513
2022-11-25 08:13:05 -05:00
53b46855ef
return "null"
2022-11-24 19:45:45 +00:00
6a434588a9
Silently quit on unfollow of invalid contacts
2022-11-24 05:17:14 +00:00
fe547b7851
Centralize config.admin_email management in Model\User
2022-11-14 17:02:42 -05:00
477bec1977
Fix some PHP8.1 issues if possible
2022-11-09 23:58:23 +01:00
561f22cdc4
Add title to homepage verified check mark
...
- Decrease log level for not found Memcached keys
2022-11-08 04:20:19 -05:00
23dda5d510
Deprecate default value parameters in Session and Config interfaces
...
- It is more efficient to use the null coalescing operator ?? that prevents the computation of the default value if the key has been found
2022-11-04 06:42:38 -04:00
842e51194e
Improved bulk delivery / don't redistribute activities
2022-11-03 04:03:39 +00:00
4ab260042c
Create new User\Import module class
...
- Merge Core\UserImport class in Module class
2022-11-02 11:27:31 -04:00
3865733e18
Move Model\Profile::getMyUrl to UserSessions
2022-10-30 10:49:47 -04:00
b5bc1b0844
Extend IHandleUserSessions
from IHandleSessions
and adapt classes
2022-10-23 20:41:17 +02:00
a9963dc54b
Remove Core\Session
2022-10-21 19:36:42 +02:00
44a9683008
Move "submanage" Session value into own methods
2022-10-21 19:35:34 +02:00
b3f9cef94a
UserSession class [3] - Refactor src/ files excluding Module/Model
2022-10-21 19:35:32 +02:00
0b66b6e0d5
Move Session "exists" and "expire" to new class
2022-10-20 20:27:35 +02:00
940619325d
Add SessionUsers class including tests
2022-10-20 20:27:34 +02:00
4930737cc4
Legacy "include" fragments have been removed
2022-10-20 04:21:00 +00:00
d3e167c77c
All references to boot.php are now removed
2022-10-19 20:38:25 +00:00
ee1acba9eb
old boot.php functions replaced in /src
2022-10-19 07:56:25 -04:00
d8fe8b1e8b
Merge pull request #12029 from annando/warning
...
Suppress warning on load check
2022-10-19 07:51:24 +02:00
196dda9487
Suppress warning on load check
2022-10-19 04:49:57 +00:00
4a2f67aa9a
Move Core\Session::clear() to DI::session()->clear()
2022-10-18 21:13:58 +02:00
a2eb0c7378
Move Core\Session::remove() to DI::session()->remove()
2022-10-18 21:13:28 +02:00
315ed3ed22
Remove unused Core\Session::setMultiple()
2022-10-18 21:12:48 +02:00
3a8bcb3fbf
Move Core\Session::set() to DI::session()->set()
2022-10-18 21:12:23 +02:00
dfb5792773
Remove unused Core\Session::pop() method
2022-10-18 21:11:19 +02:00
fb2b2f5c58
Remove unused Core\Session::create() method
2022-10-18 21:11:00 +02:00
7ac86e49d1
Move Core\Session::get() to DI::session()->get()
2022-10-18 21:10:37 +02:00
Roland Häder
26e0469de7
Merge branch 'develop' into rewrite/gravity-constants
2022-10-18 16:34:40 +02:00
6f68679375
The EOL constant is removed
2022-10-18 12:29:50 +00:00
abf52c0c11
Merge pull request #12012 from nupplaphil/feat/move_monolog
...
Move Monolog to Addons
2022-10-18 07:31:59 -04:00
ab9b60b9d2
Merge pull request #12014 from annando/usertosession
...
The user related functions moved to the session class
2022-10-18 07:30:21 -04:00
d43122c6d8
Check the readability before acessing /proc/loadavg
2022-10-18 08:02:55 +00:00
33ac39c335
The user related functions moved to the session class
2022-10-17 21:11:00 +00:00
497fc4e432
Move Monolog to Addons
2022-10-17 22:22:00 +02:00
fdfa1f8630
The notice and info have been moved
2022-10-17 18:55:22 +00:00
62a0d55fc8
The friendica constants have been moved to the app class
2022-10-17 10:37:48 +00:00
9bac8153ae
Some more constants are moved to their specific classes
2022-10-17 09:24:32 +00:00
018858934b
The priority is now a class constant
2022-10-17 05:49:55 +00:00
da66730e4f
Rewrite:
...
- moved constants GRAVITY_* from boot.php to Friendica\Model\Item
- also rewrote some array initialization:
From:
````
<?php
$arr = [];
$arr['foo'] = "FOO";
````
To:
````
<?php
$arr['foo'] = "FOO";
````
- added a few type-hints
2022-10-15 00:44:06 +02:00
a21c04d55d
Use "maxloadavg" when "worker_load_cooldown" is not defined
2022-10-10 06:01:07 +00:00
4c52772d84
Use class constant
2022-09-26 13:33:31 +00:00
5e51ab95fb
Merge remote-tracking branch 'upstream/2022.09-rc' into worker-timeout
2022-09-26 13:26:56 +00:00
3911c9450b
(Hopefully) SQL improvements
2022-09-24 17:56:07 +00:00
Michael Vogel
98a4c7a56c
We can now configure the worker runtime limits
2022-09-24 10:00:41 +02:00
97e5477bde
static cooldown moved to the cooldown function
2022-09-22 22:46:59 +00:00
e1341b6ad3
Fallback for load detection, additional checks
2022-09-22 05:45:42 +00:00
Michael Vogel
0fa281247d
More cooldown calls for worker processes
2022-09-21 21:03:07 +02:00
bdd80eeaaf
Fix wrong parameter name in Core\System::httpExit
2022-09-11 02:36:05 -04:00
075638c0ae
Pause the worker execution when the load is too high
2022-09-04 13:54:32 +00:00
cc43b567cb
Some changes after code review
2022-08-31 19:03:37 +00:00
757a5c2de9
Loglevels are adjusted
2022-08-30 19:45:30 +00:00
4a885a13a6
Remove poke feature
2022-08-09 14:55:55 -04:00