Dashboard / Overview pages doesn't work
it4need opened this issue · 3 comments
Without a failing test, I cannot see any tests in the dashboard.
If I make one test failed, that I get an url like in the screenshot from the terminal
When I go to the site, I can see everything - just fine...
But when I click on any sidebar item, I will get an empty result (where I think the tests should be listed).
Same for the /enlight/ dashboard after clicking "View"
"require": {
"php": "^7.4",
"ext-json": "*",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^1.0",
"guzzlehttp/guzzle": "^7.0.1",
"laravel/framework": "^8.0",
"laravel/legacy-factories": "^1.0",
"laravel/tinker": "^2.0",
"nwidart/laravel-modules": "^7.1",
"wikimedia/composer-merge-plugin": "^1.4"
},
This is ready to go on the next release.
You can use the main
branch in the meantime. Please refresh the migrations after pulling these changes.
Thanks!
@it4need this should be now fixed in v0.2.8
, if it's not please contact me on Discord (https://discord.gg/hNCV6p) as I was unable to reproduce the error in my local environment.
Thanks for trying our component :)
At first, thanks for the fast reply.
These pages (/enlighten/run/1/site
) are looking good now. But the dashboard (/enlighten/
) is now unaccessable, resulting in a 403 Forbidden
.
On top of that, only for your information - after I did the update to v.0.2.8
I can't just do php artisan migrate:fresh
. It didn't clear out the ayda-api-enlighten
database (as I defined it in the config). I did it manually and migrated the database afterwords - that was the solution for this problem.
Config:
'enlighten' => [
'driver' => 'mysql',
'url' => env('DATABASE_URL'),
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '3306'),
'database' => 'ayda-api-enlighten',
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'prefix_indexes' => true,
'strict' => true,
'engine' => null,
'options' => extension_loaded('pdo_mysql') ? array_filter([
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
]) : [],