1
0
mirror of https://github.com/flarum/core.git synced 2025-08-31 11:52:16 +02:00
Commit Graph

8263 Commits

Author SHA1 Message Date
Daniël Klabbers
48064184a7 Copied over logic from EditTagModal to allow additional attributes to be send
to the API based on additional fields rendered by extending the fields.
2019-02-18 08:43:47 +01:00
Franz Liedke
876c5d3a10 Add changelog 2019-02-15 00:30:51 +01:00
Franz Liedke
34553bb823 Add changelog 2019-02-15 00:30:51 +01:00
Franz Liedke
d97df66e34 Add changelog 2019-02-15 00:30:51 +01:00
Franz Liedke
f45e15c877 Add changelog 2019-02-15 00:30:50 +01:00
Franz Liedke
f00f3c985a Add changelog 2019-02-15 00:30:50 +01:00
Franz Liedke
a27b500e9a Add changelog 2019-02-15 00:30:49 +01:00
Franz Liedke
72f9f7d5b5 Add changelog 2019-02-15 00:30:49 +01:00
Franz Liedke
e432c0b663 Update changelog 2019-02-15 00:30:04 +01:00
Franz Liedke
6d0de4b29c Update changelog 2019-02-15 00:30:04 +01:00
Franz Liedke
d6604dfa74 Update changelog 2019-02-15 00:30:03 +01:00
Franz Liedke
55b1fd5461 Update changelog 2019-02-15 00:30:03 +01:00
Franz Liedke
979030432f Update changelog 2019-02-15 00:30:00 +01:00
Franz Liedke
b36a58db10 Update changelog 2019-02-14 23:40:18 +01:00
flarum-bot
1342fb5c3a Bundled output for commit c28aaf8ddd [skip ci] 2019-02-13 19:09:54 +00:00
flarum-bot
20f6c33113 Bundled output for commit 06b2968636 [skip ci] 2019-02-13 19:09:47 +00:00
Franz Liedke
86dc439d52 Update JS dependencies to fix vulnerable packages 2019-02-13 20:08:20 +01:00
Franz Liedke
c28aaf8ddd Update JS dependencies to fix vulnerable packages 2019-02-13 20:08:15 +01:00
Franz Liedke
06b2968636 Update JS dependencies to fix vulnerable packages 2019-02-13 20:08:05 +01:00
Daniël Klabbers
209455481d prefixes indices when installing too 2019-02-05 09:50:15 +01:00
Daniël Klabbers
cd4fc8e7db Capsule manager (#1744)
Refactored to use the Capsule Database manager for setting up the
Flarum (mysql) connection.

This will introduce the reconnector automatically, fixing #1740
2019-02-04 23:31:12 +01:00
Franz Liedke
233b495ff8 Properly wrap error bag in session
Second part of fixing #1683.
2019-02-03 21:16:43 +01:00
Franz Liedke
e4a913db95 Fix error redirect when resetting passwords
This was an oversight from the large database column renamings.

Fixes #1683.
2019-02-03 21:06:47 +01:00
Franz Liedke
d515b16303 Depend on Laravel 5.7 for correct index names 2019-02-03 20:51:23 +01:00
Franz Liedke
95d01f3136 Depend on Laravel 5.7 for correct index names 2019-02-03 20:51:10 +01:00
Franz Liedke
b0d948dc32 Add helpful (?) output to test setup script 2019-02-03 20:39:33 +01:00
Franz Liedke
11a2af43f3 travis: Configure setup for integration tests 2019-02-03 20:39:33 +01:00
Franz Liedke
7870bf9149 Setup Composer commands for testing and setup 2019-02-03 20:39:33 +01:00
Franz Liedke
31266d3029 Make integration tests independent
This creates a dedicated test suite for integration tests. All of them
can be run independently, and there is no order dependency - previously,
all integration tests needed the installer test to run first, and they
would fail if installation failed.

Now, the developer will have to set up a Flarum database to be used by
these tests. A setup script to make this simple will be added in the
next commit.

Small tradeoff: the installer is NOT tested in our test suite anymore,
only implicitly through the setup script. If we decide that this is a
problem, we can still set up separate, dedicated installer tests which
should probably test the web installer.
2019-02-03 20:39:32 +01:00
Franz Liedke
e835b537f1 Move integration tests to separate directory
Again, we do all of this to prepare for creating "real" test suites for
each type of tests.
2019-02-01 19:01:12 +01:00
Franz Liedke
03c854b902 Extract pure unit tests so that they can run fast
- Move to separate directory (base for a separate test suite)
- Inherit directly from PhpUnit
- Configure test suite with dedicated XML file
2019-02-01 19:01:09 +01:00
Franz Liedke
81648f643d Merge pull request #1617 from flarum/fl/installer-cleanup
Split up the installer logic
2019-02-01 17:43:59 +01:00
Franz Liedke
638f934ec4 Use Collection class rather than collect() helper 2019-02-01 14:12:29 +01:00
Franz Liedke
fd7610ffee Improve problem description for wrong PHP version 2019-02-01 13:00:25 +01:00
Franz Liedke
d27a9a6421 DatabaseConfig: Implement Arrayable contract 2019-02-01 13:00:07 +01:00
Franz Liedke
4baf5d5008 Fix tests 2019-02-01 10:33:21 +01:00
Franz Liedke
d4cdd11533 Installer: Support reverting asset publication 2019-01-31 22:43:07 +01:00
Franz Liedke
6f8707fa51 Migrator: Fix resetting core migrations 2019-01-31 22:42:35 +01:00
Franz Liedke
f0287c376a Fix table name in migration 2019-01-31 22:01:05 +01:00
Franz Liedke
0273bf78db Remove obsolete dropForeign() migration
Forgotten in commit cbc95e42dd.
2019-01-31 22:00:41 +01:00
Franz Liedke
4f829a5407 Check MariaDB version, update MySQL constraint
See flarum/docs#43.
2019-01-31 21:52:10 +01:00
Franz Liedke
f2bc007c2d Simplify DataProviderInterface
Instead of passing all these objects / arrays from one object to the
next, simply pass an Installation instance around for configuration.
2019-01-31 21:52:10 +01:00
Franz Liedke
7b2807a839 Extract DatabaseConfig class with validation 2019-01-31 21:52:09 +01:00
Franz Liedke
1e056b2c50 Extract AdminUser class that enforces invariants 2019-01-31 21:52:09 +01:00
Franz Liedke
cf56157ec7 Move password confirmation validation to frontends
Since this is not strictly speaking a domain invariant, but rather
specific to the user interface where passwords are not displayed, and
should therefore be entered twice to prevent mistakes going unnoticed,
this stuff should be checked in the frontend, not in the install steps.

Next step: Ensure that all domain-specific validation is done in the
installer's domain layer. This will ensure these validations cannot be
forgotten, and keep the frontends DRY.
2019-01-31 21:52:08 +01:00
Franz Liedke
ec88138f1d Use dedicated temporary variable instead of array 2019-01-31 21:52:08 +01:00
Franz Liedke
ee919b272b Combine building and storing config in one step 2019-01-31 21:52:08 +01:00
Franz Liedke
24c91e49bc Get rid of DefaultsDataProvider
Since we do not provide a development VM anymore, it does not make sense
to have "default" credentials etc.

To reproduce something similar, I'd suggest using a YAML or JSON file
together with the `--file` option.
2019-01-31 21:52:07 +01:00
Franz Liedke
021aafd226 Switch to a whitelist for enabling extensions 2019-01-31 21:52:07 +01:00
Franz Liedke
f0a243cc37 Move default settings to install step
The various installation "frontends" (such as GUI and console) can now
provide custom overrides, if they want to.
2019-01-31 21:52:06 +01:00