Skip to content

Commit

Permalink
Merge pull request #2 from bolt/master
Browse files Browse the repository at this point in the history
merge in order to continue development
  • Loading branch information
Wieter committed Nov 3, 2020
2 parents 4b19199 + c3621d6 commit b024a5c
Show file tree
Hide file tree
Showing 222 changed files with 18,409 additions and 4,844 deletions.
2 changes: 0 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@ root = true
; Unix-style newlines
[*]
end_of_line = LF

[*.php]
indent_style = space
indent_size = 4
6 changes: 1 addition & 5 deletions .env.dist → .env
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# This file is a "template" of which env vars needs to be defined in your configuration or in an .env file
# Set variables here that may be different on each deployment target of the app, e.g. development, staging, production.
# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration

###> symfony/framework-bundle ###
APP_ENV=dev
APP_DEBUG=1
Expand All @@ -24,7 +20,7 @@ DATABASE_URL=sqlite:///%kernel.project_dir%/var/data/bolt.sqlite
#DATABASE_URL=mysql://db_user:"db_password"@localhost:3306/db_name

# Postgres
#DATABASE_URL=postgresql://db_user:"db_password"@localhost:5432/db_name?serverVersion=11"
#DATABASE_URL=postgresql://db_user:"db_password"@localhost:5432/db_name?serverVersion=11&charset=utf8"

# MYSQL / MariaDB (additional settings, needed for Docker)
#DATABASE_USER=db_user
Expand Down
23 changes: 23 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/.editorconfig export-ignore
/.env export-ignore
/.git export-ignore
/.gitattributes export-ignore
/.github export-ignore
/.gitignore export-ignore
/.phpspec.yml export-ignore
/.travis.yml export-ignore
/behat.yml export-ignore
/docker-compose.yml export-ignore
/ecs.php export-ignore
/Makefile export-ignore
/phpstan.neon export-ignore
/phpunit.bootstrap.php export-ignore
/phpunit.xml.dist export-ignore
/run_behat_tests.sh export-ignore
/symfony.lock export-ignore
/bin export-ignore
/config export-ignore
/docker export-ignore
/public export-ignore
/tests export-ignore
/var export-ignore
16 changes: 8 additions & 8 deletions .github/ISSUE_TEMPLATE/1_Bug.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ See: https://github.com/bolt/bolt/blob/master/.github/CONTRIBUTING.md
Details
-------

| Question | Answer
|----------------- | ------
| Relevant Bolt Version | legacy / 4.0 / 4.1 / master
| Install type | Zip or tar install / Composer install / GitHub checkout
| BC Break | yes/no
| PHP version | 7.2 / 7.3 / 7.4 |
| Web server | Apache / Nginx / Built-in, version [ version ]
| For UX/UI issues | Browser name and version
| Question | Answer
|------------------------------------------------------ | ------
| Relevant Bolt Version | legacy / 4.0 / 4.1 / master
| Install type | Zip or tar install / Composer install / GitHub checkout
| <abbr title="Backwards Compatibility">BC</abbr> Break | yes/no
| PHP version | 7.2 / 7.3 / 7.4 |
| Web server | Apache / Nginx / Built-in, version [ version ]
| For UX/UI issues | Browser name and version


Reproduction
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/assets_code_analysis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Assets Code Analysis

on:
pull_request: null
push:
branches:
- master

jobs:
asses_code_analysis:
strategy:
fail-fast: false
matrix:
actions:
-
name: Lint Javascript files
run: npm run lint

-
name: Lint on SCSS files
run: npm run stylelint

name: ${{ matrix.actions.name }}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

# see https://github.com/actions/starter-workflows/blob/main/ci/node.js.yml
-
name: Use Node.js 12.5
uses: actions/setup-node@v1
with:
node-version: 12.5

# same as "npm install", just uses package-lock.json", see https://stackoverflow.com/a/53325242/1348344
- run: npm ci

- run: ${{ matrix.actions.run }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ appveyor.yml
.php-version

###> symfony/framework-bundle ###
/.env
/public/bundles/
/vendor/
###< symfony/framework-bundle ###
Expand All @@ -92,3 +91,4 @@ appveyor.yml
###> phpunit/phpunit ###
/phpunit.xml
###< phpunit/phpunit ###

84 changes: 36 additions & 48 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,67 +1,55 @@
language: php
os: linux
dist: xenial
sudo: false
php:
- 7.2
- 7.3
- 7.4

env:
- APP_ENV_CURRENT=prod APP_DEBUG_CURRENT=0
- APP_ENV_CURRENT=dev APP_DEBUG_CURRENT=1
- 7.2
- 7.3
- 7.4

addons:
chrome: stable
chrome: stable

cache:
directories:
- $HOME/.composer/cache/files
directories:
- $HOME/.composer/cache/files

matrix:
fast_finish: true
jobs:
fast_finish: true

before_install:
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || echo "xdebug not available"
- export $(grep -v '^#' .env.dist | xargs -d '\n') # export all environment variables (overrides APP_ENV, APP_DEBUG)
- export APP_ENV="$APP_ENV_CURRENT" APP_DEBUG="$APP_DEBUG_CURRRENT" # put back original environment variables
- composer self-update -q
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || echo "xdebug not available"
- composer self-update --2 -q

install:
- COMPOSER_MEMORY_LIMIT=-1 composer update $COMPOSER_FLAGS
- ./bin/console bolt:info
- nvm install 12.5
- npm ci
- mkdir -p ./var/log/e2e-reports/report/features/
- touch ./var/log/e2e-reports/report/features/.gitkeep
- COMPOSER_MEMORY_LIMIT=-1 composer update
- ./bin/console bolt:info
- nvm install 12.5
- npm ci
- mkdir -p ./var/log/e2e-reports/report/features/
- touch ./var/log/e2e-reports/report/features/.gitkeep

before_script:
# build assets
- npm run build
# prepare web server for e2e tests
- ./bin/console doctrine:database:create
- ./bin/console doctrine:schema:create
- ./bin/console doctrine:fixtures:load --group=without-images -n
- ./bin/console server:start 127.0.0.1:8088
# test if web server works
- sleep 3
- wget "http://127.0.0.1:8088/bolt/login"
- export PATH=$PATH:$PWD/vendor/bin
# build assets
- npm run build
# prepare web server for e2e tests
- ./bin/console doctrine:database:create
- ./bin/console doctrine:schema:create
- ./bin/console doctrine:fixtures:load --group=without-images -n
- ./bin/console server:start 127.0.0.1:8088
# test if web server works
- sleep 3
- wget "http://127.0.0.1:8088/bolt/login"
- export PATH=$PATH:$PWD/vendor/bin

script:
# run EsLint on Javascript files
- npm run lint

# run StyleLint on SCSS
- npm run stylelint

# run PHP Unit
- ./vendor/bin/phpunit
# run PHP Unit
- ./vendor/bin/phpunit

# run API tests
- make behat-api-quiet
# run API tests
- make behat-api-quiet

# run JS e2e tests
- travis_retry make db-reset-without-images && make behat-js-quiet
# run JS e2e tests
- travis_retry make behat-in-ci

# Upload Behat logs
- ./vendor/bin/upload-textfiles "var/log/behat-reports/*.log"
# Upload Behat logs
- ./vendor/bin/upload-textfiles "var/log/behat-reports/*.log"
154 changes: 154 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,160 @@
Changelog
=========

## 4.1.4

Released: 2020-10-25

### 📦 Additions and new features

- Keep track of assets version on "About" page (bobdenotter, [#2055](https://github.com/bolt/core/pull/2055))
- Composer 2 compatibility (bobdenotter, [#2049](https://github.com/bolt/core/pull/2049))

### 🐛 Bug fixes

- Fixed "Dutch (Belgium)" displaying the Belarus flag (EdinTC, [#2053](https://github.com/bolt/core/pull/2053))
- Taxonomy singular slug fix part 2 (andysh-uk, [#2051](https://github.com/bolt/core/pull/2051))
- Fix duplicate html element ids in editor with multiple Collections (simongroenewolt, [#2046](https://github.com/bolt/core/pull/2046))
- Taxonomy singular slug fix (andysh-uk, [#2044](https://github.com/bolt/core/pull/2044))
- Preserve user's chosen locale in Editor (I-Valchev, [#2037](https://github.com/bolt/core/pull/2037))

### 🛠️ Miscellaneous

- Improve readme tremendously (bobdenotter, [#2039](https://github.com/bolt/core/pull/2039))
- Use remember me field in login Symfony Form (I-Valchev, [#2038](https://github.com/bolt/core/pull/2038))
- Add Greek EL 🇬🇷 translations (c2webstudio, [#2034](https://github.com/bolt/core/pull/2034))
- Pin `drupol/composer-packages` to `2.0` (bobdenotter, [#2057](https://github.com/bolt/core/pull/2057))

### ⚙️ Code Quality / Developer Experience

- Add `Carbon` to `scanDirectories` (bobdenotter, [#2056](https://github.com/bolt/core/pull/2056))
- Fix PHPstan breakage (bobdenotter, [#2048](https://github.com/bolt/core/pull/2048))
- Fix PHPStan breaking on `url_decode` (I-Valchev, [#2043](https://github.com/bolt/core/pull/2043))


## 4.1.3

Released: 2020-10-22

### 🐛 Bug fixes

- Multivalue querying does not break for taxonomies (I-Valchev, [#2032](https://github.com/bolt/core/pull/2032))
- Changed name of generic taxonomy config file identifier (bfkolle, [#2029](https://github.com/bolt/core/pull/2029))
- Show set as block (I-Valchev, [#2026](https://github.com/bolt/core/pull/2026))
- Put back some more files that we really do need. (bobdenotter, [#2022](https://github.com/bolt/core/pull/2022))

### 🛠️ Miscellaneous

- Update `_collection_buttons.html.twig`: Aligns button group on the right side (eduardomart, [#2028](https://github.com/bolt/core/pull/2028))
- Fixed Extensions List Command issue with package name (c2webstudio, [#2024](https://github.com/bolt/core/pull/2024))


## 4.1.2 (replaces 4.1.1)

Released: 2020-10-18

### 📦 Additions and new features

- Filter by any field (I-Valchev, [#2008](https://github.com/bolt/core/pull/2008))
- Feat: add `.gitattributes` file for release (toofff, [#1980](https://github.com/bolt/core/pull/1980))
- Simplified Chinese translation (ziselive, [#1970](https://github.com/bolt/core/pull/1970))

### 🐛 Bug fixes

- Don't repeat "Add to collection" text when there's only one (I-Valchev, [#2011](https://github.com/bolt/core/pull/2011))
- Any field that has a localized field down the line is considered localized (I-Valchev, [#1987](https://github.com/bolt/core/pull/1987))
- Fix url for 'bulk' operations on Listing screen, for sites with modified Backend URL (bobdenotter, [#1983](https://github.com/bolt/core/pull/1983))
- Use `->loadEnv()` instead of `->load()` to support the 'standard' Symfony… (simongroenewolt, [#1974](https://github.com/bolt/core/pull/1974))
- Redirect to record or new record on singleton listing pages in backend (I-Valchev, [#1968](https://github.com/bolt/core/pull/1968))
- Don't break if slug is `null` as opposed to "empty string" (bobdenotter, [#2003](https://github.com/bolt/core/pull/2003))
- A little less padding on lists in Cards (bobdenotter, [#1989](https://github.com/bolt/core/pull/1989))
- Show actual error message from upload error response instead of `[object Object]` (simongroenewolt, [#2016](https://github.com/bolt/core/pull/2016))
- Update .gitattributes. We most certainly _do_ want `/assets/static` (bobdenotter, [#2020](https://github.com/bolt/core/pull/2020))
- Corrections for German localization (BleuM, [#2019](https://github.com/bolt/core/pull/2019))

### 🛠️ Miscellaneous

- Missing HU labels (rixbeck, [#2005](https://github.com/bolt/core/pull/2005))
- Deprecate `default_state` for collection in favour of `variant` (I-Valchev, [#1988](https://github.com/bolt/core/pull/1988))
- Use `DatabasePlatform` instead of `Driver` to check for MySQL/MariaDB (andysh-uk, [#1984](https://github.com/bolt/core/pull/1984))
- Force path separator to `/` in ImageFixtures relative paths (luistar15, [#1979](https://github.com/bolt/core/pull/1979))
- `Log.php` had an incorrect `repositoryClass` specified in the Entity annotation (simongroenewolt, [#1972](https://github.com/bolt/core/pull/1972))
- Updating the system font stack for 2020 (bobdenotter, [#2004](https://github.com/bolt/core/pull/2004))

### ⚙️ Code Quality / Developer Experience

- Enable twig namespace 'theme' by default (bobdenotter, [#2015](https://github.com/bolt/core/pull/2015))
- Update readme (remove beta reference) (I-Valchev, [#2009](https://github.com/bolt/core/pull/2009))
- [CI] Add stylelint 4 space indent (TomasVotruba, [#1967](https://github.com/bolt/core/pull/1967))
- [CI] Move npm jobs from Travis to Github Actions (TomasVotruba, [#1966](https://github.com/bolt/core/pull/1966))


## 4.1.0

Released: 2020-10-08

### 📦 Additions and new features

- Initial PostgreSQL support (Wieter, [#1933](https://github.com/bolt/core/pull/1933))
- Feature/translations russian (denis-gorin, [#1962](https://github.com/bolt/core/pull/1962))
- Backend in Bulgarian / Панел на български 🇧🇬 (I-Valchev, [#1940](https://github.com/bolt/core/pull/1940))
- Add new `bolt:reset-password` CLI command to reset password (simongroenewolt, [#1937](https://github.com/bolt/core/pull/1937))
- Allow default values for Fields in new Content (bobdenotter, [#1952](https://github.com/bolt/core/pull/1952))

### 🐛 Bug fixes

- API: `$this->viewlessContentTypes` should be a indexed array, not associative (simongroenewolt, [#1960](https://github.com/bolt/core/pull/1960))
- Ignore empty like `%%` parameters (I-Valchev, [#1955](https://github.com/bolt/core/pull/1955))
- Access extensions by name with full namespace (I-Valchev, [#1954](https://github.com/bolt/core/pull/1954))
- Ensure the "Titles" in collection blocks are plain text only (bobdenotter, [#1948](https://github.com/bolt/core/pull/1948))
- Better way to allow `x` in thumbnail URLs alongside `×` (bobdenotter, [#1943](https://github.com/bolt/core/pull/1943))
- Ensure we have an array of records in "select" block (bobdenotter, [#1942](https://github.com/bolt/core/pull/1942))
- Add missing `json_decode` Twig Filter (bobdenotter, [#1941](https://github.com/bolt/core/pull/1941))
- Fix Buggy thumbnail url generation #1928 (luistar15, [#1938](https://github.com/bolt/core/pull/1938))
- Dont create folders if the image can't be created (UtechtDustin, [#1936](https://github.com/bolt/core/pull/1936))
- fix HTML DOM problems (LordSimal, [#1930](https://github.com/bolt/core/pull/1930))
- Exclude relations from `Content::toArray()` (I-Valchev, [#1927](https://github.com/bolt/core/pull/1927))

### 🛠️ Miscellaneous

- 🧹 Cleanup for `Doctrine\Version` [#1963](https://github.com/bolt/core/pull/1963))

### ⚙️ Code Quality / Developer Experience

- [phpstan] remove invalid tmp dir + dependency on symfony container (TomasVotruba, [#1958](https://github.com/bolt/core/pull/1958))
- [composer] decouple `post-install/update-cmd` and skip run on CI (TomasVotruba, [#1961](https://github.com/bolt/core/pull/1961))
- [composer] remove copy-paste leftovers (TomasVotruba, [#1959](https://github.com/bolt/core/pull/1959))
- [ci] use common path for `.env` file (TomasVotruba, [#1957](https://github.com/bolt/core/pull/1957))
- Delete `Version20200219064805.php` (bobdenotter, [#1946](https://github.com/bolt/core/pull/1946))
- Better feedback when `|related` and their ilk fail (bobdenotter, [#1935](https://github.com/bolt/core/pull/1935))
- Change travis-ci build status in `README.md` to travis-ci.com (LordSimal, [#1932](https://github.com/bolt/core/pull/1932))

## 4.0.1

Released: 2020-09-30

### 🐛 Bug fixes

- Fix: Don't break when passing in params for "Search Query" (bobdenotter, [#1922](https://github.com/bolt/core/pull/1922))
- Fix displaying (singleton) page by slug (denis-gorin, [#1921](https://github.com/bolt/core/pull/1921))
- Fix edit file in File management subfolders (denis-gorin, [#1915](https://github.com/bolt/core/pull/1915))
- Fix: add config media types to files list in dropdown (denis-gorin, [#1913](https://github.com/bolt/core/pull/1913))
- Empty image Field should return `null` instead of `files/` (bobdenotter, [#1925](https://github.com/bolt/core/pull/1925))

### 🛠️ Miscellaneous

- Try and resolve Extension classes from the DI container (rossriley, [#1909](https://github.com/bolt/core/pull/1909))
- Collection updates (eduardomart, [#1904](https://github.com/bolt/core/pull/1904))
- Enhancement: Add French Translations (BoutValentin, [#1903](https://github.com/bolt/core/pull/1903))
- Bolt is stable! (I-Valchev, [#1902](https://github.com/bolt/core/pull/1902))

### ⚙️ Code Quality / Developer Experience

- [CI] Move console checks from Travis to Github Actions (TomasVotruba, [#1917](https://github.com/bolt/core/pull/1917))
- [CI] Move PHPStan and Composer Validate from Travis to Github Actions (TomasVotruba, [#1916](https://github.com/bolt/core/pull/1916))
- [CI] Move ECS from Travis to Github Actions (TomasVotruba, [#1912](https://github.com/bolt/core/pull/1912))
- Cleanup, this is handled in ENV / Doctrine (bobdenotter, [#1908](https://github.com/bolt/core/pull/1908))

## Major release 4.0.0

Released: 2020-09-24
Expand Down
Loading

0 comments on commit b024a5c

Please sign in to comment.