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(platform)!: data contract validation improvements #1768

Merged
merged 22 commits into from
Mar 14, 2024

Conversation

QuantumExplorer
Copy link
Member

@QuantumExplorer QuantumExplorer commented Mar 13, 2024

Issue being fixed or feature implemented

Data contracts were being validated twice, once on advanced structure validation and once when transforming into an action. Now we will only do the validation when transforming into an action.

Data contract validation was littered with many different types of errors. Only consensus errors would give back a user based error.

What was done?

We will only do advanced structure validation for contract transitions when transforming into an action.
In this PR we modified all errors that could be user based to be consensus errors.

How Has This Been Tested?

Tests still pass.

Breaking Changes

This is more a fix than a breaking change, however since the system will behave differently we can categorize the changes as breaking.

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

@QuantumExplorer QuantumExplorer changed the title Feat/better data contract update processing fix(platform)! : Data Contract validation improvements Mar 13, 2024
@QuantumExplorer QuantumExplorer changed the base branch from v1.0-dev to fix-identity-add-keys-in-strategies March 13, 2024 00:55
@QuantumExplorer QuantumExplorer changed the base branch from fix-identity-add-keys-in-strategies to v1.0-dev March 13, 2024 00:55
@QuantumExplorer QuantumExplorer changed the title fix(platform)! : Data Contract validation improvements fix(platform)!: Data Contract validation improvements Mar 13, 2024
@QuantumExplorer QuantumExplorer changed the title fix(platform)!: Data Contract validation improvements fix(platform)!: data contract validation improvements Mar 13, 2024
@QuantumExplorer QuantumExplorer marked this pull request as draft March 13, 2024 07:24
@QuantumExplorer QuantumExplorer marked this pull request as ready for review March 13, 2024 07:24
Copy link
Member

@shumkov shumkov left a comment

Choose a reason for hiding this comment

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

👍

@QuantumExplorer QuantumExplorer merged commit 6cb2068 into v1.0-dev Mar 14, 2024
75 checks passed
@QuantumExplorer QuantumExplorer deleted the feat/betterDataContractUpdateProcessing branch March 14, 2024 05:47
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