stable
Clone or download
Part of story #18337 markdown replace text This patch also updates from 'text' default format to 'commonmark' default format in the user preferences table in DB Now the default user format is 'commonmark' and not 'text' anymore. How to test: - Make sure to have at least one user with 'text' format preference in your DB - make dev-forgeupgrade => There is no error, => Users who had the 'text' format by default have now the 'commonmark' format by default. => There is no change for the users who have the 'html' default format => In the UI of the user preferences, the 'Markdown' button radio should be selected - Create a new artifact with the user who migrates from 'text' to 'commonmark' in the DB => All the selected format of the text fields are now 'Markdown' You can also check this behaviours in the artifact modal or in a Step Defintion of the artifact view. Change-Id: I298ce11d956a08440f157f4ffe8d0927a41a9c87
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/testmanagement/include/TestManagement/Step/Definition/Field/StepDefinition.php | +1 | −5 | Go to diff View file |
M | plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Text.php | +2 | −6 | Go to diff View file |
M | plugins/tracker/tests/unit/Tracker/FormElement/Tracker_FormElement_Field_TextTest.php | +49 | −1 | Go to diff View file |
M | src/common/User/Account/EditionPresenter.php | +1 | −6 | Go to diff View file |
M | src/common/User/Account/templates/edition.mustache | +0 | −9 | Go to diff View file |
A | src/db/mysql/updates/2021/202103111534_update_user_preference_format_text_to_commonmark.php | +47 | −0 | Go to diff View file |
A | tests/unit/common/User/Account/EditionPresenterTest.php | +207 | −0 | Go to diff View file |