Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | tests: Set db charset from test config.tests/test-db-setup-wip | Harald Eilertsen | 2023-12-28 | 2 | -3/+11 |
| | | | | | | | | MySql and PostgreSQL does of course have different names for charsets, so we have to explicitly define them in the respective phpunit.xml files. This also allows testing with other charsets if there should be a need for that, though I think utf8 should cover everything and then some. | ||||
* | ci: stop on error and show verbose output. | Harald Eilertsen | 2023-12-28 | 1 | -1/+1 |
| | |||||
* | ci: Typo in CI test config env vars. | Harald Eilertsen | 2023-12-28 | 1 | -1/+1 |
| | |||||
* | ci: Use mariadb-client instead, bookworm don't ship mysql-client. | Harald Eilertsen | 2023-12-28 | 1 | -1/+1 |
| | |||||
* | ci: Add mysql client to the container image. | Harald Eilertsen | 2023-12-28 | 1 | -1/+1 |
| | |||||
* | ci: Enable db testing in CI. | Harald Eilertsen | 2023-12-28 | 2 | -17/+53 |
| | |||||
* | tests: Reenable coverage reporting in test config. | Harald Eilertsen | 2023-12-28 | 1 | -0/+9 |
| | |||||
* | tests: Set proper env vars in phpunit config. | Harald Eilertsen | 2023-12-28 | 1 | -9/+6 |
| | |||||
* | tests: Specify db type as string in env vars. | Harald Eilertsen | 2023-12-28 | 1 | -1/+9 |
| | |||||
* | tests: Remove some annotations that caused warnings. | Harald Eilertsen | 2023-12-28 | 1 | -6/+1 |
| | |||||
* | Merge branch 'dev' into tests/test-db-setup-wip | Harald Eilertsen | 2023-12-27 | 9 | -81/+198 |
|\ | |||||
| * | do not double process quoted strings | Mario | 2023-12-21 | 1 | -0/+5 |
| | | |||||
| * | changelog | Mario | 2023-12-20 | 1 | -0/+1 |
| | | |||||
| * | changelog | Mario | 2023-12-20 | 1 | -0/+5 |
| | | |||||
| * | Revert "changelog" | Mario | 2023-12-20 | 6 | -36/+26 |
| | | | | | | | | This reverts commit 3aefe23184c25c1fc0865313d13902cabfb934d3. | ||||
| * | changelog | Mario | 2023-12-20 | 6 | -26/+36 |
| | | |||||
| * | move App::$install check to Config::Load() as suggested by Harald | Mario | 2023-12-20 | 1 | -7/+2 |
| | | |||||
| * | Merge branch 'fix-config-deserialization' into 'dev' | Mario | 2023-12-20 | 2 | -6/+76 |
| |\ | | | | | | | | | | | | | Fix deserialization of config values broken by 69266cd6. See merge request hubzilla/core!2077 | ||||
| | * | Fix deserialization of config values broken by 69266cd6. | Harald Eilertsen | 2023-12-17 | 2 | -6/+76 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This should fix issue #1828. This patch makes it explicit that we store arrays in the config as json encoded arrays, while we allow both json encoded and PHP serialized arrays to be deserialized correctly. Unless it's a brand new install, the existing data in the database will be PHP serialized. I've also added a hardening measure in case we fall back to PHP unserialize, making sure we're not vulnerable to a PHP Object Injection attack. This means that deserializing arrays containing PHP objects will no longer work, but afaict we never do that anyways, so I don't think that should break anything. | ||||
| * | | Merge branch 'extend-siteinfo' into 'dev' | Mario | 2023-12-20 | 2 | -0/+22 |
| |\ \ | | | | | | | | | | | | | | | | | Add active addons and blocked sites to siteinfo (html) See merge request hubzilla/core!2079 | ||||
| | * | | Add active addons and blocked sites to siteinfo (html) | Harald Eilertsen | 2023-12-18 | 2 | -0/+22 |
| |/ / | | | | | | | | | | | | | | | | | | | | | | This adds information about addons activated on the hub, as well as which other sites this hub won't federate with in the HTML version of siteinfo. Based on suggestions by @rockyiii@huby.infozoo.de. | ||||
| * | | use reqiure_once() - second part of issue #1827 | Mario | 2023-12-17 | 1 | -1/+1 |
| | | | |||||
| * | | fix loop as described in issue #1827 | Mario | 2023-12-17 | 1 | -0/+6 |
| | | | |||||
| * | | changelog | Mario | 2023-12-17 | 1 | -0/+1 |
| | | | |||||
| * | | Merge branch 'translations-nb_no' into 'dev' | Mario | 2023-12-17 | 2 | -72/+76 |
| |\ \ | | | | | | | | | | | | | | | | | More translations for Norwegian Bokmål (nb_NO) See merge request hubzilla/core!2075 | ||||
| | * | | More translations for Norwegian Bokmål (nb_NO) | Harald Eilertsen | 2023-12-16 | 2 | -72/+76 |
| | | | | |||||
| * | | | changelog | Mario | 2023-12-17 | 1 | -0/+8 |
| | |/ | |/| | |||||
* | | | tests: Enable and fix incomplete tests. | Harald Eilertsen | 2023-12-27 | 2 | -25/+50 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the tests now have access to the database, there's no longer any need for mocking or stubbing functions that uses the db. As the codebase relies on global state and static class functions (aka classes as namespace), stubbing these are not straight forward and complicates the test code, and reliability. With access to the database, we can now perform these tests by populating the db tables with the content relevant for the test, and perform the actual tests to verify that the code behaves as expected given the db content we've created. In the tests I enabled in this patch, I've explicitly set the expected configuration in the db using the available API's in the code itself. While it would also be possible to add more permanent fixtures to set the db in the expected state, doing it dynamically like this has some advantages. It allows very specific setups for the test that we may not want to be set of every test. The photo factory test to ignore Image Magick is a good example of that. We may want to also test the opposite, that Image Magick is selected if the flag is not set (and the extention is available.) Also, the fixtures themselves are not more informative than the table column names they contain, so comments would be needed to document both the content and how it fits into the test environment. With the more dynamic approach the test code becomes more self documenting. | ||||
* | | | Fix some deprecation warnings. | Harald Eilertsen | 2023-12-26 | 2 | -1/+8 |
| | | | |||||
* | | | Merge branch 'dev' into tests/test-db-setup-wip | Harald Eilertsen | 2023-12-16 | 618 | -16627/+73757 |
|\| | | |||||
| * | | check return from Config::Load() and retry on failure plus cleanup | Mario Vavti | 2023-12-14 | 1 | -30/+57 |
| |/ | |||||
| * | return if we could not fetch the author | Mario Vavti | 2023-12-14 | 1 | -8/+7 |
| | | |||||
| * | Merge branch 'dev' of https://framagit.org/hubzilla/core into dev | Mario Vavti | 2023-12-14 | 1 | -1/+1 |
| |\ | |||||
| | * | typo | Mario | 2023-12-13 | 1 | -1/+1 |
| | | | |||||
| * | | add the app terms before syncing - otherwise the terms will be reset at the ↵ | Mario Vavti | 2023-12-08 | 1 | -0/+10 |
| |/ | | | | | | | other end | ||||
| * | if it is not an array do not attempt count() | Mario Vavti | 2023-12-08 | 1 | -1/+1 |
| | | |||||
| * | typo | Mario | 2023-12-06 | 1 | -1/+1 |
| | | |||||
| * | changelog | Mario | 2023-12-06 | 1 | -0/+5 |
| | | |||||
| * | more issue #1820 | Mario | 2023-12-06 | 1 | -0/+1 |
| | | |||||
| * | css fixes | Mario | 2023-12-04 | 1 | -2/+3 |
| | | |||||
| * | require acl_selectors.php - fix issue #1820 | Mario | 2023-11-30 | 1 | -0/+1 |
| | | |||||
| * | changelog | Mario | 2023-11-27 | 1 | -2/+6 |
| | | |||||
| * | Merge branch 'dev' into 'dev' | Mario | 2023-11-27 | 2 | -4/+8 |
| |\ | | | | | | | | | | | | | Update doubleleft.css and doubleright.css according to v.8.8 default.css See merge request hubzilla/core!2074 | ||||
| | * | Update doubleleft.css and doubleright.css according to v.8.8 default.css | zlaxy | 2023-11-27 | 2 | -4/+8 |
| |/ | |||||
| * | changelog | Mario | 2023-11-25 | 1 | -1/+1 |
| | | |||||
| * | update changelog | Mario | 2023-11-24 | 1 | -0/+65 |
| | | |||||
| * | like in get_cached_actor() also remove fragment in get_actor() | Mario | 2023-11-23 | 1 | -0/+3 |
| | | |||||
| * | case insensitive digest algo | Mario | 2023-11-22 | 1 | -1/+2 |
| | | |||||
| * | remove follow (does not make any sense to add follow link of the logged in ↵ | Mario | 2023-11-21 | 1 | -1/+1 |
| | | | | | | | | channel), add startpage | ||||
| * | add additional observer and channel info to nav if applicable | Mario | 2023-11-21 | 1 | -6/+18 |
| | |