Skip to content

Conversation

dabrt
Copy link
Contributor

@dabrt dabrt commented Sep 20, 2025

Question Answer
JIRA Ticket IBX-10675
Versions 4.6, 5.0
Edition Commerce-ish

Document Ibexa Messenger and discount re-indexing in the background

Checklist

  • Text renders correctly
  • Text has been checked with vale
  • Description metadata is up to date
  • Redirects cover removed/moved pages
  • Code samples are working
  • PHP code samples have been fixed with PHP CS fixer
  • Added link to this PR in relevant JIRA ticket or code PR

@dabrt dabrt requested a review from Steveb-p September 30, 2025 10:57
@dabrt dabrt requested a review from a team September 30, 2025 11:50
@ezrobot ezrobot requested review from adamwojs, mikadamczyk, alongosz, ciastektk, ViniTou, barw4, wiewiurdp and konradoboza and removed request for a team September 30, 2025 11:50
@ezrobot ezrobot requested a review from tbialcz September 30, 2025 11:50
@dabrt dabrt requested a review from konradoboza October 1, 2025 07:43
@dabrt
Copy link
Contributor Author

dabrt commented Oct 1, 2025

Thank you @konradoboza for your comments

Copy link
Contributor

@adriendupuis adriendupuis left a comment

Choose a reason for hiding this comment

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

Few links to add, some precisions about the code, but over all very good.

@dabrt dabrt requested a review from adriendupuis October 1, 2025 14:31
Copy link
Contributor

@mnocon mnocon left a comment

Choose a reason for hiding this comment

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

I love it already, thank you for preparing this! 🙇

Added a couple of suggestions, but the overall shape is great

One sugggestion that does not apply to a particular line:

On a different note, @Steveb-p what do you think about adding some (commented out) configuration for Ibexa Cloud to make setting up Messenger easier? I mean https://github.com/ibexa/post-install/blob/main/resources/platformsh/ibexa-commerce/5.0/.platform.app.yaml


use App\Message\SomeMessage;

final class SomeHandler
Copy link
Contributor

Choose a reason for hiding this comment

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

Screenshot 2025-10-01 at 18 07 01

Asking just to be sure: Symfony doc mentions that if you choose to avoid using the Attribute, then the MessageHandlerInterface interface needs to be implemented.

Can we skip it in this case?

Copy link
Contributor

Choose a reason for hiding this comment

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

This is only true for Symfony 5.x. On Symfony 6 and above, that interface does not exist.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, so this is ok for v5, but the interface should be added when backporting to 4.6?

Copy link
Contributor

Choose a reason for hiding this comment

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

On 4.6 MessageHandlerInterface is indeed required. I don't remember if you can create handlers without it, or just tag the service properly. I think it's mostly used to mark service, but unsure.

@dabrt dabrt requested a review from mnocon October 2, 2025 14:34
Copy link

github-actions bot commented Oct 2, 2025

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@82:``` php
docs/infrastructure_and_maintenance/background_tasks.md@83:[[= include_file("code_samples/background_tasks/src/Dispatcher/SomeClassThatSchedulesExecutionInTheBackground.php") =]]
docs/infrastructure_and_maintenance/background_tasks.md@84:```

The following line doesn't include file correctly: [[= include_file("code_samples/background_tasks/src/Dispatcher/SomeClassThatSchedulesExecutionInTheBackground.php") =]]


code_samples/background_tasks/src/Message/SomeMessage.php


code_samples/background_tasks/src/MessageHandler/SomeHandler.php


code_samples/background_tasks/src/Message/SomeMessage.php


code_samples/background_tasks/src/MessageHandler/SomeHandler.php

docs/infrastructure_and_maintenance/background_tasks.md@90:``` php
docs/infrastructure_and_maintenance/background_tasks.md@91:[[= include_file("code_samples/background_tasks/src/MessageHandler/SomeHandler.php") =]]
docs/infrastructure_and_maintenance/background_tasks.md@92:```

The following line doesn't include file correctly: [[= include_file("code_samples/background_tasks/src/MessageHandler/SomeHandler.php") =]]

Download colorized diff

Copy link
Contributor

@mnocon mnocon left a comment

Choose a reason for hiding this comment

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

Thank you!

@dabrt dabrt merged commit 75b57e3 into 5.0 Oct 3, 2025
6 of 7 checks passed
@dabrt dabrt deleted the IBX-10160 branch October 3, 2025 08:13
dabrt added a commit that referenced this pull request Oct 3, 2025
…ackground (#2909)

* API changes documented

* Add messenger description

* Modify configure_discounts.md

* Add dispatchers to discount events

* Mention discount re-indexing in post install steps

---------

Co-authored-by: dabrt <[email protected]>
Co-authored-by: Adrien Dupuis <[email protected]>
Co-authored-by: Marek Nocoń <[email protected]>
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.

5 participants