fix(TaskProcessing): increase error_message column length#47801
Merged
fix(TaskProcessing): increase error_message column length#47801
Conversation
Contributor
Author
|
There needs to be a Version31000 migration for NC 31, yes? |
Member
I don't think so 🤔 |
marcelklehr
approved these changes
Sep 6, 2024
Member
|
Ah, this is for stable30? |
Member
|
Would perhaps be better to submit this PR against master and then backport? |
bigcat88
approved these changes
Sep 6, 2024
Contributor
Author
Yup, now that a separate PR is not required. |
marcelklehr
reviewed
Sep 6, 2024
ee2329a to
0a01b99
Compare
Contributor
Author
|
oops, sorry, changed base branch 🙈 |
0a01b99 to
0812054
Compare
provokateurin
requested changes
Sep 6, 2024
Member
provokateurin
left a comment
There was a problem hiding this comment.
All the composer changes need to be reverted (except for the autoload_*.php ones)
Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
0812054 to
31a983a
Compare
Contributor
Author
|
done, thanks Kate! |
provokateurin
approved these changes
Sep 6, 2024
Contributor
Author
|
/backport to stable30 |
susnux
approved these changes
Sep 6, 2024
| use OCP\Migration\IOutput; | ||
| use OCP\Migration\SimpleMigrationStep; | ||
|
|
||
| #[ModifyColumn(table: 'taskprocessing_tasks', name: 'error_message', description: 'Increase column length to 4000 bytes to support longer error messages')] |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Increase the length of the error message that can be stored and truncate it before updating the db.
And make the errors more visible since the previous error message was masked by throwing from an exception.
Checklist