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

feat: specify transition names within documents batch #2007

Merged

Conversation

pauldelucia
Copy link
Member

@pauldelucia pauldelucia commented Jul 25, 2024

Issue being fixed or feature implemented

The name() function for state transitions only returned "DocumentsBatch" but it would be nice if it was more specific.

What was done?

Instead of just "DocumentsBatch" it's now "DocumentsBatch([vector_of_transition_names])". For example "DocumentsBatch(["Create", "Create", "Delete", "UpdatePrice"])".

How Has This Been Tested?

TUI

Breaking Changes

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have added "!" to the title and described breaking changes in the corresponding section if my code contains any
  • I have made corresponding changes to the documentation if needed

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

}
}
}
format!("DocumentsBatch({:?})", document_transition_types)
Copy link
Member

Choose a reason for hiding this comment

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

It may not work for all cases. DocumentsBatch can contain dozens of transitions when we remove the limitation. This is going to blow up logs where we use names. Would you like a separate method for this?

Copy link
Member Author

Choose a reason for hiding this comment

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

It would be nice

@QuantumExplorer QuantumExplorer merged commit 77a2bff into v1.0-dev Jul 25, 2024
63 checks passed
@QuantumExplorer QuantumExplorer deleted the feat/more-precise-names-for-document-transitions branch July 25, 2024 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants