Skip to content

Fixed 6.0 build - #3368

Merged
mnocon merged 2 commits into
6.0from
fix-6.0-build
Aug 25, 2026
Merged

mnocon merged 2 commits into
6.0from
fix-6.0-build

Conversation

@mnocon

@mnocon mnocon commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Target: 6.0 only

As seen in #3365 , the build for 6.0 is currently failing.

This PR does two things:

  • Moved and adjusted background tasks code samples to Markdown

DeduplicateStamp is removed in 6.0 (https://doc.ibexa.co/en/5.0/release_notes/cohesivo_v6.0_deprecations/#ibexamessenger), I've removed it from the code sample.

Because maintaining the includes was a nightmre, I've moved the PHP code sample into the Markdown file itself - taking the advantage of inlined code sample testing.

  • Removed CDP Export config from the baseline

Instead of regenerating the baseline, I've simply added the missing services key to make the code sample testable.

@github-actions

Copy link
Copy Markdown

Preview of modified files

Preview of modified Markdown:

@github-actions

Copy link
Copy Markdown

code_samples/ change report

Before (on target branch)After (in current PR)

code_samples/background_tasks/src/Dispatcher/SomeClassThatSchedulesExecutionInTheBackground.php


code_samples/background_tasks/src/Dispatcher/SomeClassThatSchedulesExecutionInTheBackground.php

docs/infrastructure_and_maintenance/background_tasks.md@116:``` php
docs/infrastructure_and_maintenance/background_tasks.md@117:[[= include_code('code_samples/background_tasks/src/Dispatcher/SomeClassThatSchedulesExecutionInTheBackground.php', 1, 3) =]]
docs/infrastructure_and_maintenance/background_tasks.md@118:
docs/infrastructure_and_maintenance/background_tasks.md@119:[[= include_code('code_samples/background_tasks/src/Dispatcher/SomeClassThatSchedulesExecutionInTheBackground.php', 5, 5) =]]
docs/infrastructure_and_maintenance/background_tasks.md@120:[[= include_code('code_samples/background_tasks/src/Dispatcher/SomeClassThatSchedulesExecutionInTheBackground.php', 10, 15) =]]
docs/infrastructure_and_maintenance/background_tasks.md@121:[[= include_code('code_samples/background_tasks/src/Dispatcher/SomeClassThatSchedulesExecutionInTheBackground.php', 17, 22) =]]
docs/infrastructure_and_maintenance/background_tasks.md@122:[[= include_code('code_samples/background_tasks/src/Dispatcher/SomeClassThatSchedulesExecutionInTheBackground.php', 30, 31) =]]
docs/infrastructure_and_maintenance/background_tasks.md@123:```

001⫶<?php declare(strict_types=1);
002⫶
003⫶namespace App\Dispatcher;
004⫶
005⫶use App\Message\SomeMessage;
006⫶use Symfony\Component\Messenger\MessageBusInterface;
007⫶
008⫶final readonly class SomeClassThatSchedulesExecutionInTheBackground
009⫶{
010⫶ public function __construct(
011⫶ private MessageBusInterface $bus,
012⫶ ) {
013⫶ }
014⫶
015⫶ public function schedule(): void
016⫶ {
017⫶ $this->bus->dispatch(new SomeMessage());
018⫶ }
019⫶}

docs/infrastructure_and_maintenance/background_tasks.md@156:``` php
docs/infrastructure_and_maintenance/background_tasks.md@157:[[= include_code('code_samples/background_tasks/src/Dispatcher/SomeClassThatSchedulesExecutionInTheBackground.php', 7, 7, remove_indent=True) =]]
docs/infrastructure_and_maintenance/background_tasks.md@158:[[= include_code('code_samples/background_tasks/src/Dispatcher/SomeClassThatSchedulesExecutionInTheBackground.php', 9, 10, remove_indent=True) =]]
docs/infrastructure_and_maintenance/background_tasks.md@159:
docs/infrastructure_and_maintenance/background_tasks.md@160:[[= include_code('code_samples/background_tasks/src/Dispatcher/SomeClassThatSchedulesExecutionInTheBackground.php', 25, 25, remove_indent=True) =]]
docs/infrastructure_and_maintenance/background_tasks.md@161:```

001⫶use Ibexa\Contracts\Messenger\Stamp\DeduplicateStamp;
002⫶use Ibexa\Contracts\Messenger\Stamp\UserPermissionStamp;
003⫶use Symfony\Component\Messenger\MessageBusInterface;
004⫶
005⫶$this->bus->dispatch(new SomeMessage(), [new UserPermissionStamp($currentUserId)]);

docs/infrastructure_and_maintenance/background_tasks.md@173:``` php
docs/infrastructure_and_maintenance/background_tasks.md@174:[[= include_code('code_samples/background_tasks/src/Dispatcher/SomeClassThatSchedulesExecutionInTheBackground.php', 5, 5, remove_indent=True) =]]
docs/infrastructure_and_maintenance/background_tasks.md@175:[[= include_code('code_samples/background_tasks/src/Dispatcher/SomeClassThatSchedulesExecutionInTheBackground.php', 8, 10, remove_indent=True) =]]
docs/infrastructure_and_maintenance/background_tasks.md@176:
docs/infrastructure_and_maintenance/background_tasks.md@177:[[= include_code('code_samples/background_tasks/src/Dispatcher/SomeClassThatSchedulesExecutionInTheBackground.php', 23, 24, remove_indent=True) =]]
docs/infrastructure_and_maintenance/background_tasks.md@178:```

001⫶use App\Message\SomeMessage;
002⫶use Ibexa\Contracts\Messenger\Stamp\SudoStamp;
003⫶use Ibexa\Contracts\Messenger\Stamp\UserPermissionStamp;
004⫶use Symfony\Component\Messenger\MessageBusInterface;
005⫶
006⫶
007⫶$currentUserId = $this->permissionResolver->getCurrentUserReference()->getUserId();

Download colorized diff

@mnocon
mnocon marked this pull request as ready for review August 25, 2026 08:19
@mnocon
mnocon requested a review from a team August 25, 2026 08:19
@ibexa-workflow-automation-1
ibexa-workflow-automation-1 Bot requested review from adriendupuis, dabrt and julitafalcondusza and removed request for a team August 25, 2026 08:19
@github-actions

Copy link
Copy Markdown

Summary

Status Count
🔍 Total 750713
🔗 Unique 15044
✅ Successful 6306
⏳ Timeouts 0
🔀 Redirected 0
👻 Excluded 744407
❓ Unknown 0
🚫 Errors 0
⛔ Unsupported 0

Full Github Actions output

@mnocon
mnocon merged commit 5a4e92e into 6.0 Aug 25, 2026
16 checks passed
@mnocon
mnocon deleted the fix-6.0-build branch August 25, 2026 09:57
mnocon added a commit that referenced this pull request Sep 4, 2026
* Moved and adjusted background tasks code samples to Markdown

* Removed CDP Export config from the baseline
mnocon added a commit that referenced this pull request Sep 14, 2026
* First batch of removal for SaaS

* Remove Automated translations from 6.0 (#3369)

* Remove Automated translations from 6.0

* Fixed 6.0 build (#3368)

* Moved and adjusted background tasks code samples to Markdown

* Removed CDP Export config from the baseline

* removed deprecations

* fixed build

---------

Co-authored-by: Tomasz Dąbrowski <64841871+dabrt@users.noreply.github.com>
mnocon added a commit that referenced this pull request Sep 14, 2026
* First batch of removal for SaaS

* Next batch

* Remove Automated translations from 6.0 (#3369)

* Remove Automated translations from 6.0

* Fixed 6.0 build (#3368)

* Moved and adjusted background tasks code samples to Markdown

* Removed CDP Export config from the baseline

* removed deprecations

* fixed build

* More removals

---------

Co-authored-by: Tomasz Dąbrowski <64841871+dabrt@users.noreply.github.com>
mnocon added a commit that referenced this pull request Sep 15, 2026
* First batch of removal for SaaS

* Next batch

* Remove Automated translations from 6.0 (#3369)

* Remove Automated translations from 6.0

* Fixed 6.0 build (#3368)

* Moved and adjusted background tasks code samples to Markdown

* Removed CDP Export config from the baseline

* removed deprecations

* fixed build

* More removals

* Removed PHP API reference

---------

Co-authored-by: Tomasz Dąbrowski <64841871+dabrt@users.noreply.github.com>
mnocon added a commit that referenced this pull request Sep 15, 2026
* First batch of removal for SaaS

* Next batch

* Remove Automated translations from 6.0 (#3369)

* Remove Automated translations from 6.0

* Fixed 6.0 build (#3368)

* Moved and adjusted background tasks code samples to Markdown

* Removed CDP Export config from the baseline

* removed deprecations

* fixed build

* More removals

* Removed PHP API reference

* More deletions

* Restored editions, security checklist and reporting issues

---------

Co-authored-by: Tomasz Dąbrowski <64841871+dabrt@users.noreply.github.com>
mnocon added a commit that referenced this pull request Sep 15, 2026
* First batch of removal for SaaS

* Next batch

* Remove Automated translations from 6.0 (#3369)

* Remove Automated translations from 6.0

* Fixed 6.0 build (#3368)

* Moved and adjusted background tasks code samples to Markdown

* Removed CDP Export config from the baseline

* removed deprecations

* fixed build

* More removals

* Removed PHP API reference

* More deletions

* Restored editions, security checklist and reporting issues

* First batch of review

* Second batch

* Products done

* REST API

* CP Applications

* Raptor connector

* Permissions

* Customer management

* Raptor

* Administration

* AI

* First steps

* Administration

* Files and forms

* URLs and workflow

* Everything except field types

* Fixed links?

* Field types

* Fixed build

* Markdownlint

* Removed obsolete files. Reworked Field Type and Search API references

* Fixed build

---------

Co-authored-by: Tomasz Dąbrowski <64841871+dabrt@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants