Skip to content

Commit

Permalink
[MAINTENANCE] Prepare Release 6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-meyer committed Nov 7, 2024
1 parent 7258dcc commit c10482d
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 142 deletions.
31 changes: 13 additions & 18 deletions Build/Test/runTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Options:
- functional: PHP functional tests
- unit (default): PHP unit tests
-t <|11.5|12.4>
-t <11.5|12.4>
Only with -s composerInstall
Specifies which TYPO3 version to install. When unset, installs either the packages from
composer.lock, or the latest version otherwise (default behavior of "composer install").
Expand All @@ -97,34 +97,29 @@ Options:
- mariadb (default): use mariadb
- mysql: use MySQL server
-i <10.1|10.2|10.3|10.4|10.5|10.6|10.7|10.8|10.9|10.10>
-i <10.2|10.3|10.4|10.5|10.6|10.11>
Only with -d mariadb
Specifies on which version of mariadb tests are performed
- 10.1
- 10.2
- 10.3 (default)
- 10.4
- 10.5
- 10.6
- 10.7
- 10.8
- 10.9
- 10.10
- 10.11
-j <5.5|5.6|5.7|8.0>
-j <5.7|8.0>
Only with -d mysql
Specifies on which version of mysql tests are performed
- 5.5 (default)
- 5.6
- 5.7
- 8.0
- 8.0 (default)
-p <7.4|8.0|8.1|8.2>
-p <7.4|8.0|8.1|8.2|8.3>
Specifies the PHP minor version to be used
- 7.4: (default) use PHP 7.4
- 7.4: use PHP 7.4
- 8.0: use PHP 8.0
- 8.1: use PHP 8.1
- 8.2: use PHP 8.2 (note that xdebug is currently not available for PHP8.2)
- 8.1: use PHP 8.1 (default)
- 8.2: use PHP 8.2
- 8.3: use PHP 8.3
-e "<phpunit options>"
Only with -s functional|functionalDeprecated|unit|unitDeprecated|unitRandom|acceptance
Expand Down Expand Up @@ -180,7 +175,7 @@ fi
TEST_SUITE="unit"
TYPO3_VERSION=""
DBMS="mariadb"
PHP_VERSION="7.4"
PHP_VERSION="8.1"
PHP_XDEBUG_ON=0
PHP_XDEBUG_PORT=9003
SERVER_PORT=8000
Expand All @@ -189,7 +184,7 @@ SCRIPT_VERBOSE=0
PHPUNIT_WATCH=0
DATABASE_DRIVER=""
MARIADB_VERSION="10.3"
MYSQL_VERSION="5.5"
MYSQL_VERSION="8.0"

# Option parsing
# Reset in case getopts has been used previously in the shell
Expand All @@ -213,7 +208,7 @@ while getopts ":a:s:t:d:i:j:p:e:xy:whuv" OPT; do
;;
i)
MARIADB_VERSION=${OPTARG}
if ! [[ ${MARIADB_VERSION} =~ ^(10.2|10.3|10.4|10.5|10.6|10.11)$ ]]; then
if ! [[ ${MARIADB_VERSION} =~ ^(10.3|10.4|10.5|10.6|10.11)$ ]]; then
INVALID_OPTIONS+=("${OPTARG}")
fi
;;
Expand Down
45 changes: 3 additions & 42 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -1,55 +1,16 @@
# Development

## Kitodo.Presentation 4.0

- In Extbase, there is a default naming scheme to map model names to database
table names. As we currently don't use these for historic reasons, the mapping
needs to be reconfigured:

- [ext_typoscript_setup.txt](ext_typoscript_setup.txt) is for compatibility
with TYPO3 v9.
- [Classes.php](Configuration/Extbase/Persistence/Classes.php) is for TYPO3
v10 onwards.
- `polyfillExtbaseClassesForTYPO3v9` (defined in [Helper.php](Classes/Common/Helper.php))
is used for TYPO3 v9 compatibility with the expression language function
`getDocumentType()` ([DocumentTypeFunctionProvider.php](Classes/ExpressionLanguage/DocumentTypeFunctionProvider.php)).

To simplify this, we may consider to rename database tables according to the
default naming scheme.


## Future Changes

### TCA type "language"
The TCA field 'sys_language_uid' of table 'tx_dlf_collections' is defined as the 'languageField' and should therefore use the TCA type 'language' instead of TCA type 'select' with 'foreign_table=sys_language' or 'special=languages'.

### Forward() in controller actions will be removed in TYPO3 12

Instead of calling $this->forward() the controller action must return a ForwardResponse

https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.0/Deprecation-92815-ActionControllerForward.html

### Pagination Widget will be removed in TYPO3 11

https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.0/Breaking-92529-AllFluidWidgetFunctionalityRemoved.html

The current solution does only work with TYPO3 9 and 10.

As of TYPO3 10 a new pagination API has been introduced. This could be used as replacement in a release supporting TYPO3 10 and 11.

https://docs.typo3.org/m/typo3/reference-coreapi/10.4/en-us/ApiOverview/Pagination/Index.html

## Testing

Before running any of the tests, please install the project dependencies. Choose which version of TYPO3 you would like to test against.

```bash
# If you use PHP 7.3 or 7.4 (supported by Kitodo)
composer update --with=typo3/cms-core:^10.4
# If you use PHP 7.4 (supported by Kitodo)
composer update --with=typo3/cms-core:^11.5

# If you use PHP 8
composer install-via-docker -- -t 10.4
composer install-via-docker -- -t 11.5
composer install-via-docker -- -t 12.4
```

### Quick Start
Expand Down
2 changes: 1 addition & 1 deletion Documentation/guides.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<guides xmlns="https://www.phpdoc.org/guides" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.phpdoc.org/guides ../vendor/phpdocumentor/guides-cli/resources/schema/guides.xsd" links-are-relative="true">
<extension class="\T3Docs\Typo3DocsTheme\DependencyInjection\Typo3DocsThemeExtension" project-home="https://kitodo.org" project-contact="mailto:[email protected]" project-repository="https://github.com/kitodo/kitodo-presentation" project-issues="https://github.com/kitodo/kitodo-presentation/issues" edit-on-github-branch="master" edit-on-github="kitodo/kitodo-presentation" typo3-core-preferred="stable"/>
<project title="Kitodo.Presentation" release="5.0" copyright="since 2017 by Kitodo Release Management Team"/>
<project title="Kitodo.Presentation" release="6.0" copyright="since 2017 by Kitodo Release Management Team"/>
<inventory id="t3tsref" url="http://docs.typo3.org/typo3cms/TyposcriptReference/"/>
</guides>
5 changes: 3 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ The following versions of Kitodo.Presentation are currently being supported with

| Version | With TYPO3 | Active Development | Security Fixes |
| ------- | --------------- | :----------------: | :------------: |
| 5.x | 10 LTS + 11 LTS |||
| 4.x | 9 LTS + 10 LTS |||
| 6.x | 11 LTS + 12 LTS |||
| 5.x | 10 LTS + 11 LTS |||
| 4.x | 9 LTS + 10 LTS |||
| 3.3.x | 9 LTS |||
| 3.2.x | 8 LTS + 9 LTS |||
| 3.1.x | 8 LTS + 9 LTS |||
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
$EM_CONF[$_EXTKEY] = [
'title' => 'Kitodo.Presentation',
'description' => 'Base plugins, modules, services and API of the Digital Library Framework. It is part of the community-based Kitodo Digitization Suite.',
'version' => '5.0.5',
'version' => '6.0.0',
'category' => 'misc',
'constraints' => [
'depends' => [
Expand Down
78 changes: 0 additions & 78 deletions ext_typoscript_setup.txt

This file was deleted.

0 comments on commit c10482d

Please sign in to comment.