Skip to content

fix: keep the notification messages out of the user insert - #77

Merged
tyrsson merged 1 commit into
1.0.xfrom
fix/save-drops-notification-messages
Oct 3, 2026
Merged

tyrsson merged 1 commit into
1.0.xfrom
fix/save-drops-notification-messages

Conversation

@tyrsson

@tyrsson tyrsson commented Oct 3, 2026

Copy link
Copy Markdown
Member

Creating a user from the admin modal failed with Unknown column 'successMessage' in 'field list'. UserRepository::save() casts the command to an array and only dropped commandName; CreateUserCommand now has the public successMessage and failureMessage (NotificationCapableInterface, #76), so they reached the INSERT.

save() now drops all three. saveInsertsNewCommandAndReturnsGeneratedId already built a CreateUserCommand but only asserted commandName; it now asserts both messages too, and fails without the source change (verified).

Found in the browser: valid create from the modal, after php-db/phpdb-validator#11 fixed the false-positive uniqueness check.

composer test: 364 tests, 1147 assertions, OK. Mago format, lint and analyze exit 0.

Signed-off-by: Joey Smith <jsmith@webinertia.net>
@codecov

codecov Bot commented Oct 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@tyrsson
tyrsson merged commit 55636ae into 1.0.x Oct 3, 2026
@tyrsson
tyrsson deleted the fix/save-drops-notification-messages branch October 3, 2026 13:28
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.

1 participant