-
Notifications
You must be signed in to change notification settings - Fork 71
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
VACMS-136900: implement text field migration core logic #16227
base: main
Are you sure you want to change the base?
VACMS-136900: implement text field migration core logic #16227
Conversation
…t-text-field-migration-core-logic
…t-text-field-migration-core-logic
…t-text-field-migration-core-logic
…t-text-field-migration-core-logic
GitHub Workflows (.github/workflows/*.yml)Have you...
|
string $entityType, | ||
string $fieldName | ||
) { | ||
$this->reporter = $reporter; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PHPStan] reported by reviewdog 🐶
Access to an undefined property Drupal\va_gov_live_field_migration\Migrator\MigratorBase::$reporter.
* {@inheritDoc} | ||
*/ | ||
protected function getReporter(): ReporterInterface { | ||
return $this->reporter; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PHPStan] reported by reviewdog 🐶
Access to an undefined property Drupal\va_gov_live_field_migration\Migrator\MigratorBase::$reporter.
public function run() { | ||
$this->verifyField($this->getSourceType()); | ||
$this->backupFieldTables(); | ||
$this->fieldConfigs = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PHPStan] reported by reviewdog 🐶
Access to an undefined property Drupal\va_gov_live_field_migration\Migrator\MigratorBase::$fieldConfigs.
$this->verifyField($this->getSourceType()); | ||
$this->backupFieldTables(); | ||
$this->fieldConfigs = []; | ||
$this->formDisplayConfigs = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PHPStan] reported by reviewdog 🐶
Access to an undefined property Drupal\va_gov_live_field_migration\Migrator\MigratorBase::$formDisplayConfigs.
$this->backupFieldTables(); | ||
$this->fieldConfigs = []; | ||
$this->formDisplayConfigs = []; | ||
$this->viewDisplayConfigs = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PHPStan] reported by reviewdog 🐶
Access to an undefined property Drupal\va_gov_live_field_migration\Migrator\MigratorBase::$viewDisplayConfigs.
* The bundle. | ||
*/ | ||
public function updateViewDisplayConfig(string $bundle): void { | ||
$this->reporter->reportInfo("Updating view display config for field {$this->fieldName} on bundle {$bundle}..."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PHPStan] reported by reviewdog 🐶
Access to an undefined property Drupal\va_gov_live_field_migration\Migrator\MigratorBase::$reporter.
* The config. | ||
*/ | ||
public function updateViewDisplayConfigForMode(string $bundle, string $viewMode, array $config): void { | ||
$this->reporter->reportInfo("Updating view display config for field {$this->fieldName} on bundle {$bundle} for view mode {$viewMode}..."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PHPStan] reported by reviewdog 🐶
Access to an undefined property Drupal\va_gov_live_field_migration\Migrator\MigratorBase::$reporter.
* {@inheritDoc} | ||
*/ | ||
public function runMigration(string $entityType, string $fieldName) : void { | ||
$migrator = $this->migrationFactory->getTextToStringLongMigrator($entityType, $fieldName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PHPStan] reported by reviewdog 🐶
Access to an undefined property Drupal\va_gov_live_field_migration\Plugin\Migration\TextToStringLong::$migrationFactory.
* {@inheritDoc} | ||
*/ | ||
public function rollbackMigration(string $entityType, string $fieldName) : void { | ||
$migrator = $this->migrationFactory->getTextToStringLongMigrator($entityType, $fieldName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PHPStan] reported by reviewdog 🐶
Access to an undefined property Drupal\va_gov_live_field_migration\Plugin\Migration\TextToStringLong::$migrationFactory.
* {@inheritDoc} | ||
*/ | ||
public function verifyMigration(string $entityType, string $fieldName) : void { | ||
$migrator = $this->migrationFactory->getTextToStringLongMigrator($entityType, $fieldName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PHPStan] reported by reviewdog 🐶
Access to an undefined property Drupal\va_gov_live_field_migration\Plugin\Migration\TextToStringLong::$migrationFactory.
* {@inheritDoc} | ||
*/ | ||
public function runMigration(string $entityType, string $fieldName) : void { | ||
$migrator = $this->migrationFactory->getTextToStringLongMigrator($entityType, $fieldName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PHPStan] reported by reviewdog 🐶
Access to an undefined property Drupal\va_gov_live_field_migration\Plugin\Migration\TextToStringLong::$migrationFactory.
* {@inheritDoc} | ||
*/ | ||
public function rollbackMigration(string $entityType, string $fieldName) : void { | ||
$migrator = $this->migrationFactory->getTextToStringLongMigrator($entityType, $fieldName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PHPStan] reported by reviewdog 🐶
Access to an undefined property Drupal\va_gov_live_field_migration\Plugin\Migration\TextToStringLong::$migrationFactory.
* {@inheritDoc} | ||
*/ | ||
public function verifyMigration(string $entityType, string $fieldName) : void { | ||
$migrator = $this->migrationFactory->getTextToStringLongMigrator($entityType, $fieldName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PHPStan] reported by reviewdog 🐶
Access to an undefined property Drupal\va_gov_live_field_migration\Plugin\Migration\TextToStringLong::$migrationFactory.
Checking composer.lock changes... |
string $entityType, | ||
string $fieldName, | ||
string $migrationId, | ||
string $status = NULL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [PHP_CodeSniffer] <SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue.NullabilityTypeMissing> reported by reviewdog 🐶
Parameter $status has null default value, but is not marked as nullable.
string $entityType, | ||
string $fieldName, | ||
string $migrationId, | ||
string $status = NULL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [PHP_CodeSniffer] <Drupal.Functions.MultiLineFunctionDeclaration.MissingTrailingComma> reported by reviewdog 🐶
Multi-line function declarations must have a trailing comma after the last parameter
FieldProviderResolverInterface $fieldProviderResolver, | ||
MigrationResolverInterface $migrationResolver, | ||
ReporterInterface $reporter, | ||
StateInterface $state |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [PHP_CodeSniffer] <Drupal.Functions.MultiLineFunctionDeclaration.MissingTrailingComma> reported by reviewdog 🐶
Multi-line function declarations must have a trailing comma after the last parameter
$plugin_definition, | ||
TranslationInterface $stringTranslation, | ||
ReporterInterface $reporter, | ||
FactoryInterface $migratorFactory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [PHP_CodeSniffer] <Drupal.Functions.MultiLineFunctionDeclaration.MissingTrailingComma> reported by reviewdog 🐶
Multi-line function declarations must have a trailing comma after the last parameter
ContainerInterface $container, | ||
array $configuration, | ||
$plugin_id, | ||
$plugin_definition |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [PHP_CodeSniffer] <Drupal.Functions.MultiLineFunctionDeclaration.MissingTrailingComma> reported by reviewdog 🐶
Multi-line function declarations must have a trailing comma after the last parameter
* The database connection. | ||
*/ | ||
public function __construct( | ||
Connection $connection |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [PHP_CodeSniffer] <Drupal.Functions.MultiLineFunctionDeclaration.MissingTrailingComma> reported by reviewdog 🐶
Multi-line function declarations must have a trailing comma after the last parameter
$plugin_id, | ||
$plugin_definition, | ||
TranslationInterface $stringTranslation, | ||
EntityFieldManagerInterface $entityFieldManager |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [PHP_CodeSniffer] <Drupal.Functions.MultiLineFunctionDeclaration.MissingTrailingComma> reported by reviewdog 🐶
Multi-line function declarations must have a trailing comma after the last parameter
ContainerInterface $container, | ||
array $configuration, | ||
$plugin_id, | ||
$plugin_definition |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [PHP_CodeSniffer] <Drupal.Functions.MultiLineFunctionDeclaration.MissingTrailingComma> reported by reviewdog 🐶
Multi-line function declarations must have a trailing comma after the last parameter
/** | ||
* {@inheritDoc} | ||
*/ | ||
public function getFields(string $entityType, string $bundle = NULL) : array { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [PHP_CodeSniffer] <SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue.NullabilityTypeMissing> reported by reviewdog 🐶
Parameter $bundle has null default value, but is not marked as nullable.
/** | ||
* {@inheritDoc} | ||
*/ | ||
public function getFields(string $entityType, string $bundle = NULL) : array { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [PHP_CodeSniffer] <SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue.NullabilityTypeMissing> reported by reviewdog 🐶
Parameter $bundle has null default value, but is not marked as nullable.
string $entityType, | ||
string $fieldName | ||
) { | ||
$this->reporter = $reporter; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PHPStan] reported by reviewdog 🐶
Access to an undefined property Drupal\va_gov_live_field_migration\Migrator\MigratorBase::$reporter.
* {@inheritDoc} | ||
*/ | ||
protected function getReporter(): ReporterInterface { | ||
return $this->reporter; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PHPStan] reported by reviewdog 🐶
Access to an undefined property Drupal\va_gov_live_field_migration\Migrator\MigratorBase::$reporter.
public function run() { | ||
$this->verifyField($this->getSourceType()); | ||
$this->backupFieldTables(); | ||
$this->fieldConfigs = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PHPStan] reported by reviewdog 🐶
Access to an undefined property Drupal\va_gov_live_field_migration\Migrator\MigratorBase::$fieldConfigs.
$this->verifyField($this->getSourceType()); | ||
$this->backupFieldTables(); | ||
$this->fieldConfigs = []; | ||
$this->formDisplayConfigs = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PHPStan] reported by reviewdog 🐶
Access to an undefined property Drupal\va_gov_live_field_migration\Migrator\MigratorBase::$formDisplayConfigs.
$this->backupFieldTables(); | ||
$this->fieldConfigs = []; | ||
$this->formDisplayConfigs = []; | ||
$this->viewDisplayConfigs = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PHPStan] reported by reviewdog 🐶
Access to an undefined property Drupal\va_gov_live_field_migration\Migrator\MigratorBase::$viewDisplayConfigs.
* The config. | ||
*/ | ||
public function updateViewDisplayConfigForMode(string $bundle, string $viewMode, array $config): void { | ||
$this->reporter->reportInfo("Updating view display config for field {$this->fieldName} on bundle {$bundle} for view mode {$viewMode}..."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PHPStan] reported by reviewdog 🐶
Access to an undefined property Drupal\va_gov_live_field_migration\Migrator\MigratorBase::$reporter.
* {@inheritDoc} | ||
*/ | ||
public function runMigration(string $entityType, string $fieldName) : void { | ||
$migrator = $this->migrationFactory->getTextToStringLongMigrator($entityType, $fieldName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PHPStan] reported by reviewdog 🐶
Access to an undefined property Drupal\va_gov_live_field_migration\Plugin\Migration\TextToStringLong::$migrationFactory.
* {@inheritDoc} | ||
*/ | ||
public function rollbackMigration(string $entityType, string $fieldName) : void { | ||
$migrator = $this->migrationFactory->getTextToStringLongMigrator($entityType, $fieldName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PHPStan] reported by reviewdog 🐶
Access to an undefined property Drupal\va_gov_live_field_migration\Plugin\Migration\TextToStringLong::$migrationFactory.
* {@inheritDoc} | ||
*/ | ||
public function verifyMigration(string $entityType, string $fieldName) : void { | ||
$migrator = $this->migrationFactory->getTextToStringLongMigrator($entityType, $fieldName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PHPStan] reported by reviewdog 🐶
Access to an undefined property Drupal\va_gov_live_field_migration\Plugin\Migration\TextToStringLong::$migrationFactory.
// When we are on Drupal 10.0.0, we can use the following: | ||
// Error::logException($this->logger, $exception); | ||
// Until then, we have to do this: | ||
watchdog_exception('va_gov_live_field_migration', $exception); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PHPStan] reported by reviewdog 🐶
Call to deprecated function watchdog_exception():
Tugboat has finished building the preview for this pull request! Links:
Dashboard: |
Description
Closes #13699.