Skip to content

Clarify that the notifications config key has no effect (#2359) - #43

Open
wakqasahmed wants to merge 1 commit into
lunarphp:nextfrom
wakqasahmed:fix/issue-2359-order-notifications-docs
Open

Clarify that the notifications config key has no effect (#2359)#43
wakqasahmed wants to merge 1 commit into
lunarphp:nextfrom
wakqasahmed:fix/issue-2359-order-notifications-docs

Conversation

@wakqasahmed

Copy link
Copy Markdown

The Order Notifications section reads as if mailers and notifications both do something when an order's status changes, but only mailers is actually wired up anywhere in Lunar core. notifications is present in the default config stub and nothing ever reads it — checked across the whole lunarphp/lunar repo, not just the order-status code. Closes lunarphp/lunar#2359.

Added a warning noting this and pointing at the Order model's updated event with wasChanged('status') as the way to hook a real notification in yourself today.

The same wording exists in 0.x/reference/orders.mdx too — left that alone since 0.x isn't the target of the reported issue, happy to open a follow-up if useful.

The Order Notifications section described mailers and notifications
as if both were dispatched the same way, but only mailers are wired
up anywhere in Lunar core - the notifications array is read nowhere.
Fixes #2359.
@wakqasahmed

Copy link
Copy Markdown
Author

Hi @glennjacobs — this one seems to have no reviewer assigned, about 4 days in with CI passing. Happy to be pointed at whoever's best placed to look.

@glennjacobs

Copy link
Copy Markdown
Collaborator

Hi @glennjacobs — this one seems to have no reviewer assigned, about 4 days in with CI passing. Happy to be pointed at whoever's best placed to look.

Please stop chasing PRs. This is a last warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clarify documentation for Mailers/Notifications on Order statuses

2 participants