Fix below error

Drupal\Core\Database\DatabaseExceptionWrapper: Exception in K8s Replica Sets[k8s_replica_set]: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'unknown' in 'order clause': SELECT k8s_replica_set.id AS id FROM {k8s_replica_set} k8s_replica_set WHERE namespace IN (:db_condition_placeholder_0, :db_condition_placeholder_1, :db_condition_placeholder_2, :db_condition_placeholder_3, :db_condition_placeholder_4, :db_condition_placeholder_5) ORDER BY unknown ASC LIMIT 51 OFFSET 0; Array ( [:db_condition_placeholder_0] => database [:db_condition_placeholder_1] => default [:db_condition_placeholder_2] => gitlab-managed-apps [:db_condition_placeholder_3] => kube-node-lease [:db_condition_placeholder_4] => kube-public [:db_condition_placeholder_5] => kube-system ) in Drupal\views\Plugin\views\query\Sql->execute() (line 1543 of /var/www/html/web/docomo-testing/web/core/modules/views/src/Plugin/views/query/Sql.php).

Comments

jigish.addweb created an issue. See original summary.

jigish.addweb’s picture

Status: Active » Needs review
StatusFileSize
new1.69 KB
yas’s picture

Status: Needs review » Needs work

@jigishaddweb

Thank you for fixing the issue. In that case, could you please change the wording of the label in the following code? (also, views.view needs to be updated)

FROM:

    $fields['replicas'] = BaseFieldDefinition::create('integer')
      ->setLabel(t('Replica'))
      ->setDescription(t('Total number of non-terminated pods on manifest.'))
      ->setDisplayOptions('view', [
        'label' => 'inline',
        'type' => 'string',
        'weight' => -5,
      ])
      ->setReadOnly(TRUE);

TO:

    $fields['replicas'] = BaseFieldDefinition::create('integer')
      ->setLabel(t('Replicas))
      ->setDescription(t('Total number of non-terminated pods on manifest.'))
      ->setDisplayOptions('view', [
        'label' => 'inline',
        'type' => 'string',
        'weight' => -5,
      ])
      ->setReadOnly(TRUE);
jigish.addweb’s picture

Status: Needs work » Needs review
StatusFileSize
new2.39 KB
new574 bytes

@yas

Thank you for testing the patch. Changed the label pf Replica.

Please test updated patch.

Thanks

  • yas committed f0ab594 on 8.x-1.x authored by jigish.addweb
    Issue #3117337 by jigish.addweb, yas: Fix an error of Replica Sets
    

  • yas committed cf36573 on 8.x-2.x authored by jigish.addweb
    Issue #3117337 by jigish.addweb, yas: Fix an error of Replica Sets
    
yas’s picture

Status: Needs review » Fixed
Related issues: +#3095569: Composer could not parse version constraint / could not load package (2)

@jigishaddweb

Thank you for the update. It looks good to me now. I merged the patch to 8.x-1.x and 8.x-2.x and close this issue as Fixed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.