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

Add callback to limit which nodes are adjusted #282

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lukaszachy
Copy link
Collaborator

@lukaszachy lukaszachy commented Feb 18, 2025

Especially from 'tmt' we want to adjust just tests and keep other types of nodes intact (plan, story).

Checklist

  • implement the feature
  • write the documentation
  • extend the test coverage
  • mention the version
  • include a release note

Especially from 'tmt' we want to adjust just tests and keep other types
of nodes intact (plan, story).
@lukaszachy lukaszachy added this to the 1.7 milestone Feb 18, 2025
fmf/base.py Outdated
@@ -438,7 +438,7 @@ def update(self, data):

def adjust(self, context, key='adjust', undecided='skip',
case_sensitive=True, decision_callback=None,
additional_rules=None):
additional_rules=None, additional_rules_callback=None):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please, add also a protocol type similar to AdjustCallback.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added in 545d2e2

@lukaszachy lukaszachy requested a review from happz February 19, 2025 10:12
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.

2 participants