Skip to content

Commit

Permalink
Miscellaneous Pipeline (CFM-33) and EIS (CFM-32) fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Benn Oshrin committed May 22, 2024
1 parent ccfbae7 commit 0b826a0
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/src/Model/Table/ExtIdentitySourceRecordsTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
// This should be ExternalIdentitySourceRecordsTable but then alias.field assembly
// exceeds Cake's 61 character limit
class ExtIdentitySourceRecordsTable extends Table {
use \App\Lib\Traits\AutoViewVarsTrait;
use \App\Lib\Traits\ChangelogBehaviorTrait;
use \App\Lib\Traits\CoLinkTrait;
use \App\Lib\Traits\LabeledLogTrait;
Expand Down
5 changes: 5 additions & 0 deletions app/src/Model/Table/ExternalIdentitySourcesTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ public function initialize(array $config): void {
'add' => ['platformAdmin', 'coAdmin'],
'index' => ['platformAdmin', 'coAdmin'],
'status' => ['platformAdmin', 'coAdmin']
],
'related' => [
'table' => [
'ExtIdentitySourceRecords'
]
]
]);
}
Expand Down
3 changes: 3 additions & 0 deletions app/src/Model/Table/PipelinesTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,9 @@ protected function duplicateFilterEntityData($entity): array {
foreach(['valid_from', 'valid_through'] as $attr) {
if(!empty($entity->$attr)) {
$newdata[$attr] = $entity->$attr->i18nFormat('yyyy-MM-dd HH:mm:ss');
} else {
// Populate a blank value so removal works correctly
$newdata[$attr] = "";
}
}

Expand Down
3 changes: 2 additions & 1 deletion app/templates/ExtIdentitySourceRecords/columns.inc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
$indexColumns = [
// We start with id to ensure there is a clickable field in the row
'id' => [
'type' => 'link'
'type' => 'link',
'sortable' => true
],
'external_identity_source_id' => [
'type' => 'relatedLink',
Expand Down
6 changes: 6 additions & 0 deletions app/templates/ExternalIdentitySources/columns.inc
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ $rowActions = [
'label' => __d('operation', 'ExternalIdentitySources.search'),
'icon' => 'search'
],
[
'controller' => 'ExtIdentitySourceRecords',
'action' => 'index',
'label' => __d('operation', 'view.a', [__d('controller', 'ExtIdentitySourceRecords', 99)]),
'icon' => 'view_list'
],
[
'action' => 'edit',
'label' => __d('operation', 'edit.a', [__d('controller', 'ExternalIdentitySources', 1)]),
Expand Down

0 comments on commit 0b826a0

Please sign in to comment.