-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removed parameters.yml and sqlite database files from repo #1
Conversation
@norzechowicz thanks for your pull request. I was expecting a PR like this, but I didn't expect it that soon! Sadly I must close this PR without merging it. The reason? This demo application must work out-of-the-box without configuring anything or executing any command. That's why we link compiled CSS/JS instead of using Assetic, we provide a SQLite database with the sample data instead of forcing the user to create the database and load fixtures, etc. This application is for the absolute Symfony beginner, so everything must work right without doing anything. I hope you understand it :) |
Yea I see the point of keeping the database file but not the parameters.yml, even absolute Symfony beginner needs to install dependencies and this will generate parameters.yml, but correct me if I'm wrong. |
@norzechowicz when installing this application via the |
Why not configure database in It is a bad practice to keep |
It's also a bad practice to keep whole database in repository. |
@michalpipa you are right (and @norzechowicz is also right). It's a good practice to not put But this application is a very special piece of software. It's designed as a learning tool for the absolute beginner. What we want is that you execute the "symfony demo" command in the Symfony Installer ... and 10 seconds later you have downloaded and installed a full Symfony application that works without executing any command or doing any change. |
Hi guys! I totally agree with Javier :). But what we can do is add comments in the code to help guide the beginners as they're discovering things. @javiereguiluz I do have one idea I'd like your thoughts on. What if we didn't commit |
@weaverryan I propose you something: let me finish the |
👍 Love that we'll be able to iterate and improve the demo very easily. So yea, no rush to do this |
…ky-bw) This PR was squashed before being merged into the main branch. Discussion ---------- Install stty required for tests on ubuntu-latest In every test job we have skipped tests: ``` Run vendor/bin/simple-phpunit -v PHPUnit 9.5.4 by Sebastian Bergmann and contributors. Runtime: PHP 8.0.5 Configuration: /home/runner/work/demo/demo/phpunit.xml.dist Warning: Your XML configuration validates against a deprecated schema. Suggestion: Migrate your XML configuration using "--migrate-configuration"! Testing SSSS........................................... 47 / 47 (100%) Time: 00:14.918, Memory: 74.50 MB There were 4 skipped tests: 1) App\Tests\Command\AddUserCommandTest::testCreateUserNonInteractive with data set #0 (false) `stty` is required to test this command. /home/runner/work/demo/demo/tests/Command/AddUserCommandTest.php:35 2) App\Tests\Command\AddUserCommandTest::testCreateUserNonInteractive with data set #1 (true) `stty` is required to test this command. /home/runner/work/demo/demo/tests/Command/AddUserCommandTest.php:35 3) App\Tests\Command\AddUserCommandTest::testCreateUserInteractive with data set #0 (false) `stty` is required to test this command. /home/runner/work/demo/demo/tests/Command/AddUserCommandTest.php:35 4) App\Tests\Command\AddUserCommandTest::testCreateUserInteractive with data set #1 (true) `stty` is required to test this command. /home/runner/work/demo/demo/tests/Command/AddUserCommandTest.php:35 OK, but incomplete, skipped, or risky tests! Tests: 47, Assertions: 92, Skipped: 4. Remaining indirect deprecation notices (1) 1x: The "DAMA\DoctrineTestBundle\Doctrine\DBAL\AbstractStaticDriverV2" class implements "Doctrine\DBAL\Driver\ExceptionConverterDriver" that is deprecated. 1x in PHPUnitExtension::executeBeforeFirstTest from DAMA\DoctrineTestBundle\PHPUnit ``` It would be good to run those tests at least on Ubuntu I think Commits ------- 944b320 Install stty required for tests on ubuntu-latest
No description provided.