Skip to content

Fixed stepping through a recipe with disabled operations or comments#1550

Open
brun0ne wants to merge 3 commits into
gchq:masterfrom
brun0ne:fix-step-2
Open

Fixed stepping through a recipe with disabled operations or comments#1550
brun0ne wants to merge 3 commits into
gchq:masterfrom
brun0ne:fix-step-2

Conversation

@brun0ne

@brun0ne brun0ne commented Apr 7, 2023

Copy link
Copy Markdown
Contributor

Currently disabling any operation (or adding a Comment - fixes #1508) results in the step button not working correctly.
It can be fixed by skipping these operations inside bake().

Setting the disabled parameter in the Recipe class does not seem to be necessary after this change, so I removed it.

With this fix, stepping treats disabled operations and Comments as if they were not there at all.

@brun0ne brun0ne changed the title Fixed the step button for disabled operations and comments Fixed stepping through a recipe with disabled operations or comments Apr 7, 2023
C85297
C85297 previously approved these changes Jul 6, 2026

@C85297 C85297 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you for the pull request! I've updated it slightly - the submitted code could result in comments changing the processed data input type as Recipe.execute would call dish.get(op.inputType) on comments.

@C85297 C85297 requested a review from GCHQDeveloper581 July 6, 2026 23:04
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.

Bug report: Step button bakes the full recipe when reaching a comment in the middle

2 participants