Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(TaskProcessing): increase error_message column length #47801

Merged
merged 2 commits into from
Sep 6, 2024

Conversation

kyteinsky
Copy link
Contributor

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

@kyteinsky
Copy link
Contributor Author

There needs to be a Version31000 migration for NC 31, yes?

@kyteinsky kyteinsky requested a review from bigcat88 September 6, 2024 11:59
@marcelklehr
Copy link
Member

There needs to be a Version31000 migration for NC 31, yes?

I don't think so 🤔

@marcelklehr
Copy link
Member

Ah, this is for stable30?

@marcelklehr
Copy link
Member

Would perhaps be better to submit this PR against master and then backport?

@kyteinsky
Copy link
Contributor Author

Would perhaps be better to submit this PR against master and then backport?

Yup, now that a separate PR is not required.

@kyteinsky
Copy link
Contributor Author

oops, sorry, changed base branch 🙈

@kyteinsky kyteinsky force-pushed the fix/taskproc/error-msg branch from 0a01b99 to 0812054 Compare September 6, 2024 12:21
Copy link
Member

@provokateurin provokateurin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
@kyteinsky kyteinsky force-pushed the fix/taskproc/error-msg branch from 0812054 to 31a983a Compare September 6, 2024 12:33
@kyteinsky
Copy link
Contributor Author

done, thanks Kate!

@solracsf solracsf added this to the Nextcloud 31 milestone Sep 6, 2024
@solracsf solracsf added the 3. to review Waiting for reviews label Sep 6, 2024
@kyteinsky
Copy link
Contributor Author

/backport to stable30

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')]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💙

@kyteinsky kyteinsky merged commit 61a2d99 into master Sep 6, 2024
174 checks passed
@kyteinsky kyteinsky deleted the fix/taskproc/error-msg branch September 6, 2024 13:25
@skjnldsv skjnldsv mentioned this pull request Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants