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 issues with --synthetic_metadata parsing, expand examples #289

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

daverigby
Copy link
Collaborator

Problem

--synthetic_metadata was not parsed correctly if multiple instances of synthetic_metadata were passed, due to the use of lambdas in the metadata generator parser - they captured the initial value of the arguments passed, which had the effect of subsequent --synthetic_metadata fields using the "wrong" values.

Solution

Fix by replacing these with normal functions; then add tests to cover each metadata field type.

Also expand the documentation for synthetic metadata, hopefully make it easier for users to make use of.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

`--synthetic_metadata` was not parsed correctly if multiple instances
of synthetic_metadata were passed, due to the use of lambdas in the
metadata generator parser - they captured the initial value of the
arguments passed, which had the effect of subsequent
--synthetic_metadata fields using the "wrong" values.

Fix by replacing these with normal functions; then add tests to cover
each metadata field type.

Also expand the documentation for synthetic metadata, hopefully make
it easier for users to make use of.
@daverigby daverigby merged commit 8a0d4f5 into main Jan 10, 2025
7 checks passed
@daverigby daverigby deleted the daver/readme_synthetic_requests branch January 10, 2025 13:44
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.

1 participant