Commit 5d88752e authored by Helmut Hummel's avatar Helmut Hummel Committed by Thomas Löffler
Browse files

Add API to fetch all extensions with validated composer names

At the same time remove the API to look for repository_clone_url
as this is not needed any more.
parent 40b50d14
......@@ -57,17 +57,17 @@ class ExtensionController
/**
* @return void
*/
protected function findAllWithRepositoryUrlAsPackageSource()
protected function findAllWithValidComposerName()
{
$extensions = $this->databaseConnection->exec_SELECTgetRows(
'*',
'tx_terfe2_domain_model_extension',
'hidden = 0 and deleted = 0 and repository_clone_url <> ""'
'hidden = 0 and deleted = 0 and composer_name <> ""'
);
foreach ($extensions as $extension) {
$this->jsonArray['data'][$extension['ext_key']] = array(
'repository_clone_url' => $extension['repository_clone_url'],
'composer_name' => $extension['composer_name'],
);
}
......
......@@ -87,13 +87,6 @@ class Extension extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
*/
protected $repositoryUrl = '';
/**
* External repository clone url
*
* @var string
*/
protected $repositoryCloneUrl = '';
/**
* Link to an external manual
*
......@@ -443,26 +436,6 @@ class Extension extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
return $this->repositoryUrl;
}
/**
* Sets repositoryCloneUrl
*
* @param string $repositoryCloneUrl
*/
public function setRepositoryCloneUrl(string $repositoryCloneUrl)
{
$this->repositoryCloneUrl = trim($repositoryCloneUrl);
}
/**
* Gets repositoryCloneUrl
*
* @return string
*/
public function getRepositoryCloneUrl(): string
{
return $this->repositoryCloneUrl;
}
/**
* Returns all votes for the extension
*
......
......@@ -19,10 +19,10 @@ return array(
'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('ter_fe2') . 'Resources/Public/Icons/extension.gif',
),
'interface' => array(
'showRecordFieldList' => 'ext_key,forge_link,last_update,last_maintained,tags,versions,last_version,frontend_user,downloads,repository_url,repository_clone_url,paypal_url,external_manual,expire',
'showRecordFieldList' => 'ext_key,forge_link,last_update,last_maintained,tags,versions,last_version,frontend_user,downloads,repository_url,paypal_url,external_manual,expire',
),
'types' => array(
'1' => array('showitem' => 'ext_key,forge_link,last_update,last_maintained,tags,versions,last_version,frontend_user,downloads,repository_url,repository_clone_url,paypal_url,external_manual,expire'),
'1' => array('showitem' => 'ext_key,forge_link,last_update,last_maintained,tags,versions,last_version,frontend_user,downloads,repository_url,paypal_url,external_manual,expire'),
),
'palettes' => array(
'1' => array('showitem' => ''),
......@@ -197,16 +197,6 @@ return array(
'eval' => 'trim',
),
),
'repository_clone_url' => array(
'exclude' => 1,
'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_extension.repository_clone_url',
'config' => array(
'type' => 'text',
'rows' => 10,
'cols' => 40,
'eval' => 'trim',
),
),
'external_manual' => array(
'exclude' => 1,
'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_extension.external_manual',
......
......@@ -51,12 +51,6 @@
<trans-unit id="tx_terfe2_domain_model_extension.repository_url" xml:space="preserve">
<source>Link to repository</source>
</trans-unit>
<trans-unit id="tx_terfe2_domain_model_extension.repository_clone_url" xml:space="preserve">
<source>Publicly accessible clone url</source>
</trans-unit>
<trans-unit id="tx_terfe2_domain_model_extension.repository_clone_url.description" xml:space="preserve">
<source>The publicly accessible clone url will be used to fetch your repository for http://composer.typo3.org from the given url instead of the uploaded TER codebase. Therefore double check that the url is available for everyone. Otherwise your extension might disappear from http://composer.typo3.org.</source>
</trans-unit>
<trans-unit id="tx_terfe2_domain_model_extension.external_manual" xml:space="preserve">
<source>External manual</source>
</trans-unit>
......
......@@ -45,9 +45,6 @@
<trans-unit id="tx_terfe2_domain_model_extension.repository_url" xml:space="preserve">
<source>Link to repository</source>
</trans-unit>
<trans-unit id="tx_terfe2_domain_model_extension.repository_clone_url" xml:space="preserve">
<source>Publicly accessible clone url</source>
</trans-unit>
<trans-unit id="tx_terfe2_domain_model_extension.external_manual" xml:space="preserve">
<source>External manual</source>
</trans-unit>
......
......@@ -16,7 +16,6 @@ CREATE TABLE tx_terfe2_domain_model_extension (
frontend_user tinytext,
downloads int(11) unsigned DEFAULT '0' NOT NULL,
repository_url varchar(255) DEFAULT '' NOT NULL,
repository_clone_url varchar(255) DEFAULT '' NOT NULL,
external_manual varchar(255) DEFAULT '' NOT NULL,
paypal_url varchar(255) DEFAULT '' NOT NULL,
expire int(11) unsigned default '0' NOT NULL,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment