Skip to content

Commit

Permalink
Merge branch '4.1-dev' into feature/installer-sql-improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
bembelimen authored Jan 1, 2022
2 parents 3370b9a + 4229d73 commit 6ccdd5f
Show file tree
Hide file tree
Showing 390 changed files with 4,515 additions and 6,364 deletions.
174 changes: 154 additions & 20 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ steps:
- name: php80-unit
depends_on: [ phpcs ]
image: joomlaprojects/docker-images:php8.0
failure: ignore
commands:
- php -v
- ./libraries/vendor/bin/phpunit --testsuite Unit
Expand Down Expand Up @@ -98,7 +97,13 @@ steps:
- name: php81-integration
depends_on: [ npm ]
image: joomlaprojects/docker-images:php8.1
failure: ignore
commands:
- php -v
- ./libraries/vendor/bin/phpunit --testsuite Integration

- name: php82-integration
depends_on: [ npm ]
image: joomlaprojects/docker-images:php8.2
commands:
- php -v
- ./libraries/vendor/bin/phpunit --testsuite Integration
Expand Down Expand Up @@ -135,7 +140,13 @@ steps:
- name: php81-integration-pgsql
depends_on: [ npm ]
image: joomlaprojects/docker-images:php8.1
failure: ignore
commands:
- php -v
- ./libraries/vendor/bin/phpunit --testsuite Integration --configuration phpunit-pgsql.xml.dist

- name: php82-integration-pgsql
depends_on: [ npm ]
image: joomlaprojects/docker-images:php8.2
commands:
- php -v
- ./libraries/vendor/bin/phpunit --testsuite Integration --configuration phpunit-pgsql.xml.dist
Expand All @@ -152,41 +163,164 @@ steps:
commands:
- npm run lint:js

- name: system-tests-mysql
depends_on: [ javascript-cs ]
- name: phpmin-api-mysql
depends_on:
- javascript-cs
image: joomlaprojects/docker-images:systemtests
environment:
JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK: 1
commands:
- bash tests/Codeception/drone-system-run.sh "$(pwd)" mysql
- bash tests/Codeception/drone-api-run.sh "$(pwd)" mysql

- name: phpmax-api-mysql
depends_on:
- phpmin-api-mysql
image: joomlaprojects/docker-images:systemtests8.1
failure: ignore
environment:
JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK: 1
commands:
- bash tests/Codeception/drone-api-run.sh "$(pwd)" mysql

- name: system-tests-mysql8
depends_on: [ system-tests-mysql ]
- name: phpnext-api-mysql
depends_on:
- phpmin-api-mysql
image: joomlaprojects/docker-images:systemtests8.2
failure: ignore
environment:
JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK: 1
commands:
- bash tests/Codeception/drone-api-run.sh "$(pwd)" mysqlphpnext

- name: phpmin-api-postgres
depends_on:
- phpnext-api-mysql
image: joomlaprojects/docker-images:systemtests
failure: ignore
environment:
JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK: 1
commands:
- bash tests/Codeception/drone-system-run.sh "$(pwd)" mysql8
- bash tests/Codeception/drone-api-run.sh "$(pwd)" postgres

- name: system-tests-postgres
depends_on: [ system-tests-mysql8 ]
- name: phpnext-api-postgres
depends_on:
- phpmin-api-postgres
image: joomlaprojects/docker-images:systemtests8.2
failure: ignore
environment:
JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK: 1
commands:
- bash tests/Codeception/drone-api-run.sh "$(pwd)" postgresphpnext

- name: phpmax-api-postgres
depends_on:
- phpnext-api-postgres
image: joomlaprojects/docker-images:systemtests8.1
failure: ignore
environment:
JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK: 1
commands:
- bash tests/Codeception/drone-api-run.sh "$(pwd)" postgres

- name: phpmin-system-mysql
depends_on:
- javascript-cs
- phpmax-api-postgres
image: joomlaprojects/docker-images:systemtests
failure: ignore
environment:
JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK: 1
commands:
- bash tests/Codeception/drone-system-run.sh "$(pwd)" postgres
- bash tests/Codeception/drone-system-run.sh "$(pwd)" mysql

- name: phpnext-system-mysql
depends_on: [ phpmin-system-mysql ]
image: joomlaprojects/docker-images:systemtests8.2
failure: ignore
environment:
JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK: 1
commands:
- bash tests/Codeception/drone-system-run.sh "$(pwd)" mysqlphpnext

- name: phpmax-system-mysql
depends_on: [ phpnext-system-mysql ]
image: joomlaprojects/docker-images:systemtests8.1
failure: ignore
environment:
JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK: 1
commands:
- bash tests/Codeception/drone-system-run.sh "$(pwd)" mysqlphpmax

- name: phpnext-system-mysql8
depends_on: [ phpmax-system-mysql ]
image: joomlaprojects/docker-images:systemtests8.2
failure: ignore
environment:
JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK: 1
commands:
- bash tests/Codeception/drone-system-run.sh "$(pwd)" mysql8phpnext

- name: phpmax-system-mysql8
depends_on: [ phpnext-system-mysql ]
image: joomlaprojects/docker-images:systemtests8.1
failure: ignore
environment:
JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK: 1
commands:
- bash tests/Codeception/drone-system-run.sh "$(pwd)" mysql8phpmax

- name: phpnext-system-postgres
depends_on: [ phpmax-system-mysql8 ]
image: joomlaprojects/docker-images:systemtests8.2
failure: ignore
environment:
JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK: 1
commands:
- bash tests/Codeception/drone-system-run.sh "$(pwd)" postgresphpnext

- name: api-tests
depends_on: [ system-tests-postgres ]
- name: phpmax-system-postgres
depends_on: [ phpnext-system-mysql8 ]
image: joomlaprojects/docker-images:systemtests8.1
failure: ignore
environment:
JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK: 1
commands:
- bash tests/Codeception/drone-system-run.sh "$(pwd)" postgresphpmax

- name: phpmin-system-mysql8
depends_on: [ phpmax-system-postgres ]
image: joomlaprojects/docker-images:systemtests
environment:
JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK: 1
commands:
- bash tests/Codeception/drone-api-run.sh "$(pwd)"
- bash tests/Codeception/drone-system-run.sh "$(pwd)" mysql8

- name: phpmin-system-postgres
depends_on: [ phpmin-system-mysql8 ]
image: joomlaprojects/docker-images:systemtests
environment:
JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK: 1
commands:
- bash tests/Codeception/drone-system-run.sh "$(pwd)" postgres

- name: artifacts-system-tests
image: cschlosser/drone-ftps
depends_on: [ api-tests ]
depends_on:
- phpnext-system-mysql
- phpnext-system-mysql8
- phpnext-system-postgres
- phpmax-system-mysql
- phpmax-system-mysql8
- phpmax-system-postgres
- phpmin-system-mysql
- phpmin-system-mysql8
- phpmin-system-postgres
- phpnext-api-mysql
- phpnext-api-postgres
- phpmax-api-mysql
- phpmax-api-postgres
- phpmin-api-mysql
- phpmin-api-postgres
environment:
FTP_USERNAME:
from_secret: ftpusername
Expand All @@ -209,9 +343,9 @@ branches:
exclude: [ l10n_* ]

volumes:
- name: composer-cache
host:
path: /tmp/composer-cache
- name: composer-cache
host:
path: /tmp/composer-cache

services:
- name: mysql
Expand Down Expand Up @@ -275,6 +409,6 @@ steps:

---
kind: signature
hmac: bd749550476cef0ec9258524e7f158b25dd3adf55758bb1c24874a185db1b40a
hmac: e93522732dd8607448fa7705982c42c06f9ebf9762023ed1bb2207ee975fee42

...
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ActionlogsController extends AdminController
* Recognized key values include 'name', 'default_task', 'model_path', and
* 'view_path' (this list is not meant to be comprehensive).
* @param MVCFactoryInterface $factory The factory.
* @param CMSApplication $app The JApplication for the dispatcher
* @param CMSApplication $app The Application for the dispatcher
* @param Input $input Input
*
* @since 3.9.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
use Joomla\CMS\Factory;
use Joomla\CMS\Filesystem\Path;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Object\CMSObject;
use Joomla\CMS\Router\Route;
use Joomla\String\StringHelper;

Expand All @@ -30,6 +31,7 @@ class ActionlogsHelper
* Array of characters starting a formula
*
* @var array
*
* @since 3.9.7
*/
private static $characters = array('=', '+', '-', '@');
Expand All @@ -42,6 +44,7 @@ class ActionlogsHelper
* @return Generator
*
* @since 3.9.0
*
* @throws \InvalidArgumentException
*/
public static function getCsvData($data): Generator
Expand Down Expand Up @@ -173,8 +176,8 @@ public static function getLogContentTypeParams($context)
/**
* Get human readable log message for a User Action Log
*
* @param stdClass $log A User Action log message record
* @param boolean $generateLinks Flag to disable link generation when creating a message
* @param \stdClass $log A User Action log message record
* @param boolean $generateLinks Flag to disable link generation when creating a message
*
* @return string
*
Expand Down Expand Up @@ -233,11 +236,11 @@ public static function getHumanReadableLogMessage($log, $generateLinks = true)
/**
* Get link to an item of given content type
*
* @param string $component
* @param string $contentType
* @param integer $id
* @param string $urlVar
* @param JObject $object
* @param string $component
* @param string $contentType
* @param integer $id
* @param string $urlVar
* @param CMSObject $object
*
* @return string Link to the content item
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public function getLogsForItem($extension, $itemId)
}

/**
* Get logs data into JTable object
* Get logs data into Table object
*
* @param integer[]|null $pks An optional array of log record IDs to load
*
Expand Down
6 changes: 4 additions & 2 deletions administrator/components/com_admin/script.php
Original file line number Diff line number Diff line change
Expand Up @@ -6110,7 +6110,9 @@ public function deleteUnexistingFiles($dryRun = false, $suppressOutput = false)
'/templates/cassiopeia/images/system/sort_desc.png',
// From 4.0.4 to 4.0.5
'/media/vendor/codemirror/lib/#codemirror.js#',
// From 4.0.5 to 4.1.0
// From 4.0.5 to 4.0.6
'/media/vendor/mediaelement/css/mejs-controls.png',
// From 4.0.x to 4.1.0
'/administrator/templates/atum/css/system/searchtools/searchtools.css',
'/administrator/templates/atum/css/system/searchtools/searchtools.min.css',
'/administrator/templates/atum/css/system/searchtools/searchtools.min.css.gz',
Expand Down Expand Up @@ -7727,7 +7729,7 @@ public function updateAssets($installer)

foreach ($newComponents as $component)
{
/** @var JTableAsset $asset */
/** @var \Joomla\CMS\Table\Asset $asset */
$asset = Table::getInstance('Asset');

if ($asset->loadByName($component))
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UPDATE `#__extensions` SET `checked_out` = NULL WHERE `type` = 'package' AND `element` = 'pkg_search' AND `checked_out` = 0;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UPDATE "#__extensions" SET "checked_out" = NULL WHERE "type" = 'package' AND "element" = 'pkg_search' AND "checked_out" = 0;
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class AssociationField extends FormField
*/
protected function getInput()
{
// @TODO USE JLayouts here!!!
// @todo USE Layouts here!!!
// The active item id field.
$value = (int) $this->value ?: '';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class AssociationModel extends ListModel
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
*
* @return mixed A \JForm object on success, false on failure
* @return \Joomla\CMS\Form\Form|boolean A Form object on success, false on failure
*
* @since 3.7.0
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ protected function getStoreId($id = '')
/**
* Build an SQL query to load the list data.
*
* @return \JDatabaseQuery|boolean
* @return \Joomla\Database\DatabaseQuery|boolean
*
* @since 3.7.0
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class BannersController extends AdminController
*
* @param array $config An optional associative array of configuration settings.
* @param MVCFactoryInterface $factory The factory.
* @param CMSApplication $app The JApplication for the dispatcher
* @param CMSApplication $app The Application for the dispatcher
* @param Input $input Input
*
* @since 3.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function &getCategoryOrders()
/**
* Build an SQL query to load the list data.
*
* @return \JDatabaseQuery
* @return \Joomla\Database\DatabaseQuery
*
* @since 1.6
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ protected function canEditState($record)
* @param array $data Data for the form.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
*
* @return \JForm|boolean A \JForm object on success, false on failure
* @return \Joomla\CMS\Form\Form|boolean A Form object on success, false on failure
*
* @since 1.6
*/
Expand Down
Loading

0 comments on commit 6ccdd5f

Please sign in to comment.