0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-04 10:39:43 +08:00
discourse/docs
Martin Brennan ea74b65aa5
DEV: Preserve existing errors in service model steps (#41896)
`ModelStep` revalidates changed models by calling `invalid?`, which
clears errors
added by the model producer before validations run. For example,
`UploadCreator`
can return an unsaved `Upload` containing an image-processing error;
`ModelStep`
then clears that error and may treat the `Upload` as valid.

Treat models that already contain errors as invalid without revalidating
them.
This preserves operation-specific errors for `on_model_errors` while
continuing
to validate changed models that do not already contain errors.

---------

Co-authored-by: Loïc Guitaut <loic@discourse.org>
2026-07-23 17:15:26 +10:00
..
developer-guides DEV: Preserve existing errors in service model steps (#41896) 2026-07-23 17:15:26 +10:00
ADMIN-QUICK-START-GUIDE.md fix emojis (#34411) 2025-08-19 11:25:20 +02:00
AUTHORS.md
code-of-conduct.md
INSTALL-cloud.md DOCS: Mention updated plan names in INSTALL-cloud.md (#41618) 2026-07-14 16:48:46 +05:30
INSTALL-email.md DOCS: Update Brevo's SMTP config (#38770) 2026-03-24 09:09:07 +01:00
INSTALL.md DOCS: amend documented required PostgreSQL version (#37931) 2026-02-24 17:20:04 +11:00
PLUGINS.md UX: update category references in documentation to match meta changes (#41263) 2026-06-29 11:33:49 -04:00
SECURITY.md
TESTING.md