Skip to content

IBX-11553: Made http-cache response taggers more specialized#78

Merged
konradoboza merged 11 commits into
5.0from
ibx-11553-reponse-taggers-increased-verbosity
May 6, 2026
Merged

IBX-11553: Made http-cache response taggers more specialized#78
konradoboza merged 11 commits into
5.0from
ibx-11553-reponse-taggers-increased-verbosity

Conversation

@konradoboza
Copy link
Copy Markdown
Contributor

@konradoboza konradoboza commented Apr 1, 2026

🎫 Issue IBX-11553

Regressions: ibexa/commerce#1760

Description:

This serves as a DX improvement in regards to the report from community, it's nicely summarized by @mnocon here: ibexa/documentation-developer#3109.

Generally speaking DispatcherTagger isn't much of a strategy - each tagger that is available here is getting the value regardless if it can work or not with no indication what happened whatsoever.

Several changes within this PR aim to improve the overall situation with keeping BC promise for the custom implementations of Ibexa\Contracts\HttpCache\ResponseTagger\ResponseTagger:

  • I adjusted all existing response taggers to extend AbstractValueTagger - I introduced abstract public function supports(mixed $value): bool; there not to break BC in the interface itself,
  • instead of passing all the values to all the taggers I now implement and trigger supports() method beforehand,
  • custom response taggers don't require supports() method - they will be called as before (added proper deprecartion),
  • I added DisptacherTagger::__toString method to list available implementation tagged with ibexa.cache.http.response.tagger,
  • I removed spec tests for response taggers and replaced them with regular unit tests, providing some more coverage for cases explained above,
  • got rid of several PHPStan issues as a result of the above,
  • features/setup/symfonyCache.feature was changed as the patch stopped being applicable - this is the result of Symfony recipes change: symfony/recipes@24e94e5

For QA:

Documentation:

@konradoboza konradoboza self-assigned this Apr 1, 2026
@konradoboza konradoboza force-pushed the ibx-11553-reponse-taggers-increased-verbosity branch 3 times, most recently from 67c22f3 to 2df0e85 Compare April 1, 2026 10:52
@konradoboza konradoboza changed the base branch from 4.6 to main April 1, 2026 10:52
@konradoboza konradoboza force-pushed the ibx-11553-reponse-taggers-increased-verbosity branch 9 times, most recently from 6512235 to 31c7b18 Compare April 1, 2026 14:35
@konradoboza konradoboza changed the title IBX-11553: Made response taggers more verbose instead of silently fai… IBX-11553: Made http-cache response taggers more specialized Apr 1, 2026
@konradoboza konradoboza requested a review from a team April 2, 2026 10:39
@ibexa-workflow-automation-1 ibexa-workflow-automation-1 Bot requested review from Steveb-p, ViniTou, alongosz, barw4, ciastektk, mikadamczyk and wiewiurdp and removed request for a team April 2, 2026 10:39
@konradoboza konradoboza force-pushed the ibx-11553-reponse-taggers-increased-verbosity branch 2 times, most recently from 659629c to 26736f7 Compare April 9, 2026 08:14
Comment thread src/lib/ResponseTagger/Delegator/DispatcherTagger.php Outdated
@ibexa-yuna ibexa-yuna deleted the branch 5.0 April 29, 2026 08:19
@ibexa-yuna ibexa-yuna closed this Apr 29, 2026
@mnocon mnocon reopened this Apr 29, 2026
@mnocon mnocon changed the base branch from main to 5.0 April 29, 2026 09:13
@tomaszszopinski tomaszszopinski force-pushed the ibx-11553-reponse-taggers-increased-verbosity branch from e9184b3 to a4b7c75 Compare May 5, 2026 06:08
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 5, 2026

Copy link
Copy Markdown

@tomaszszopinski tomaszszopinski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QA approved on Ibexa DXP 5.0 exp.

@konradoboza konradoboza merged commit f1b31bb into 5.0 May 6, 2026
28 checks passed
@konradoboza konradoboza deleted the ibx-11553-reponse-taggers-increased-verbosity branch May 6, 2026 08:59
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.

8 participants