Conversation
dbfae82 to
f9630d7
Compare
aabb79c to
619ef66
Compare
| field_name: ezxform_token | ||
| form: ~ | ||
| csrf_protection: | ||
| enabled: true |
There was a problem hiding this comment.
You could just add:
csrf_protection: ~There was a problem hiding this comment.
Will adapt when rebasing up from master ;)
26311ad to
9b03747
Compare
| translator: { fallback: '%locale_fallback%' } | ||
| secret: '%env(SYMFONY_SECRET)%' | ||
| translator: { fallback: "%locale_fallback%" } | ||
| secret: "%env(SYMFONY_SECRET)%" |
There was a problem hiding this comment.
any reason why we changed back to "?
Reason why it was changed to ' was to stay close to upstream: https://github.com/symfony/symfony-standard/blob/3.4/app/config/config.yml#L11-L24
So maybe we we can rebase these changes away to reduce the diff (which will cause conflict when rebasing on master again).
|
|
||
| _ezpublishRoutes: | ||
| resource: '@EzPublishCoreBundle/Resources/config/routing/internal.yml' | ||
| kernel.internal: |
There was a problem hiding this comment.
should these have ez. prefix?
| - { resource: parameters.yml } | ||
| - { resource: security.yml } | ||
| - { resource: env/docker.php } | ||
| - { resource: env/platformsh.php } |
There was a problem hiding this comment.
Did we find a way to avoid them? Or should we re add these?
I was originally trying to remove the docker one thing I could do everything with env, but the cache case remaining in env/docker.php I did not manage to find a way around.
Also afaik don't think we can avoid the env/platformsh.php in some form as the env variable comes as a json string.
| logout: ~ | ||
|
|
||
| main: | ||
| default: |
There was a problem hiding this comment.
It's main in symfony 3.x: https://github.com/symfony/symfony-standard/blob/3.4/app/config/security.yml#L16 But if that breaks anything I guess we have changes to do other places to if we want to adapt for it.
also the comments comes from same source.
| { | ||
| "name": "ezplatform-admin-ui", | ||
| "authors": [ | ||
| "Nattfarinn <nattfarinn@gmail.com>" |
There was a problem hiding this comment.
If we allign with composer.json we would need to adopt this.
ref:
{
"name": "eZ dev-team & eZ Community",
"homepage": "https://github.com/ezsystems/ezplatform/contributors"
},
There was a problem hiding this comment.
That one is surprisingly my modification 😀
bower install said to me:
bower invalid-meta The "name" is recommended to be lowercase, can contain digits, dots, dashes
With ampersand it even crashes :)
There was a problem hiding this comment.
Well it doesn't need to be the exact same, point it so attribute teams and not the once who created the file in question ;)
There was a problem hiding this comment.
So we're talking about two things:
- name is supposed to be package name, not author
authorhere really should beeZ dev-team & eZ Community
But... @sunpietro and @dew326 mentioned to me yesterday that bower won't even be a part of final version, as there will be separate repository with already downloaded assets, right guys?
There was a problem hiding this comment.
a part of final version, as there will be separate repository with already downloaded assets, right guys?
makes sense, was strange to find it here, then of course ignore this thread and let's not waste more breath on it :)
| "description": "eZ Platform distribution", | ||
| "homepage": "https://github.com/ezsystems/ezplatform", | ||
| "license": "GPL-2.0", | ||
| "type": "project", |
There was a problem hiding this comment.
should not be removed here, cause if it is it will default to library:
https://getcomposer.org/doc/04-schema.md#type
Edit: I see it was moved down, we can remove this change in rebase
| } | ||
| }, | ||
| "branch-alias": { | ||
| "dev-master": "2.0.x-dev" |
There was a problem hiding this comment.
note: we'll need this once this is master again
| if (($useDebugging = getenv('SYMFONY_DEBUG')) === false || $useDebugging === '') { | ||
| $useDebugging = $environment === 'dev'; | ||
| require __DIR__.'/../vendor/autoload.php'; | ||
| if (PHP_VERSION_ID < 70000) { |
There was a problem hiding this comment.
as we require higher version of PHP then 7.0 we can ommit thise lines
There was a problem hiding this comment.
It's Symfony standard app.php file. I didn't change it at all, but you're right - we can remove this. :)
| if (PHP_VERSION_ID < 70000) { | ||
| $kernel->loadClassCache(); | ||
| } | ||
| //$kernel = new AppCache($kernel); |
There was a problem hiding this comment.
hmm, unsure on this. App cache should probably be on by default in eZ for better first impression for people installing, but having it on implies we need the env variables for it to be able to reconfigure for demos. Also for our own demo system it implies we are forced to use Varnish, however we are cable of doing that now so maybe it's ok on that point at least.
But maybe all this doesn't matter, if we manage to change to use Symfony Flex (which we imho should, too many benefits..) all of these things will need to be configurable with ENVs and stuff anyway as root is auto generated by flex based on packages.
There was a problem hiding this comment.
in anycase, if this needs to be commented here, i would add another comment to say why that's is commented. if not, to me code commented = code that can be deleted.
There was a problem hiding this comment.
@crevillo not needed yet, this is pre beta, we will probably revert some of these changes. this is very much WIP ;)
There was a problem hiding this comment.
We must just make sure that we don't forget about it. Maybe a todo item in the PR ?
There was a problem hiding this comment.
I'll add a todo to review more of the changes introduced in EZP-27888: Prepare Meta repository to use new eZ Platform Admin UI, but at least the AppCache stuff has been activated again in latests rebase here.
* EZP-28018: Add Behat configuration and dependencies * EZP-28018: Use SYMFONY_ENV as env value * Revert "EZP-28018: Use SYMFONY_ENV as env value" This reverts commit 1a84e15.
|
@emodric rebased, slimmed down the diff while at it @Nattfarinn. Might be ok to move this to review now. |
| purge_servers: ['%env(PURGE_SERVERS)%'] | ||
| # Temporary hard coding session name during v2 development | ||
| session: | ||
| name: eZSESSID |
There was a problem hiding this comment.
Do we still need this for admin UI or was it a hybrid ui temprary issue that we can now revert / rebase out ?
| prefix: '%ezpublish_rest.path_prefix%' | ||
| prefix: /api/ezp/v2 | ||
|
|
||
| _ezpublishRestOptionsRoutes: |
There was a problem hiding this comment.
We don't need REST options routes anymore?
| prefix: '%ezpublish_rest.path_prefix%' | ||
| type: rest_options | ||
|
|
||
| _liip_imagine: |
There was a problem hiding this comment.
Was this ever used for anything in the first place? aka should it not be in 1.x either? /cc @bdunogier
As we now use docker containers for most behat testing the inline workaround for issues with travis can be removed from the template.
| "ezsystems/ezplatform-admin-ui": "^1.0@dev", | ||
| "ezsystems/ezplatform-admin-ui-modules": "^1.0@dev", | ||
| "ezsystems/ezplatform-admin-ui-assets": "^0.3", | ||
| "ezsystems/ezplatform-admin-ui-assets": "^0.4", |
There was a problem hiding this comment.
If ezsystems/ezplatform-admin-ui would specify this as dependency we would only need to specify it here and bump it when needing non stable packages ("0.x" is in that sense considered "stable").
…wing fallback to env vars (#233)
…t of eZ Platform v2 (#232) * [Composer] EZP-28223: Added dependency on ezsystems/behatbundle * EZP-28223: Enabled Behat bundles in AppKernel * [REST Tests] Added dependency on phpunit/phpunit to run REST tests REST Functional tests are run from within docker container of ezplatform web app, so phpunit is required * [Travis] Deprecated setup_from_external_repo script * [Travis] Created setup_ezplatform script for dockerized test setup * [Travis] Used setup_ezplatform script to setup docker containers * [Travis] Added EZP-27752 create language command * EZP-28223: Fixed default behat configuration * [Travis] Optimized dependency setup for behat test Instead of using composer pointing to local checkout, it installs all dependencies and then overwrites the one being tested It's less time consuming, because composer doesn't try to read all tags and branches to find matching dependency before realizing the one its looking for truly exists in the local checkout :) * [Behat] Added BehatBundle behat profile with suites * [Composer][AppKernel] Enabled eZ Platform Design Engine bundle * EZP-28375: Restored Behat configuration
* [Travis] Use .env file for picking install * [Travis] For now disable testing on varnsih
|
Master is now 2.1! 🌮 |
Work in progress, contribution/review/thoughts welcome.
Done:
env/docker.phpconcept and rather use:env/docker.phpinsteadSYMFONY_CLASSLOADER_FILEas composer is handling all class loading nowSYMFONY_HTTP_CACHE_CLASS, as with kernel if you need to do changes on AppCache it's "fine" to do it on the class and handle conflicts on upgrades yourself so you are aware of upstream changes.env()variablesTodos: