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 passing a list as parameter value in Pipeline YAML #952

Merged
merged 1 commit into from
Apr 7, 2021

Conversation

oryx1729
Copy link
Contributor

@oryx1729 oryx1729 commented Apr 7, 2021

When loading a Pipeline, we check if any of the params reference another component. For instance, a Retriever instance can refer to a DocumentStore instance defined within the YAML.

This reference check throws an error in the case of a list as it tries to create a hash of it. This PR adds a validation that the parameter should be a string before checking if it references a component.

Resolves #951

Copy link
Contributor

@Timoeller Timoeller left a comment

Choose a reason for hiding this comment

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

LG

@oryx1729 oryx1729 merged commit fc6368c into master Apr 7, 2021
@oryx1729 oryx1729 deleted the fix-yaml-config-list branch April 7, 2021 17:50
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.

search_fields not accepting array values in pipelines.yaml for ElasticsearchDocumentStore
2 participants