Comply with Drupal coding standards (30) (phpstan)

Created on 28 February 2024, 10 months ago
Updated 17 March 2024, 9 months ago

Problem/Motivation

  • Fix coding standard errors by phpstan at d.o
    $ php vendor/bin/phpstan analyze $_WEB_ROOT/modules/custom/$CI_PROJECT_NAME $PHPSTAN_CONFIGURATION --no-progress || EXIT_CODE=$?
     ------ ---------------------------------------------------------------------------------- 
      Line   modules/cloud_cluster_worker/src/Form/Config/CloudClusterWorkerAdminSettings.php  
     ------ ---------------------------------------------------------------------------------- 
      267    Call to deprecated function watchdog_exception():                                 
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use                           
               Use \Drupal\Core\Utility\Error::logException() instead.                         
     ------ ---------------------------------------------------------------------------------- 
     ------ ------------------------------------------------------------------ 
      Line   modules/cloud_service_providers/aws_cloud/aws_cloud.module        
     ------ ------------------------------------------------------------------ 
      1748   Call to deprecated method loadRevision() of class                 
             Drupal\Core\Entity\EntityStorageInterface:                        
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use           
             \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision    
             instead.                                                          
      2100   Call to deprecated method loadRevision() of class                 
             Drupal\Core\Entity\EntityStorageInterface:                        
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use           
             \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision    
             instead.                                                          
      2113   Call to deprecated method deleteRevision() of class               
             Drupal\Core\Entity\EntityStorageInterface:                        
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use           
             \Drupal\Core\Entity\RevisionableStorageInterface::deleteRevision  
             instead.                                                          
      2174   Call to deprecated method loadRevision() of class                 
             Drupal\Core\Entity\EntityStorageInterface:                        
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use           
             \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision    
             instead.                                                          
     ------ ------------------------------------------------------------------ 
     ------ ----------------------------------------------------------------------------- 
      Line   modules/cloud_service_providers/aws_cloud/src/Form/Ec2/InstanceEditForm.php  
     ------ ----------------------------------------------------------------------------- 
      534    Call to deprecated method formatExample() of class                           
             Drupal\Core\Datetime\Element\Datetime:                                       
             in drupal:10.2.0 and is removed from drupal:11.0.0.                          
               There is no replacement.                                                   
     ------ ----------------------------------------------------------------------------- 
     ------ ---------------------------------------------------------------------------------------------- 
      Line   modules/cloud_service_providers/aws_cloud/src/Service/AwsCloud/AwsCloudOperationsService.php  
     ------ ---------------------------------------------------------------------------------------------- 
      5258   Call to deprecated method loadRevision() of class                                             
             Drupal\Core\Entity\EntityStorageInterface:                                                    
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use                                       
             \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision                                
             instead.                                                                                      
     ------ ---------------------------------------------------------------------------------------------- 
     ------ ---------------------------------------------------------------------------------- 
      Line   modules/cloud_service_providers/aws_cloud/src/Service/Ec2/Ec2BatchOperations.php  
     ------ ---------------------------------------------------------------------------------- 
      1580   Call to deprecated method loadRevision() of class                                 
             Drupal\Core\Entity\EntityStorageInterface:                                        
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use                           
             \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision                    
             instead.                                                                          
      1589   Call to deprecated method loadRevision() of class                                 
             Drupal\Core\Entity\EntityStorageInterface:                                        
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use                           
             \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision                    
             instead.                                                                          
      1591   Call to deprecated method deleteRevision() of class                               
             Drupal\Core\Entity\EntityStorageInterface:                                        
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use                           
             \Drupal\Core\Entity\RevisionableStorageInterface::deleteRevision                  
             instead.                                                                          
     ------ ---------------------------------------------------------------------------------- 
     ------ ---------------------------------------------------------------------- 
      Line   modules/cloud_service_providers/docker/src/Service/DockerService.php  
     ------ ---------------------------------------------------------------------- 
      410    Call to deprecated function watchdog_exception():                     
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use               
               Use \Drupal\Core\Utility\Error::logException() instead.             
     ------ ---------------------------------------------------------------------- 
     ------ --------------------------------------------------------------------- 
      Line   modules/cloud_service_providers/k8s/k8s.module                       
     ------ --------------------------------------------------------------------- 
      790    Call to static method getOptionsListByRegion() on an unknown class   
             Drupal\Core\DateTime\TimeZoneFormHelper.                             
             πŸ’‘ Learn more at https://phpstan.org/user-guide/discovering-symbols  
      1092   Call to deprecated method loadRevision() of class                    
             Drupal\Core\Entity\EntityStorageInterface:                           
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use              
             \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision       
             instead.                                                             
     ------ --------------------------------------------------------------------- 
     ------ ---------------------------------------------------------------------------------------------------------------------- 
      Line   modules/cloud_service_providers/k8s/tests/src/Unit/Plugin/cloud/launch_template/K8sCloudLaunchTemplatePluginTest.php  
     ------ ---------------------------------------------------------------------------------------------------------------------- 
      79     Missing call to parent::setUp() method.                                                                               
     ------ ---------------------------------------------------------------------------------------------------------------------- 
     ------ ------------------------------------------------------------------------------------------------------- 
      Line   modules/cloud_service_providers/k8s/tests/src/Unit/Plugin/cloud/project/K8sCloudProjectPluginTest.php  
     ------ ------------------------------------------------------------------------------------------------------- 
      89     Missing call to parent::setUp() method.                                                                
     ------ ------------------------------------------------------------------------------------------------------- 
     ------ ---------------------------------------------------------------- 
      Line   modules/cloud_service_providers/openstack/openstack.module      
     ------ ---------------------------------------------------------------- 
      327    Call to deprecated method loadRevision() of class               
             Drupal\Core\Entity\EntityStorageInterface:                      
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use         
             \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision  
             instead.                                                        
     ------ ---------------------------------------------------------------- 
     ------ --------------------------------------------------------------------------------- 
      Line   modules/cloud_service_providers/openstack/src/Service/Rest/OpenStackService.php  
     ------ --------------------------------------------------------------------------------- 
      8017   Call to deprecated function watchdog_exception():                                
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use                          
               Use \Drupal\Core\Utility\Error::logException() instead.                        
     ------ --------------------------------------------------------------------------------- 
     ------ ---------------------------------------------------------------------------------------------------------------------------------- 
      Line   modules/cloud_service_providers/openstack/tests/src/Unit/Plugin/cloud/launch_template/OpenStackCloudLaunchTemplatePluginTest.php  
     ------ ---------------------------------------------------------------------------------------------------------------------------------- 
      71     Missing call to parent::setUp() method.                                                                                           
     ------ ---------------------------------------------------------------------------------------------------------------------------------- 
     ------ ---------------------------------------------------------------------------- 
      Line   modules/cloud_service_providers/terraform/src/Service/TerraformService.php  
     ------ ---------------------------------------------------------------------------- 
      543    Call to deprecated function watchdog_exception():                           
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use                     
               Use \Drupal\Core\Utility\Error::logException() instead.                   
     ------ ---------------------------------------------------------------------------- 
     ------ ---------------------------------------------------------------------- 
      Line   modules/cloud_service_providers/vmware/src/Service/VmwareService.php  
     ------ ---------------------------------------------------------------------- 
      436    Call to deprecated function watchdog_exception():                     
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use               
               Use \Drupal\Core\Utility\Error::logException() instead.             
     ------ ---------------------------------------------------------------------- 
     ------ ---------------------------------------------------------------- 
      Line   src/Controller/CloudConfigController.php                        
     ------ ---------------------------------------------------------------- 
      109    Call to deprecated method loadRevision() of class               
             Drupal\Core\Entity\EntityStorageInterface:                      
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use         
             \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision  
             instead.                                                        
      132    Call to deprecated method loadRevision() of class               
             Drupal\Core\Entity\EntityStorageInterface:                      
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use         
             \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision  
             instead.                                                        
     ------ ---------------------------------------------------------------- 
     ------ ---------------------------------------------------------------- 
      Line   src/Controller/CloudLaunchTemplateController.php                
     ------ ---------------------------------------------------------------- 
      120    Call to deprecated method loadRevision() of class               
             Drupal\Core\Entity\EntityStorageInterface:                      
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use         
             \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision  
             instead.                                                        
      143    Call to deprecated method loadRevision() of class               
             Drupal\Core\Entity\EntityStorageInterface:                      
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use         
             \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision  
             instead.                                                        
      188    Call to deprecated method loadRevision() of class               
             Drupal\Core\Entity\EntityStorageInterface:                      
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use         
             \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision  
             instead.                                                        
     ------ ---------------------------------------------------------------- 
     ------ ---------------------------------------------------------------- 
      Line   src/Controller/CloudProjectController.php                       
     ------ ---------------------------------------------------------------- 
      120    Call to deprecated method loadRevision() of class               
             Drupal\Core\Entity\EntityStorageInterface:                      
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use         
             \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision  
             instead.                                                        
      143    Call to deprecated method loadRevision() of class               
             Drupal\Core\Entity\EntityStorageInterface:                      
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use         
             \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision  
             instead.                                                        
      186    Call to deprecated method loadRevision() of class               
             Drupal\Core\Entity\EntityStorageInterface:                      
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use         
             \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision  
             instead.                                                        
     ------ ---------------------------------------------------------------- 
     ------ ---------------------------------------------------------------- 
      Line   src/Controller/CloudStoreController.php                         
     ------ ---------------------------------------------------------------- 
      119    Call to deprecated method loadRevision() of class               
             Drupal\Core\Entity\EntityStorageInterface:                      
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use         
             \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision  
             instead.                                                        
      142    Call to deprecated method loadRevision() of class               
             Drupal\Core\Entity\EntityStorageInterface:                      
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use         
             \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision  
             instead.                                                        
      185    Call to deprecated method loadRevision() of class               
             Drupal\Core\Entity\EntityStorageInterface:                      
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use         
             \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision  
             instead.                                                        
     ------ ---------------------------------------------------------------- 
     ------ ------------------------------------------------------------------ 
      Line   src/Form/CloudConfigRevisionDeleteForm.php                        
     ------ ------------------------------------------------------------------ 
      128    Call to deprecated method loadRevision() of class                 
             Drupal\Core\Entity\EntityStorageInterface:                        
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use           
             \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision    
             instead.                                                          
      138    Call to deprecated method deleteRevision() of class               
             Drupal\Core\Entity\EntityStorageInterface:                        
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use           
             \Drupal\Core\Entity\RevisionableStorageInterface::deleteRevision  
             instead.                                                          
     ------ ------------------------------------------------------------------ 
     ------ ---------------------------------------------------------------- 
      Line   src/Form/CloudConfigRevisionRevertForm.php                      
     ------ ---------------------------------------------------------------- 
      132    Call to deprecated method loadRevision() of class               
             Drupal\Core\Entity\EntityStorageInterface:                      
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use         
             \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision  
             instead.                                                        
     ------ ---------------------------------------------------------------- 
     ------ ------------------------------------------------------------------ 
      Line   src/Form/CloudLaunchTemplateRevisionDeleteForm.php                
     ------ ------------------------------------------------------------------ 
      131    Call to deprecated method loadRevision() of class                 
             Drupal\Core\Entity\EntityStorageInterface:                        
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use           
             \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision    
             instead.                                                          
      141    Call to deprecated method deleteRevision() of class               
             Drupal\Core\Entity\EntityStorageInterface:                        
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use           
             \Drupal\Core\Entity\RevisionableStorageInterface::deleteRevision  
             instead.                                                          
     ------ ------------------------------------------------------------------ 
     ------ ---------------------------------------------------------------- 
      Line   src/Form/CloudLaunchTemplateRevisionRevertForm.php              
     ------ ---------------------------------------------------------------- 
      151    Call to deprecated method loadRevision() of class               
             Drupal\Core\Entity\EntityStorageInterface:                      
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use         
             \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision  
             instead.                                                        
     ------ ---------------------------------------------------------------- 
     ------ ------------------------------------------------------------------ 
      Line   src/Form/CloudProjectRevisionDeleteForm.php                       
     ------ ------------------------------------------------------------------ 
      131    Call to deprecated method loadRevision() of class                 
             Drupal\Core\Entity\EntityStorageInterface:                        
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use           
             \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision    
             instead.                                                          
      141    Call to deprecated method deleteRevision() of class               
             Drupal\Core\Entity\EntityStorageInterface:                        
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use           
             \Drupal\Core\Entity\RevisionableStorageInterface::deleteRevision  
             instead.                                                          
     ------ ------------------------------------------------------------------ 
     ------ ---------------------------------------------------------------- 
      Line   src/Form/CloudProjectRevisionRevertForm.php                     
     ------ ---------------------------------------------------------------- 
      129    Call to deprecated method loadRevision() of class               
             Drupal\Core\Entity\EntityStorageInterface:                      
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use         
             \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision  
             instead.                                                        
     ------ ---------------------------------------------------------------- 
     ------ ------------------------------------------------------------------ 
      Line   src/Form/CloudStoreRevisionDeleteForm.php                         
     ------ ------------------------------------------------------------------ 
      131    Call to deprecated method loadRevision() of class                 
             Drupal\Core\Entity\EntityStorageInterface:                        
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use           
             \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision    
             instead.                                                          
      141    Call to deprecated method deleteRevision() of class               
             Drupal\Core\Entity\EntityStorageInterface:                        
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use           
             \Drupal\Core\Entity\RevisionableStorageInterface::deleteRevision  
             instead.                                                          
     ------ ------------------------------------------------------------------ 
     ------ ---------------------------------------------------------------- 
      Line   src/Form/CloudStoreRevisionRevertForm.php                       
     ------ ---------------------------------------------------------------- 
      136    Call to deprecated method loadRevision() of class               
             Drupal\Core\Entity\EntityStorageInterface:                      
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use         
             \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision  
             instead.                                                        
     ------ ---------------------------------------------------------------- 
     ------ ---------------------------------------------------------------- 
      Line   src/Service/CloudService.php                                    
     ------ ---------------------------------------------------------------- 
      1723   Call to deprecated method loadRevision() of class               
             Drupal\Core\Entity\EntityStorageInterface:                      
             in drupal:10.1.0 and is removed from drupal:11.0.0. Use         
             \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision  
             instead.                                                        
     ------ ---------------------------------------------------------------- 
     [ERROR] Found 44 errors   
    
πŸ“Œ Task
Status

Fixed

Version

7.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States yas California πŸ‡ΊπŸ‡Έ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @yas
  • Merge request !2241Resolve #3424222 "Comply with drupal" β†’ (Closed) created by yas
  • Status changed to Needs work 10 months ago
  • πŸ‡ΊπŸ‡ΈUnited States yas California πŸ‡ΊπŸ‡Έ
  • Pipeline finished with Failed
    10 months ago
    Total: 242s
    #105661
  • Pipeline finished with Failed
    10 months ago
    Total: 212s
    #105669
  • Pipeline finished with Failed
    10 months ago
    Total: 233s
    #105712
  • Pipeline finished with Failed
    10 months ago
    Total: 246s
    #105733
  • Pipeline finished with Failed
    10 months ago
    Total: 542s
    #105738
  • Pipeline finished with Failed
    10 months ago
    Total: 340s
    #105746
  • Pipeline finished with Failed
    10 months ago
    Total: 545s
    #105757
  • Pipeline finished with Failed
    10 months ago
    #105769
  • Status changed to Needs review 10 months ago
  • πŸ‡ΊπŸ‡ΈUnited States yas California πŸ‡ΊπŸ‡Έ

    @baldwinlouie

    Can you please review the patch? Especially I want you to review the code such as $cloud_config_storage = $this->entityTypeManager()->getStorage('cloud_config'); , which looks invalid, and also Error::logException() refactoring.

    Please refer the test results by https://git.drupalcode.org/project/cloud/-/pipelines/105757 and ignore the following error message:

     ------ --------------------------------------------------------------------- 
      Line   modules/cloud_service_providers/k8s/k8s.module                       
     ------ --------------------------------------------------------------------- 
      790    Call to static method getOptionsListByRegion() on an unknown class   
             Drupal\Core\DateTime\TimeZoneFormHelper.                             
             πŸ’‘ Learn more at https://phpstan.org/user-guide/discovering-symbols  
     ------ --------------------------------------------------------------------- 

    I believe the code return TimeZoneFormHelper::getOptionsListByRegion() is valid however please correct me if I'm wrong.

    Thanks!

  • πŸ‡ΊπŸ‡ΈUnited States yas California πŸ‡ΊπŸ‡Έ
  • Pipeline finished with Failed
    10 months ago
    Total: 287s
    #105836
  • Pipeline finished with Canceled
    10 months ago
    Total: 183s
    #106562
  • Pipeline finished with Failed
    10 months ago
    #106563
  • Pipeline finished with Canceled
    10 months ago
    Total: 280s
    #106568
  • Pipeline finished with Failed
    10 months ago
    Total: 525s
    #106570
  • πŸ‡ΊπŸ‡ΈUnited States yas California πŸ‡ΊπŸ‡Έ

    @baldwinlouie

    FYI, I fixed the following error by including the namespace for Drupal\Core\DateTime\TimeZoneFormHelper::getOptionsListByRegion()

    ------ --------------------------------------------------------------------- 
      Line   modules/cloud_service_providers/k8s/k8s.module                       
     ------ --------------------------------------------------------------------- 
      790    Call to static method getOptionsListByRegion() on an unknown class   
             Drupal\Core\DateTime\TimeZoneFormHelper.                             
             πŸ’‘ Learn more at https://phpstan.org/user-guide/discovering-symbols  
     ------ --------------------------------------------------------------------- 
  • Pipeline finished with Failed
    10 months ago
    #106662
  • Pipeline finished with Failed
    10 months ago
    Total: 853s
    #106710
  • Pipeline finished with Failed
    10 months ago
    Total: 713s
    #107555
  • πŸ‡ΊπŸ‡ΈUnited States yas California πŸ‡ΊπŸ‡Έ

    @baldwinlouie

    Thank you for your review. I understood there had the namespace typo. I fixed it, so can you please review the patch again? phpcs and phpstan have been passed successfully :)

    Thanks!

  • Status changed to Needs work 10 months ago
  • πŸ‡ΊπŸ‡ΈUnited States baldwinlouie

    @yas, Thank you for working on this patch.

    I think the Error::logException() looks good. My concern is the updates for revision handling.

    I downloaded and ran this patch to check the revision handling.

    The usage of $entity_storage->getRevision($revision_id) causes a 500 error because getRevision() method doesn't exist.

    I've been playing with how to use the loadRevision from RevisionableStorageInterface. I think the following modifications should work.

    Consider the usage in updateCloudLaunchTemplate in Ec2BatchOperation.php. The following adjustments made it work. You can recreate this error if you try to `Refresh` AWS launch template. The code that refreshes aws launch templates interacts with Revisions.

    1. Anywhere you need to load entities with revisions, add PHPDoc comment to add typehinting.

        /** @var \Drupal\Core\Entity\RevisionableStorageInterface $entity_storage */
        $entity_storage = $entity_type_manager->getStorage('cloud_launch_template');
    

    2. Change $entity_storage->getRevision back to $entity_storage->loadRevision($revision_id);.

    What do you think?

  • Pipeline finished with Failed
    10 months ago
    Total: 910s
    #107692
  • Pipeline finished with Failed
    10 months ago
    Total: 761s
    #107752
  • Status changed to Needs review 10 months ago
  • πŸ‡ΊπŸ‡ΈUnited States yas California πŸ‡ΊπŸ‡Έ

    @baldwinlouie

    Thank you for your confirmation and suggestion. I added the type hint to avoid the phpstan warnings. I reverted to loadRevision and refactor to use getRevision() if possible.

    Can you please review the patch again? Thanks!

  • Pipeline finished with Failed
    10 months ago
    Total: 833s
    #107770
  • πŸ‡ΊπŸ‡ΈUnited States baldwinlouie

    @yas, thank you for updating the patch. I posted my second round of comments. Basically, all `getRevision()` should be changed to `loadRevision()`. Otherwise you will encounter errors such as the following screenshot

    To reproduce this error.
    1. Go to any AWS Launch Template and click "Edit"
    2. Then click the "Revisions" tab.

    With the current `getRevision()` code, the "Revisions" tab will error out.

  • πŸ‡ΊπŸ‡ΈUnited States yas California πŸ‡ΊπŸ‡Έ

    @baldwinlouie

    Thank you for your review. I am sorry for my misunderstanding. I confirmed the patch on local environment, and it works. Can you please check the patch again? Thanks!

  • Pipeline finished with Failed
    10 months ago
    Total: 696s
    #108545
  • Status changed to RTBC 10 months ago
  • πŸ‡ΊπŸ‡ΈUnited States baldwinlouie

    @yas, thank you for the update! The patch looks good to me now!

  • πŸ‡ΊπŸ‡ΈUnited States yas California πŸ‡ΊπŸ‡Έ

    @baldwinlouie

    Thank you for your review. I'll merge the patch to 7.x, and close this issue as Fixed.

  • Pipeline finished with Skipped
    10 months ago
    #108589
    • yas β†’ committed b60eda91 on 7.x
      Issue #3424222 by yas, baldwinlouie: Comply with Drupal coding standards...
  • Status changed to Fixed 10 months ago
  • πŸ‡ΊπŸ‡ΈUnited States yas California πŸ‡ΊπŸ‡Έ
  • πŸ‡ΊπŸ‡ΈUnited States yas California πŸ‡ΊπŸ‡Έ

    @baldwinlouie

    I found a bug and fixed it. I'll merge the hotfix to 7.x branchand close this issue as Fixed. Thanks!

  • Pipeline finished with Skipped
    10 months ago
    #109439
  • Status changed to RTBC 10 months ago
    • yas β†’ committed 39cb7075 on 7.x
      Issue #3424222 by yas, baldwinlouie: Hotfix - Comply with Drupal coding...
  • Status changed to Fixed 10 months ago
  • πŸ‡ΊπŸ‡ΈUnited States yas California πŸ‡ΊπŸ‡Έ
  • Pipeline finished with Failed
    10 months ago
    Total: 779s
    #109438
  • Status changed to Needs work 10 months ago
  • πŸ‡ΊπŸ‡ΈUnited States yas California πŸ‡ΊπŸ‡Έ

    I found the following error; so I'll fix it.

    TypeError: Drupal\aws_cloud\Service\AwsCloud\AwsCloudOperationsService::__construct(): Argument #1 ($entity_type_manager) must be of type Drupal\Core\Entity\EntityTypeManagerInterface, Drupal\cloud\Plugin\cloud\config\CloudConfigPluginManager given, called in /var/www/cloud_orchestrator/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php on line 260 in Drupal\aws_cloud\Service\AwsCloud\AwsCloudOperationsService->__construct() (line 162 of /var/www/cloud_orchestrator/docroot/modules/contrib/cloud/modules/cloud_service_providers/aws_cloud/src/Service/AwsCloud/AwsCloudOperationsService.php).

  • Status changed to Needs review 10 months ago
  • πŸ‡ΊπŸ‡ΈUnited States yas California πŸ‡ΊπŸ‡Έ

    I tested the patch, so it should work.

  • πŸ‡ΊπŸ‡ΈUnited States yas California πŸ‡ΊπŸ‡Έ

    @baldwinlouie

    I'll merge the hotfix to 7.x branch and close this issue as Fixed. Thanks!

  • Pipeline finished with Skipped
    10 months ago
    #109559
  • Status changed to RTBC 10 months ago
    • yas β†’ authored 36dbecc4 on 7.x
      Issue #3424222 by yas: Hotfix - Comply with Drupal coding standards (30...
  • Status changed to Fixed 10 months ago
  • πŸ‡ΊπŸ‡ΈUnited States yas California πŸ‡ΊπŸ‡Έ
  • Pipeline finished with Failed
    10 months ago
    Total: 757s
    #109554
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024