Skip to content

Conversation

apskhem
Copy link
Collaborator

@apskhem apskhem commented Sep 24, 2025

Description

Thanks for contributing to the project!
Please fill out this template to help us review your changes.

Related Issue(s)

Closes #539

Please confirm the following checks

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream module

@apskhem apskhem self-assigned this Sep 24, 2025
@apskhem apskhem added the squad: gatekeepers Catalyst App Backend, System Development & Integration Team label Sep 24, 2025
@apskhem apskhem linked an issue Sep 24, 2025 that may be closed by this pull request
@apskhem apskhem added the draft Draft label Sep 24, 2025
@apskhem apskhem added this to Catalyst Sep 24, 2025
@apskhem apskhem moved this from New to 🏗 In progress in Catalyst Sep 24, 2025
Copy link
Contributor

github-actions bot commented Sep 24, 2025

Test Report | ${\color{lightgreen}Pass: 527/527}$ | ${\color{red}Fail: 0/527}$ |

@apskhem apskhem marked this pull request as draft September 24, 2025 16:23
Copy link
Contributor

@Mr-Leshiy Mr-Leshiy left a comment

Choose a reason for hiding this comment

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

Dont forget to also implement ChainRule::new method for initialisation of the ChainRule from the DocSpecs

@apskhem apskhem marked this pull request as ready for review October 10, 2025 17:17
@apskhem apskhem requested a review from Mr-Leshiy October 10, 2025 17:33
@apskhem apskhem added review me PR is ready for review and removed draft Draft labels Oct 10, 2025
@apskhem apskhem moved this from 🏗 In progress to 👀 In review in Catalyst Oct 10, 2025
@github-project-automation github-project-automation bot moved this from 👀 In review to 🔖 Ready in Catalyst Oct 14, 2025
@apskhem apskhem requested a review from Mr-Leshiy October 14, 2025 09:00
@apskhem apskhem moved this from 🔖 Ready to 🏗 In progress in Catalyst Oct 14, 2025
@apskhem apskhem moved this from 🏗 In progress to 👀 In review in Catalyst Oct 14, 2025
}
}

if doc.report().is_problematic() {
Copy link
Contributor

Choose a reason for hiding this comment

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

No no no, we cannot rely on the CatalystSignedDoc internal report status as a success of this validation rule or not, because it could be the case that some other validation rule wasn't successful and so this one become returning false automatically, even if its ok.

// chain doc must not be negative
if chained_height < 0 {
doc.report().functional_validation(
"The height of the document being chained to must not be negative",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"The height of the document being chained to must not be negative",
"The height of the document being chained to must be positive number",

}

// have parameters match.
if chained_doc.doc_meta().parameters() != doc.doc_meta().parameters() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's move this validation logic as a part of the parameters validation rule. Look how used and performed link_check.

@github-project-automation github-project-automation bot moved this from 👀 In review to 🔖 Ready in Catalyst Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review me PR is ready for review squad: gatekeepers Catalyst App Backend, System Development & Integration Team

Projects

Status: 🔖 Ready

Development

Successfully merging this pull request may close these issues.

Add ChainRule validation rule type

2 participants