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

Support ProcessInstanceBatch records #746

Merged
2 commits merged into from
May 2, 2023
Merged

Support ProcessInstanceBatch records #746

2 commits merged into from
May 2, 2023

Conversation

remcowesterhoud
Copy link
Contributor

@remcowesterhoud remcowesterhoud commented May 1, 2023

Description

Fixes the ZPT snapshot tests by adding 2 fixes:

  1. Implements the whileEqualPrefix method with a startAtKey
  2. Adds the ProcessInstanceBatch value type to the RecordLogger

Related issues

closes #745

Definition of Done

Not all items need to be done depending on the issue and the pull request.

Code changes:

  • The changes are backwards compatibility with previous versions
  • If it fixes a bug then PRs are created to backport the fix

Testing:

  • There are unit/integration tests that verify all acceptance criterias of the issue
  • New tests are written to ensure backwards compatibility with further versions
  • The behavior is tested manually

Documentation:

  • Javadoc has been written
  • The documentation is updated

Adds the new ProcessInstanceBatch ValueType to the RecordLogger.
There is no assertions over this record and no relevant context for users in it.
Because of this we can leave the logging empty.
Implements the new whileEqualPrefix with startAtKey method. This was introduces in Zeebe for
 terminating child instances in batches.
@github-actions
Copy link

github-actions bot commented May 1, 2023

Test Results

  47 files  ±0    47 suites  ±0   2m 14s ⏱️ +7s
100 tests ±0  100 ✔️ ±0  0 💤 ±0  0 ±0 
323 runs  ±0  323 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit bb98534. ± Comparison against base commit 15e4bfd.

♻️ This comment has been updated with latest results.

Copy link
Member

@koevskinikola koevskinikola left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@remcowesterhoud I haven't asked Bors to merge the PR, as I just have a clarifying question.

@remcowesterhoud
Copy link
Contributor Author

bors merge

@ghost
Copy link

ghost commented May 2, 2023

Build succeeded:

@ghost ghost merged commit 999d3c9 into main May 2, 2023
@ghost ghost deleted the fix_snapshot_test branch May 2, 2023 07:35
@github-actions
Copy link

github-actions bot commented May 2, 2023

Backport failed for stable/8.1, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally.

git fetch origin stable/8.1
git worktree add -d .worktree/backport-746-to-stable/8.1 origin/stable/8.1
cd .worktree/backport-746-to-stable/8.1
git checkout -b backport-746-to-stable/8.1
ancref=$(git merge-base 15e4bfdb00b3f2b0995222d10f0239a89e4c07a8 bb98534a21c6ac7c01961759c2150a9e72bfd30d)
git cherry-pick -x $ancref..bb98534a21c6ac7c01961759c2150a9e72bfd30d

@github-actions
Copy link

github-actions bot commented May 2, 2023

Successfully created backport PR for stable/8.2:

ghost pushed a commit that referenced this pull request May 2, 2023
747: [Backport stable/8.2] Support ProcessInstanceBatch records r=remcowesterhoud a=github-actions[bot]

# Description
Backport of #746 to `stable/8.2`.

relates to #745

Co-authored-by: Remco Westerhoud <remco@westerhoud.nl>
ghost pushed a commit that referenced this pull request May 3, 2023
747: [Backport stable/8.2] Support ProcessInstanceBatch records r=remcowesterhoud a=github-actions[bot]

# Description
Backport of #746 to `stable/8.2`.

relates to #745

Co-authored-by: Remco Westerhoud <remco@westerhoud.nl>
This pull request was closed.
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.

Add whileEqualPrefix method with startAt parameter
2 participants