Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHRAS-2069 rescan file metadata command #4420

Merged
merged 11 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ namespace KonsoleKommander;
use Alchemy\Phrasea\CLI;
use Alchemy\Phrasea\Command\ApplyRightsCommand;
use Alchemy\Phrasea\Command\BuildMissingSubdefs;
use Alchemy\Phrasea\Command\BuildPermalinks;
use Alchemy\Phrasea\Command\BuildSubdefs;
use Alchemy\Phrasea\Command\Record\BuildPermalinks;
use Alchemy\Phrasea\Command\Record\BuildSubdefs;
use Alchemy\Phrasea\Command\CheckConfig;
use Alchemy\Phrasea\Command\Collection\ListCollectionCommand;
use Alchemy\Phrasea\Command\Collection\PublishCollectionCommand;
Expand All @@ -31,8 +31,9 @@ use Alchemy\Phrasea\Command\NetworkProxiesTestCommand;
use Alchemy\Phrasea\Command\Plugin\AddPlugin;
use Alchemy\Phrasea\Command\Plugin\ListPlugin;
use Alchemy\Phrasea\Command\Plugin\RemovePlugin;
use Alchemy\Phrasea\Command\RecordAdd;
use Alchemy\Phrasea\Command\RescanTechnicalDatas;
use Alchemy\Phrasea\Command\Record\RecordAdd;
use Alchemy\Phrasea\Command\Record\RescanFilesMetadata;
use Alchemy\Phrasea\Command\Record\RescanTechnicalDatas;
use Alchemy\Phrasea\Command\SearchEngine\Debug\QueryParseCommand;
use Alchemy\Phrasea\Command\SearchEngine\Debug\QuerySampleCommand;
use Alchemy\Phrasea\Command\SearchEngine\IndexCreateCommand;
Expand Down Expand Up @@ -156,8 +157,10 @@ $cli->command(new UserListCommand('user:list'));


$cli->command(new RecordAdd('records:add'));
$cli->command(new BuildPermalinks());
$cli->command(new RescanTechnicalDatas('records:rescan-technical-datas'));
$cli->command(new BuildSubdefs('records:build-subdefs'));
$cli->command(new RescanFilesMetadata());

$cli->command(new AddPlugin());
$cli->command(new ListPlugin());
Expand Down Expand Up @@ -187,8 +190,6 @@ $cli->command(new SendValidationRemindersCommand());

$cli->command(new NetworkProxiesTestCommand('network-proxies:test'));

$cli->command(new BuildPermalinks());

$cli->loadPlugins();

$cli->run();
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,17 @@
* file that was distributed with this source code.
*/

namespace Alchemy\Phrasea\Command;
namespace Alchemy\Phrasea\Command\Record;

use Alchemy\Phrasea\Core\PhraseaTokens;
use Alchemy\Phrasea\Databox\SubdefGroup;
use Alchemy\Phrasea\Media\SubdefGenerator;
use Alchemy\Phrasea\Command\Command;
use Databox;
use databox_subdef;
use DateTime;
use Doctrine\DBAL\Connection;
use media_Permalink_Adapter;
use PDO;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Helper\ProgressBar;
use media_subdef;

class BuildPermalinks extends Command
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
* file that was distributed with this source code.
*/

namespace Alchemy\Phrasea\Command;
namespace Alchemy\Phrasea\Command\Record;

use Alchemy\Phrasea\Command\Command;
use Alchemy\Phrasea\Core\PhraseaTokens;
use Alchemy\Phrasea\Databox\SubdefGroup;
use Alchemy\Phrasea\Media\SubdefGenerator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
* file that was distributed with this source code.
*/

namespace Alchemy\Phrasea\Command;
namespace Alchemy\Phrasea\Command\Record;

use Alchemy\Phrasea\Border\File;
use Alchemy\Phrasea\Border\Manager;
use Alchemy\Phrasea\Command\Command;
use Alchemy\Phrasea\Model\Entities\LazaretFile;
use Alchemy\Phrasea\Model\Entities\LazaretSession;
use Symfony\Component\Console\Input\InputArgument;
Expand Down
Loading