| 1468a128 | 01-Dec-2023 |
Andreas Gohr <andi@splitbrain.org> |
Fix first set of API tests |
| 42e66c7a | 30-Nov-2023 |
Andreas Gohr <andi@splitbrain.org> |
First go at refactoring the API mechanisms
This introduces an ApiCall class that wraps around the actual method that produces the result. This replaces various loose array structures that provided t
First go at refactoring the API mechanisms
This introduces an ApiCall class that wraps around the actual method that produces the result. This replaces various loose array structures that provided the meta information before.
The ApiCall streamlines the aggregation of meta information between core and plugin methods. Now all data is produced by Reflection based introspection. Certain aspects can be overridden if needed. See ApiCore::getRemoteInfo() for examples
This change removes the _getMethods() method from remote plugins and introduces a getMethods() method. The two are NOT compatible as the latter now returns a list of ApiCalls. However when looking at the existing plugins, it seems that _getMethods() was nearly 100% obsolete with the Reflection based default implementation. So most plugins will not be affected at all. Some might now export one or two more methods than before because of poor visibility settings (eg. not declaring private/protected methods as such).
This change removes the RPC_CALL_ADD hook. Only a single plugin ever implemented it. I'm not sure what this hook was supposed to do anyway. Being able to declare arbitrarily named API endpoints seems wrong to me anyway.
The new ApiCall now also supports passing named instead of positional parameters. This will open up a new opportunity to get a proper openapi spec running.
Next step is fixing the tests.
show more ...
|
| cd89aff0 | 07-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
fix IP tests
to accommodate the change introduced in e6d2a179db8ba3d368f5d453201de9ce41502a4f |
| e6d2a179 | 06-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
use private IP addresses in tests |
| 9b944650 | 07-Dec-2023 |
Anna Dabrowska <dabrowska@cosmocode.de> |
Upgrade rector to 0.18.12
Two classes in DokuWiki's skip rules were removed from rector in 0.18.12 |
| c46f56cc | 30-Nov-2023 |
m-martin-78 <138781920+m-martin-78@users.noreply.github.com> |
Update init_checkssl.test.php |
| 3e383dbb | 28-Nov-2023 |
m-martin-78 <138781920+m-martin-78@users.noreply.github.com> |
update tests to match new is_ssl behaviour |
| 108f17cf | 13-Nov-2023 |
Andreas Gohr <andi@splitbrain.org> |
updated devel dependencies |
| 1fc5061d | 02-Nov-2023 |
Andreas Gohr <andi@splitbrain.org> |
skip CompleteMissingIfElseBracketRector
We like our one-line guardians.
See discussion in https://github.com/dokuwiki/dokuwiki/pull/4097#issuecomment-1788608355 https://github.com/dokuwiki/dokuwiki
skip CompleteMissingIfElseBracketRector
We like our one-line guardians.
See discussion in https://github.com/dokuwiki/dokuwiki/pull/4097#issuecomment-1788608355 https://github.com/dokuwiki/dokuwiki/pull/4097#issuecomment-1789826392
show more ...
|
| 403d6a9f | 26-Apr-2023 |
Andreas Gohr <andi@splitbrain.org> |
added tests for auth token handling |
| d87b6645 | 30-Sep-2023 |
Andreas Gohr <andi@splitbrain.org> |
removed obsolete tests
These tests have been moved to the File namespace.
|
| 42411fe9 | 30-Sep-2023 |
Andreas Gohr <andi@splitbrain.org> |
strip any trailing dots when resolving IDs
fixes #4072 |
| 72d8810b | 24-Sep-2023 |
Gerrit Uitslag <klapinklapin@gmail.com> |
Fix unit test, little refactor |
| 71951841 | 24-Sep-2023 |
Gerrit Uitslag <klapinklapin@gmail.com> |
deprecate parseChangelogLine()
It was already replace in code, replaced in unit test as well. |
| 9420a794 | 18-Sep-2023 |
Andreas Gohr <andi@splitbrain.org> |
updated the _test/README |
| 29249904 | 18-Sep-2023 |
Andreas Gohr <andi@splitbrain.org> |
remove obsolete fetchphpunit script
It's now installed via composer
|
| 2ab82b8e | 18-Sep-2023 |
Andreas Gohr <andi@splitbrain.org> |
add devel tools as composer scripts |
| 97170572 | 18-Sep-2023 |
Andreas Gohr <andi@splitbrain.org> |
add development tools to _test/composer.json |
| 7936024d | 18-Sep-2023 |
Andreas Gohr <andi@splitbrain.org> |
remove checked-in _test/vendor folder |
| fa4b9dc1 | 13-Sep-2023 |
Andreas Gohr <andi@splitbrain.org> |
do not run phpcs and phpcbf on any vendor dirs
This is mostly relevant to plugin workflows. |
| bac51761 | 04-Sep-2023 |
Andreas Gohr <andi@splitbrain.org> |
rector env var might be empty -> ignore |
| 26586410 | 03-Sep-2023 |
Andreas Gohr <andi@splitbrain.org> |
allow overriding the minimum PHP release for rector
By setting the environment variable RECTOR_MIN_PHP the supported minimum PHP release can be set. This is needed to make plugin changes compatible
allow overriding the minimum PHP release for rector
By setting the environment variable RECTOR_MIN_PHP the supported minimum PHP release can be set. This is needed to make plugin changes compatible with DokuWiki stable.
show more ...
|
| 95078f23 | 02-Sep-2023 |
Andreas Gohr <andi@splitbrain.org> |
apply code sniffer rules to inc/parser as well |
| 257be26c | 31-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
code style: multi statements |
| d4f83172 | 31-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
code style: line breaks |