-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1604 from griidc/release/6.59.1
release/6.59.1
- Loading branch information
Showing
14 changed files
with
352 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,17 +46,9 @@ ACCOUNT_LESS_STRICT_PASSWORD_RULES=0 | |
MAILER_FROM_ADDR='[email protected]' | ||
MAILER_FROM_NAME='SenderName' | ||
MAILER_BCC_ADDR='[email protected]' | ||
PELAGOS_NAME=pelagos | ||
ISSUE_TRACKING_BASE_URL='https://griidc.atlassian.net/browse' | ||
DATABASE_NAME=pelagos | ||
DATA_STORE_DIRECTORY=/path/to/store/directory | ||
DATA_DOWNLOAD_DIRECTORY=/path/to/download/directory | ||
DATA_STORE_OWNER=user | ||
DATA_STORE_GROUP=group | ||
DATA_DOWNLOAD_BROWSER_GROUP=browser_group | ||
WEB_SERVER_USER=apache | ||
ANONYMOUS_FTP_USER=user | ||
ANONYMOUS_FTP_PASS=pass | ||
DOWNLOAD_PATH="path/to/zip" | ||
INGEST_API_URL="https://ingest-server:port/api-name" | ||
GCMD_VERSION="16.9" | ||
|
@@ -77,7 +69,6 @@ DOWNLOAD_BASE_URL=https://server-name/path/file-download | |
POSIX_STARTING_UID=10000 | ||
POSIX_GID=1001 | ||
REQUEST_CONTEXT_BASE_URL='/pelagos-symfony' | ||
FILESYSTEM_TYPE='Linux' | ||
|
||
###> DOI API Parameters ### | ||
DOI_API_USER_NAME="username" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?php | ||
|
||
namespace App\Controller\Admin; | ||
|
||
use App\Entity\LogActionItem; | ||
use EasyCorp\Bundle\EasyAdminBundle\Config\Action; | ||
use EasyCorp\Bundle\EasyAdminBundle\Config\Actions; | ||
use EasyCorp\Bundle\EasyAdminBundle\Config\Crud; | ||
use EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractCrudController; | ||
use EasyCorp\Bundle\EasyAdminBundle\Field\DateTimeField; | ||
use EasyCorp\Bundle\EasyAdminBundle\Field\IdField; | ||
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField; | ||
|
||
class LogActionItemCrudController extends AbstractCrudController | ||
{ | ||
public static function getEntityFqcn(): string | ||
{ | ||
return LogActionItem::class; | ||
} | ||
|
||
/** | ||
* Configure the Crud actions. | ||
* | ||
* @param Actions $actions actions object that need to be configured | ||
*/ | ||
public function configureActions(Actions $actions): Actions | ||
{ | ||
$actions->disable(Action::NEW); | ||
$actions->disable(Action::EDIT); | ||
$actions->disable(Action::DELETE); | ||
|
||
return $actions; | ||
} | ||
|
||
/** | ||
* Configure fields for EZAdmin CRUD Controller. | ||
* | ||
* @param string $pageName default param for parent method (not used) | ||
*/ | ||
public function configureFields(string $pageName): iterable | ||
{ | ||
return [ | ||
IdField::new('id') | ||
->onlyOnIndex(), | ||
TextField::new('actionName', 'What Happened'), | ||
TextField::new('subjectEntityName', 'Happened To'), | ||
IdField::new('subjectEntityId', 'Which One'), | ||
DateTimeField::new('creationTimeStamp', 'Happened When'), | ||
TextField::new('payloadDetails'), | ||
]; | ||
} | ||
|
||
/** | ||
* CRUD configuration function. | ||
* | ||
* @param Crud $crud instance for crud controller to add additional configuration | ||
*/ | ||
public function configureCrud(Crud $crud): Crud | ||
{ | ||
return parent::configureCrud($crud) | ||
->setPageTitle(Crud::PAGE_INDEX, 'Logged Actions') | ||
->setDefaultSort(['creationTimeStamp' => 'DESC']); | ||
} | ||
} |
Oops, something went wrong.