Skip to content
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

IBX-8418: Remove draft when trashing its parent or ancestor location #398

Closed
wants to merge 53 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
f61f8fd
Set up branch to become 5.0 in the future
ibexa-yuna Mar 14, 2024
29e6434
Removed repository-wide pull request template
ibexa-yuna Mar 27, 2024
e570cf8
[BC break] Added `implements \Stringable` to `Translation` Value Obje…
alongosz Apr 25, 2024
77145c3
IBX-8119: Upgraded minimum PHP version to 8.3
Steveb-p Apr 25, 2024
8251a42
[Tests] Dropped providing fallback Kernel if not defined (#345)
alongosz May 6, 2024
9a1b02e
IBX-8119: [GHA] Bumped PHP to 8.3 in gha-docker-solr.yaml workflow (#…
alongosz May 7, 2024
83e5d5e
IBX-8121: Fixed code style for 5.0 - Run code style fixer
Steveb-p Apr 29, 2024
7c15c34
IBX-8121: Fixed PHPStan
Steveb-p Apr 29, 2024
dff5811
IBX-8121: Fixed PHPUnit configuration
Steveb-p Apr 29, 2024
8a24c4f
Fixed access to non-existent properties
Steveb-p May 6, 2024
ea46ad8
IBX-8119: Fixed tests for 5.0
Steveb-p May 10, 2024
fdb152a
Wrapped `iterable`s used as arrays with `iterator_to_array` (#372)
alongosz May 17, 2024
631b416
IBX-3957: Made NOP URL aliases not reusable and original (#350)
barw4 May 17, 2024
38bf9d2
IBX-8139: Dropped `class_alias` BC layer statements from all classes …
alongosz May 20, 2024
c07ff3e
IBX-8140: Enabled authenticator manager-based security (#368)
konradoboza May 23, 2024
47261d9
Coding standards
Nattfarinn Jun 5, 2024
6384e33
Update src/lib/Persistence/Legacy/Content/Mapper/ResolveVirtualFieldS…
Nattfarinn Jun 5, 2024
42df0fb
[PHPStan] Dropped baseline files for unsupported PHP versions (#381)
alongosz Jun 11, 2024
e71f77b
IBX-8399: Moved RepositoryConfigurationProvider to Repository layer (…
alongosz Jun 18, 2024
ccbbab2
IBX-8400: Fixed redundancy in RepositoryFactory implementations (#384)
alongosz Jun 18, 2024
52f5b84
IBX-8224: Dropped BackwardCompatibleCommand usage (#386)
ViniTou Jun 27, 2024
4a318ee
IBX-8356: Removed `Ibexa\Core\MVC\Symfony\Security\Authentication\Aut…
konradoboza Jul 1, 2024
9fa21c3
IBX-8322: Fixed lack of redirections to last visited pages after succ…
konradoboza Jul 1, 2024
e26e65e
IBX-8323: Reworked RepositoryAuthenticationProvider and moved its log…
konradoboza Jul 9, 2024
8817e7b
[CS] Fixed outstanding CS issue in ContentTest
alongosz Jul 16, 2024
7a51f9d
IBX-8138: Refactored deprecated `loadUserByUsername` method (#400)
alongosz Jul 23, 2024
592184e
IBX-8558: Removed `GuardRepositoryAuthenticationProvider` due to Symf…
konradoboza Aug 1, 2024
71fcbd4
IBX-8656: Skipped credentials check for `SelfValidatingPassport` (#411)
konradoboza Aug 14, 2024
d0b9826
Extracted common base for TextBlock and TextLine field types (#406)
alongosz Aug 27, 2024
61ddcc5
Extracted common code for Binary and Media field type (#407)
alongosz Aug 27, 2024
e472a83
Extracted redundant TextLine and ISBN SearchField into a common base …
alongosz Aug 27, 2024
e37eb10
Extracted abstract for redundant Host & URI text matchers (#424)
alongosz Aug 28, 2024
92f15f9
Refactored Float and Integer field types to use external validators (…
alongosz Aug 28, 2024
9356c92
IBX-8138: [Rector] Applied rules from Symfony 5 Rector set lists (#385)
alongosz Aug 28, 2024
282cfbb
IBX-8804: Moved `PASSWORD_HASH_OAUTH2` from `ibexa/oauth2-client` (#419)
konradoboza Sep 3, 2024
18d40c6
Improved strictness of URLChecker HTTPHandler and URL Value Object (#…
alongosz Sep 17, 2024
c57c229
[Tests] Migrated deprecated PHPUnit configuration (#429)
alongosz Sep 28, 2024
72754be
IBX-8811: Rebranded SiteAccess session prefix (#420)
konradoboza Oct 2, 2024
362008c
IBX-8418: Remove drafts when trashing its parent or ancestor location
barw4 Jul 1, 2024
851573d
IBX-8418: Implement unit tests
barw4 Jul 7, 2024
1b991cc
IBX-8418: Fix unit test
barw4 Jul 7, 2024
d547da7
IBX-8418: Provided integration test
barw4 Jul 8, 2024
f4bc59f
IBX-8418: Applied review remarks
barw4 Aug 6, 2024
49ca70b
IBX-8418: CS
barw4 Aug 6, 2024
ac20ef3
IBX-8418: Fixed integration test
barw4 Aug 6, 2024
3df3ef4
IBX-8418: Fixed integration test
barw4 Aug 7, 2024
93ce431
IBX-8418: CS
barw4 Aug 7, 2024
c081478
IBX-8418: Fixup
barw4 Aug 7, 2024
7ee0e79
IBX-8148: Stan
barw4 Oct 2, 2024
cc08cd6
IBX-8148: Stan
barw4 Oct 2, 2024
9c886eb
IBX-8418: Delete children drafts when deleting content
barw4 Oct 17, 2024
059990f
Revert "IBX-8418: Fixup"
barw4 Oct 17, 2024
7349223
Revert "Revert "IBX-8418: Fixup""
barw4 Oct 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
16 changes: 0 additions & 16 deletions .github/pull_request_template.md

This file was deleted.

58 changes: 25 additions & 33 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ on:
jobs:
cs-fix:
name: Run code style check
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
strategy:
matrix:
php:
- '8.0'
- '8.3'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup PHP Action
uses: shivammathur/setup-php@v2
Expand All @@ -26,28 +26,26 @@ jobs:
extensions: 'pdo_sqlite, gd'
tools: cs2pr

- uses: "ramsey/composer-install@v1"
- uses: ramsey/composer-install@v3
with:
dependency-versions: "highest"
dependency-versions: highest

- name: Run code style check
run: composer run-script check-cs -- --format=checkstyle | cs2pr

tests:
name: Unit tests & SQLite integration tests
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
timeout-minutes: 15

strategy:
fail-fast: false
matrix:
php:
- '7.4'
- '8.0'
- '8.1'
- '8.3'

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup PHP Action
uses: shivammathur/setup-php@v2
Expand All @@ -57,9 +55,9 @@ jobs:
extensions: pdo_sqlite, gd
tools: cs2pr

- uses: "ramsey/composer-install@v1"
- uses: ramsey/composer-install@v3
with:
dependency-versions: "highest"
dependency-versions: highest

- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
Expand Down Expand Up @@ -90,19 +88,17 @@ jobs:
--health-timeout 5s
--health-retries 5
--tmpfs /var/lib/postgres
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
timeout-minutes: 60

strategy:
fail-fast: false
matrix:
php:
- '7.4'
- '8.0'
- '8.1'
- '8.3'

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup PHP Action
uses: shivammathur/setup-php@v2
Expand All @@ -112,9 +108,9 @@ jobs:
extensions: pdo_pgsql, gd
tools: cs2pr

- uses: "ramsey/composer-install@v1"
- uses: ramsey/composer-install@v3
with:
dependency-versions: "highest"
dependency-versions: highest

- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
Expand Down Expand Up @@ -145,19 +141,17 @@ jobs:
--health-timeout=5s
--health-retries=5
--tmpfs=/var/lib/mysql
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
timeout-minutes: 60

strategy:
fail-fast: false
matrix:
php:
- '7.4'
- '8.0'
- '8.1'
- '8.3'

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup PHP Action
uses: shivammathur/setup-php@v2
Expand All @@ -167,9 +161,9 @@ jobs:
extensions: pdo_mysql, gd, redis
tools: cs2pr

- uses: "ramsey/composer-install@v1"
- uses: ramsey/composer-install@v3
with:
dependency-versions: "highest"
dependency-versions: highest

- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
Expand All @@ -182,7 +176,7 @@ jobs:

solr-integration:
name: "Solr integration tests"
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
timeout-minutes: 30
permissions:
packages: read
Expand All @@ -207,11 +201,9 @@ jobs:
fail-fast: false
matrix:
php:
- '7.4'
- '8.0'
- '8.1'
- '8.3'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -226,9 +218,9 @@ jobs:
VERSION=$(jq -r '.extra | ."branch-alias" | ."dev-main"' < composer.json)
composer require --no-update "ibexa/solr:$VERSION"

- uses: "ramsey/composer-install@v1"
- uses: ramsey/composer-install@v3
with:
dependency-versions: "highest"
dependency-versions: highest

- name: Run integration test suite
run: composer test-integration-solr
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/gha-docker-solr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:

jobs:
build-and-publish:
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
permissions:
packages: write
services:
Expand All @@ -42,17 +42,17 @@ jobs:
- name: Setup PHP Action
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
php-version: 8.3
coverage: none

- name: Add solr dependency
run: |
VERSION=$(jq -r '.extra | ."branch-alias" | ."dev-main"' < composer.json)
composer require --no-update "ibexa/solr:$VERSION"

- uses: "ramsey/composer-install@v2"
- uses: ramsey/composer-install@v3
with:
dependency-versions: "highest"
dependency-versions: highest

- name: Run integration test suite
run: composer test-integration-solr
Expand All @@ -71,4 +71,3 @@ jobs:

- name: Push image
run: docker push "$IMAGE_NAME"

20 changes: 4 additions & 16 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"ext-fileinfo": "*",
"ext-intl": "*",
"ext-json": "*",
"ext-libxml": "*",
"ext-mbstring": "*",
"ext-PDO": "*",
"ext-SPL": "*",
Expand All @@ -38,7 +39,7 @@
"symfony/expression-language": "^5.3.0",
"symfony/validator": "^5.3.0",
"symfony/var-dumper": "^5.3.0",
"ibexa/doctrine-schema": "~4.6.0@dev",
"ibexa/doctrine-schema": "~5.0.0@dev",
"symfony-cmf/routing": "^2.3",
"guzzlehttp/guzzle": "^6.5",
"php-http/guzzle6-adapter": "^2.0",
Expand Down Expand Up @@ -98,20 +99,7 @@
"Ibexa\\Core\\": "src/lib",
"Ibexa\\Tests\\Core\\": "tests/lib",
"Ibexa\\Tests\\Integration\\Core\\": "tests/integration/Core",
"Ibexa\\Tests\\Bundle\\Core\\": "tests/bundle/Core",
"eZ\\Publish\\API\\Repository\\Tests\\": "src/contracts/Test/Repository",
"eZ\\Publish\\SPI\\Tests\\": "src/contracts/Test",
"eZ\\Publish\\API\\": "src/contracts",
"eZ\\Publish\\SPI\\": "src/contracts",
"eZ\\Publish\\Core\\": "src/lib",
"eZ\\Bundle\\EzPublishCoreBundle\\": "src/bundle/Core",
"eZ\\Bundle\\EzPublishDebugBundle\\": "src/bundle/Debug",
"eZ\\Bundle\\EzPublishIOBundle\\": "src/bundle/IO",
"eZ\\Bundle\\EzPublishLegacySearchEngineBundle\\": "src/bundle/LegacySearchEngine",
"eZ\\Bundle\\EzPublishCoreBundle\\Tests\\": "tests/bundle/Core",
"eZ\\Publish\\Core\\MVC\\Symfony\\Templating\\Tests\\": "tests/lib/MVC/Symfony/Templating",
"eZ\\Publish\\Core\\Persistence\\Legacy\\Tests\\": "tests/lib/Persistence/Legacy",
"EzSystems\\PlatformInstallerBundle\\": "src/bundle/RepositoryInstaller"
"Ibexa\\Tests\\Bundle\\Core\\": "tests/bundle/Core"
}
},
"autoload-dev": {
Expand Down Expand Up @@ -158,7 +146,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "4.6.x-dev"
"dev-main": "5.0.x-dev"
}
}
}
3 changes: 3 additions & 0 deletions docker/solr/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ RUN git clone --depth=1 https://github.com/ibexa/solr.git solr
RUN ./solr/bin/generate-solr-config.sh --destination-dir=config --solr-version=8.6.3

FROM solr:8.6.3
LABEL org.opencontainers.image.source=https://github.com/ibexa/core/blob/main/docker/solr/Dockerfile
LABEL org.opencontainers.image.description="Configured Ibexa Solr Bundle image, created by 'Build and publish Solr Docker image' GHA workflow"
LABEL org.opencontainers.image.licenses=GPL-2.0-only
USER root
RUN rm -rf server/solr/configsets/_default/conf/*
USER solr
Expand Down
6 changes: 0 additions & 6 deletions phpstan-baseline-lte-8.1.neon

This file was deleted.

21 changes: 0 additions & 21 deletions phpstan-baseline-lte-8.2.neon

This file was deleted.

Loading
Loading