Skip to content

Save mentions when markdown columns are directly saved to DB

What does this MR do?

makes sure _html fields are parsed for mentions when updated directly to DB. This has come up as being skipped when a project is being imported for instance and then the _html field for the markdown fields would be updated directly to DB skipping model callbacks, resulting in mentions missing from DB.

There is no specific issue for this fix, but related issues/discussions that revealed the problem:

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Alexandru Croitor

Merge request reports

Loading