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

TASK: Export event cleanup and error handling for catchupd events #4952

Merged
merged 3 commits into from
Apr 3, 2024

Conversation

mhsdesign
Copy link
Member

@mhsdesign mhsdesign commented Mar 17, 2024

We fixed the root source for the frequent problem of workspace rebase failed events having a too big payload #4545, which might be clamped when dumping the events table and importing it elsewhere where it cannot be decoded.

But i think enriching the error with the sequence number makes sense, as the event id might not really be known to developers.

Upgrade instructions

Review instructions

Checklist

  • Code follows the PSR-2 coding style
  • Tests have been created, run and adjusted as needed
  • The PR is created against the lowest maintained branch
  • Reviewer - PR Title is brief but complete and starts with FEATURE|TASK|BUGFIX
  • Reviewer - The first section explains the change briefly for change-logs
  • Reviewer - Breaking Changes are marked with !!! and have upgrade-instructions

The error should be enhanced by its event type and sequence number:

```
Failed to decode data of event "e9d12a09-16ef-41ae-82b7-b2485e69ee95": Control character error, possibly incorrectly encoded
```
@mhsdesign mhsdesign force-pushed the task/cleanupThingsRegardingEvents branch from 151c609 to 59fdeef Compare March 17, 2024 20:43
* @param array<mixed> $payload
* @param array<mixed> $metadata
*/
public function __construct(
public readonly string $identifier,
public readonly string $type,
public readonly array $payload, // TODO: string
public readonly array $payload,
Copy link
Member Author

Choose a reason for hiding this comment

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

fyi i tried to solve the todo #4917 but its senseless ^^

Copy link
Member

@bwaidelich bwaidelich left a comment

Choose a reason for hiding this comment

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

Nice improvement, just a few comments though

@bwaidelich bwaidelich dismissed their stale review March 18, 2024 18:43

Removing my -1

@mhsdesign mhsdesign changed the title TASK: Improve debugging when event could not deserialized and catchupd TASK: Export event cleanup and error handling for catchupd events Mar 18, 2024
Copy link
Member

@bwaidelich bwaidelich left a comment

Choose a reason for hiding this comment

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

+1 by reading

@mhsdesign mhsdesign merged commit c05516c into neos:9.0 Apr 3, 2024
9 checks passed
@mhsdesign mhsdesign deleted the task/cleanupThingsRegardingEvents branch June 12, 2024 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants