Skip to content

fix: use defaultIndex instead of 0 in transformArgs #2015

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

Merged

Conversation

bartvanandel
Copy link
Contributor

This ensures that when recipes are calling ingredients without arguments using the API, the proper defaults are used.

When used in a browser, CyberChef fills in the proper defaults when the ingredient form is rendered (and subsequently alters the url), however, unit tests could still fail. E.g., calling generate_UUID() should use 'v4' as the default UUID version, but would pick 'v1' (the first option in the list). See also #2011.

@bartvanandel
Copy link
Contributor Author

@a3957273 Merging this will fix the failing unit tests for #2011

@a3957273 a3957273 merged commit 5d33531 into gchq:master May 12, 2025
4 checks passed
@a3957273
Copy link
Member

Thanks for the fix! :)

@bartvanandel bartvanandel deleted the fix/use-default-index-in-option-transform branch May 12, 2025 15:32
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